BmnRoot 26.10.0-233-gb9bbe585
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
run_reco_noa.C
Go to the documentation of this file.
1/*
2 * Polev I.: Modified version of the current version of reconstruction macro
3 * with alignment disabled (for alignment results comparison)
4 */
5
6// Macro for reconstruction of simulated and experimental BM@N events
7// inFileName - input file with data (MC or exp. data)
8// dstFileName - output file with reconstructed data (full DST format)
9// nStartEvent - number of first event to process (starts with zero), default: 0
10// nEvents - number of events to process after nStartEvent, 0 - all events of the given file after nStartEvent to
11// geometryTag - geometry tag for experimental data, "" means the latest geometry for BM@N Run (by creation date)
12// tracking - tracking algorithm: VectorFinder (default), L1Tracking (for online), CellAuto
20
21void run_reco_noa(TString inFileName = "/home/igor/DATA/bmn/26.02.0/digi/run_Top_9555_ev0_p0.root",
22 TString dstFileName = "/home/igor/data.cache/Run9compare/rc_noa.run_Top_9555_ev0_p0.root",
23 Int_t nStartEvent = 0,
24 Int_t nEvents = 1000,
25 TString geometryTag = "",
26 enumTracking tracking = VectorFinder)
27{
28 gDebug = 0; // ROOT debug option
29 // if (gEnv) gEnv->SetValue("Root.Stacktrace", 0);
30 // Verbosity level (0 = summary only, 1 = event-level, 2 = track-level, 3 = full debug)
31 Int_t iVerbose = 0;
32 // Log level for LOG(severity): "fatal", "error", "alarm", "important", "warn", "state", "info", "detail", "debug",
33 // "debug[1-4]", "trace", "nolog"
34 FairLogger::GetLogger()->SetLogScreenLevel("info");
35 gRandom->SetSeed(0); // set seed for PRNG
36
37 // ----- Timer ---------------------------------------------------------
38 TStopwatch timer;
39 timer.Start();
40
41 // check input file exists
42 if (!BmnFunctionSet::CheckFileExist(inFileName, 1))
43 exit(-1);
44
45 // ----- Reconstruction run --------------------------------------------
46 FairRunAna* fRunAna = new FairRunAna();
47 fRunAna->SetEventHeader(new DstEventHeader());
48
49 Bool_t isTarget = kTRUE; // flag for tracking (run with target or not)
50 Bool_t isExp = (BmnFunctionSet::isSimulationFile(inFileName)
51 == 0); // flag for FairRunAna tasks whether simulation or experimental data are used
52
53 // Declare input source as simulation file or experimental data
54 FairSource* fFileSource;
55 Int_t run_period = -1, run_number = -1;
56 if (!isExp) { // for simulation files
57 fFileSource = new FairFileSource(inFileName);
58 // define BM@N session number using MC file metaobjects
59 run_period = BmnFunctionSet::GetPeriodNumber(((FairFileSource*)fFileSource)->GetInFile());
60 } else // for experimental files
61 {
62 // set source - digit file without auxilary FairRoot directories
63 // returns real run_period and run_number from the source file
64 fFileSource = new BmnFileSource(inFileName, run_period, run_number);
65
66 // get geometry for run
67 GeoSetup gSetup;
68 if (geometryTag.Strip(TString::kBoth) == "")
69 geometryTag = gSetup.GetLastApprovedSetupTag(TString::Format("run%d", run_period)).c_str();
70 int errStatus = gSetup.LoadSetupToGeoManager(geometryTag.Data());
71 if (errStatus != 0)
72 LOG(fatal) << "Geometry '" << geometryTag << "' not loaded. Error status: " << errStatus << endl;
73 LOG(info) << "Geometry with '" << geometryTag << "' tag is chosen";
74
75 // set magnetic field with factor corresponding to the given run
76 UniRun* pCurrentRun = UniRun::GetRun(run_period, run_number, usePreviousIfMissing);
77 if (pCurrentRun == 0)
78 exit(-6);
79 Double_t field_voltage = 0;
80 if (pCurrentRun->GetFieldVoltage())
81 field_voltage = *pCurrentRun->GetFieldVoltage();
82 else {
83 if (usePreviousIfMissing) // get value from a previous run with non-null value
84 {
85 int prev_mag_period = run_period, prev_mag_run = run_number;
86 field_voltage = UniRun::FindPreviousFieldVoltage(prev_mag_period, prev_mag_run);
87 if ((field_voltage == 0) and (prev_mag_run == run_number) and (prev_mag_period == run_period))
88 LOG(fatal) << "no any field voltage was found for run " << run_period << ":" << run_number << endl;
89 } else
90 LOG(fatal) << "no field voltage was found for run " << run_period << ":" << run_number << endl;
91 }
92 // the field of the setup is got as it was measured, i.e. at the reference voltage
93 FairField* magField = gSetup.GetMagneticField();
94 if (magField == nullptr)
95 LOG(fatal) << "no magnetic field was found for the '" << geometryTag << "' geometry" << endl;
96 // the reference voltage (mV), at which the field map was measured, is taken from the Geometry Database
97 Double_t map_voltage = gSetup.GetRefVoltage();
98 if (map_voltage <= 0) {
99 map_voltage = (run_period < 8) ? 55.87 : 112.0;
100 LOG(warning) << "No reference voltage of the magnetic field in the Geometry Database, " << map_voltage
101 << " mV is used";
102 }
103 Double_t fieldScale = 0.;
104 if (field_voltage < 10) {
105 fieldScale = 0;
106 } else {
107 fieldScale = (field_voltage) / map_voltage;
108 // the scale is slightly corrected for the beam energies, for which the correction is known
109 Double_t* beam_energy = pCurrentRun->GetEnergy();
110 if (beam_energy == nullptr)
111 LOG(warning) << "no beam energy was found for run " << run_period << ":" << run_number
112 << ", the field map scale is not corrected";
113 else {
114 fieldScale *= BmnFunctionSet::GetFieldScaleCorrection(*beam_energy);
115 delete beam_energy;
116 }
117 }
118 // the scale has to be set before the field initialization, where a field map is read and scaled
119 if (!BmnFunctionSet::SetFieldScale(magField, fieldScale))
120 LOG(fatal) << "the scale of the magnetic field cannot be set" << endl;
121 magField->Init();
122 fRunAna->SetField(magField);
123 isExp = kTRUE;
124 TString targ = "-";
125 if (pCurrentRun->GetTargetParticle() == "") {
126 isTarget = kFALSE;
127 } else {
128 targ = pCurrentRun->GetTargetParticle();
129 isTarget = kTRUE;
130 }
131 TString beam = pCurrentRun->GetBeamParticle();
132 if (beam == "")
133 beam = "-";
134 cout << "\n\n|||||||||||||||| EXPERIMENTAL RUN SUMMARY ||||||||||||||||" << endl;
135 cout << "||\t\t\t\t\t\t\t||" << endl;
136 cout << "||\t\tPeriod:\t\t" << run_period << "\t\t\t||" << endl;
137 cout << "||\t\tNumber:\t\t" << run_number << "\t\t\t||" << endl;
138 cout << "||\t\tBeam:\t\t" << beam << "\t\t\t||" << endl;
139 cout << "||\t\tTarget:\t\t" << targ << "\t\t\t||" << endl;
140 cout << "||\t\tField scale:\t" << setprecision(4) << fieldScale << "\t\t\t||" << endl;
141 cout << "||\t\t\t\t\t\t\t||" << endl;
142 cout << "||||||||||||||||||||||||||||||||||||||||||||||||||||||||||\n\n" << endl;
143 // remove(geoFileName.Data());
144 }
145
146 fRunAna->SetSource(fFileSource);
147
148 if (dstFileName == "")
149 dstFileName = "bmndst.root";
150 // if directory for the output file does not exist, then create
151 if (BmnFunctionSet::CreateDirectoryTree(dstFileName, 1) < 0)
152 exit(-2);
153 fRunAna->SetSink(new FairRootFileSink(dstFileName));
154 fRunAna->SetGenerateRunInfo(false);
155
156 // if nEvents is equal 0 then all events of the given file starting with "nStartEvent" should be processed
157 if (nEvents == 0)
158 nEvents = MpdGetNumEvents::GetNumROOTEvents((char*)inFileName.Data()) - nStartEvent;
159
160 // Add TObjectString file names to a TList which is passed as input to the FairParAsciiFileIo
161 // The FairParAsciiFileIo creates a concatenated input parameter file all_<pid>.par, which is then can be used
162 // TList* parFileNameList = new TList();
163
164 // ====================================================================== //
165 // === Pileup Event Classification === //
166 // ====================================================================== //
167 if (run_period == 8 && isExp) {
168 BmnEventSelector* eventSelector = new BmnEventSelector();
169 eventSelector->SetRunId(run_number);
170 eventSelector->SetInputFileName("$VMCWORKDIR/input/eventSelector_calib_run8.root");
171 fRunAna->AddTask(eventSelector);
172 }
173
174 // ====================================================================== //
175 // === Fill basic trigger information === //
176 // ====================================================================== //
177 BmnFillTrigInfoDst* trig = new BmnFillTrigInfoDst(isExp);
178 fRunAna->AddTask(trig);
179
180 // ====================================================================== //
181 // === Hits in front of the target === //
182 // ====================================================================== //
183 if (run_period >= 8) {
184 if (isExp) {
185 BmnSiBTHitMaker* sibtHM = new BmnSiBTHitMaker(run_period, run_number, isExp);
186 fRunAna->AddTask(sibtHM);
187 }
188 } else {
189 if (!isExp) {
191 fRunAna->AddTask(mwpcHP);
192 }
193 BmnMwpcHitFinder* mwpcHM = new BmnMwpcHitFinder(isExp, run_period, run_number);
194 fRunAna->AddTask(mwpcHM);
195 }
196
197 // ====================================================================== //
198 // === VSP hit finder === //
199 // ====================================================================== //
200 BmnVSPHitMaker* vspHM = new BmnVSPHitMaker(run_period, run_number, isExp);
201 if (isExp)
202 vspHM->SetHitMatching(kFALSE);
203 fRunAna->AddTask(vspHM);
204
205 // ====================================================================== //
206 // === Silicon hit finder === //
207 // ====================================================================== //
208 BmnSiliconHitMaker* siliconHM = new BmnSiliconHitMaker(run_period, run_number, isExp);
209 if (isExp)
210 siliconHM->SetHitMatching(kFALSE);
211 fRunAna->AddTask(siliconHM);
212
213 // ====================================================================== //
214 // === GEM hit finder === //
215 // ====================================================================== //
216 BmnGemStripHitMaker* gemHM = new BmnGemStripHitMaker(run_period, run_number, isExp);
217 if (isExp)
218 gemHM->SetHitMatching(kFALSE);
219 fRunAna->AddTask(gemHM);
220
221 // ====================================================================== //
222 // === CSC hit finder === //
223 // ====================================================================== //
224 BmnCSCHitMaker* cscHM = new BmnCSCHitMaker(run_period, run_number, isExp);
225 if (isExp)
226 cscHM->SetHitMatching(kFALSE);
227 fRunAna->AddTask(cscHM);
228
229 // ====================================================================== //
230 // === TOF400 hit finder === //
231 // ====================================================================== //
232 BmnTof1HitProducer* tof400HP = new BmnTof1HitProducer("TOF400", kTOF1, !isExp, iVerbose, kFALSE);
233 tof400HP->SetPeriodRun(run_period, run_number);
234 fRunAna->AddTask(tof400HP);
235
236 // ====================================================================== //
237 // === TOF700 hit finder === //
238 // ====================================================================== //
239 BmnTof1HitProducer* tof700HP = new BmnTof1HitProducer("TOF700", kTOF701, !isExp, iVerbose, kFALSE);
240 tof700HP->SetPeriodRun(run_period, run_number);
241 fRunAna->AddTask(tof700HP);
242
243 // ====================================================================== //
244 // === FHCAL/ZDC === //
245 // ====================================================================== //
246 bool IsGlobalCoordinates = true;
247 if (run_period >= 8) {
248 // TODO check isExp
249 BmnFHCalReconstructor* fhcalReco = new BmnFHCalReconstructor(isExp, IsGlobalCoordinates);
250 fhcalReco->SetRecoCutsFile(Form("FHCAL_reco_cuts_period%d.txt", run_period));
251 fRunAna->AddTask(fhcalReco);
252 } else {
253 BmnZdcAnalyzer* zdcAna = new BmnZdcAnalyzer();
254 fRunAna->AddTask(zdcAna);
255 }
256
257 // ====================================================================== //
258 // === ScWall === //
259 // ====================================================================== //
260 IsGlobalCoordinates = true;
261 BmnScWallReconstructor* scwallReco = new BmnScWallReconstructor(isExp, IsGlobalCoordinates);
262 scwallReco->SetRecoCutsFile(Form("SCWALL_reco_cuts_period%d.txt", run_period));
263 fRunAna->AddTask(scwallReco);
264
265 // ====================================================================== //
266 // === Hodo === //
267 // ====================================================================== //
268
269 BmnHodoReconstructor* hodoReco = new BmnHodoReconstructor(isExp);
270 hodoReco->SetRecoCutsFile(Form("HODO_reco_cuts_period%d.json", run_period));
271 fRunAna->AddTask(hodoReco);
272
273 // ====================================================================== //
274 // === Ndet === //
275 // ====================================================================== //
276 BmnNdetReconstructor* ndetReco = new BmnNdetReconstructor(isExp);
277 ndetReco->SetRecoCutsFile(Form("NDET_reco_cuts_period%d.json", run_period));
278 fRunAna->AddTask(ndetReco);
279
280 // ====================================================================== //
281 // === Vacuum Wall === //
282 // ====================================================================== //
283
285 fRunAna->AddTask(vacReco);
286
287 // ====================================================================== //
288 // === Inner Tracking === //
289 // ====================================================================== //
290 if (run_period > 8)
291 CbmStsDigiScheme::Instance(9); // AZ-310126
292
293 TString innerTrackBranchName; // use different track container
294 if (tracking == L1Tracking)
295 innerTrackBranchName = "StsTrack";
296 else
297 innerTrackBranchName = "StsVector";
298 if (run_period >= 8) {
299 BmnToCbmHitConverter* hitConverter = new BmnToCbmHitConverter(iVerbose, isExp);
300 // AZ-150224 hitConverter->SetFixedErrors(0.05, 0.25, 0.02, 0.65);
301 hitConverter->SetFixedErrors(0.08 / sqrt(12) * 1.2, 0.1234, 0.01 / sqrt(12), 0.1234); // AZ-150224
302 /*
303 * Polev I.: alignment disabled
304 */
305 // hitConverter->EnableAlignment(true); // AZ-310126
306 hitConverter->EnableAlignment(false);
307 // AZ-310126
308 if (run_period > 8) {
309 hitConverter->SetGemConfigFile("GemRun9.xml");
310 hitConverter->SetSilConfigFile("SiliconRun9.xml");
311 hitConverter->SetVspConfigFile("VSP_Run9.xml");
312 }
313 //
314 fRunAna->AddTask(hitConverter);
315
316 CbmKF* kalman = new CbmKF();
317 fRunAna->AddTask(kalman);
318
319 CbmL1* l1 = new CbmL1();
320 TString stsMatBudgetFile = "";
321 l1->SetMaterialBudgetFileName(stsMatBudgetFile);
322 // AZ-310126 fRunAna->AddTask(l1);
323
324 if (tracking == L1Tracking) {
325 FairTask* stsFindTracks = new CbmStsFindTracks(iVerbose, "CbmL1StsTrackFinder");
326 fRunAna->AddTask(stsFindTracks);
327 }
328 if (tracking == VectorFinder) {
329 // BmnStsVectorFinder* vf = new BmnStsVectorFinder();
331 vf->SetMatBudgetFileName("$VMCWORKDIR/parameters/reco/sts_matbudget_run8.root");
332 if (run_period > 8) {
333 vf->SetNofSiStations(5); // AZ-310126 - 4Si+VSP
334 }
335 fRunAna->AddTask(vf);
336 }
337
338 BmnStsMatchTracks* stsMatchTracks = new BmnStsMatchTracks(iVerbose);
339 stsMatchTracks->SetTrackBranch(innerTrackBranchName);
340 fRunAna->AddTask(stsMatchTracks);
341 }
342
343 // ====================================================================== //
344 // === Beam Tracking === //
345 // ====================================================================== //
346 if (isExp) {
347 BmnBeamTracking* beamTF = new BmnBeamTracking(run_period);
348 fRunAna->AddTask(beamTF);
349 }
350
351 // ====================================================================== //
352 // === Primary vertex finding === //
353 // ====================================================================== //
354 // if (run_period >= 8) {
355 CbmPrimaryVertexFinder* pvFinder = new CbmPVFinderKF();
356 CbmFindPrimaryVertex* findVertex = new CbmFindPrimaryVertex(pvFinder);
357 findVertex->SetTrackBranch(innerTrackBranchName);
358 fRunAna->AddTask(findVertex);
359
360 // AZ-150224
362 fRunAna->AddTask(pvMPD);
363
365 fRunAna->AddTask(combPV);
366
367 // ====================================================================== //
368 // === Global Tracking === //
369 // ====================================================================== //
371 glTF->SetPeriodNumber(run_period);
372 glTF->SetInnerTracksBranchName(innerTrackBranchName);
373 fRunAna->AddTask(glTF);
374
375 // ====================================================================== //
376 // === Matching global track to MC track procedure === //
377 // ====================================================================== //
378 if (!isExp) {
379 BmnMatchRecoToMC* mcMatching = new BmnMatchRecoToMC();
380 mcMatching->SetInnerTracksBranchName(innerTrackBranchName);
381 fRunAna->AddTask(mcMatching);
382 }
383
384 // ====================================================================== //
385 // === dE/dx procedure === //
386 // ====================================================================== //
387 if (run_period == 8) {
388 BmnDedx* dedx = new BmnDedx(run_number);
389 fRunAna->AddTask(dedx);
390 }
391
392 // ====================================================================== //
393 // === Residual analysis === //
394 // ====================================================================== //
395 if (run_period < 8) {
396 BmnResiduals* res = new BmnResiduals(run_period, run_number);
397 fRunAna->AddTask(res);
398 }
399
400 // ====================================================================== //
401 // === Centrality === //
402 // ====================================================================== //
403 CentralityClusterizer* cclusterizer = new CentralityClusterizer("XeCsI@3.8AGeV_MBT_7clusters_period8.root");
404 fRunAna->AddTask(cclusterizer);
405
406 // Fill DST Event Header
407 BmnFillDstTask* dst_task = new BmnFillDstTask(nStartEvent, nEvents, isExp, run_period, run_number);
408 fRunAna->AddTask(dst_task);
409
410 // ----- Parameter database (input) -------------------------------------
411 FairRuntimeDb* rtdb = fRunAna->GetRuntimeDb();
412 FairParRootFileIo* parIo1 = new FairParRootFileIo();
413 // FairParAsciiFileIo* parIo2 = new FairParAsciiFileIo();
414 parIo1->open(inFileName.Data());
415 // parIo2->open(parFileNameList, "in");
416 rtdb->setFirstInput(parIo1);
417 // rtdb->setSecondInput(parIo2);
418 // -------------------------------------------------------------------------
419
420 // ----- Initialize FaiRunAna --------------------------------------------
421 fRunAna->GetMainTask()->SetVerbose(iVerbose);
422 fRunAna->Init();
423 // -------------------------------------------------------------------------
424
425 // ----- Parameter database (output) ------------------------------------
426 FairParRootFileIo* parOut = new FairParRootFileIo(kTRUE);
427 // parOut->open(dstFileName);
428 parOut->open(gFile);
429 rtdb->setOutput(parOut);
430 if (isExp)
431 rtdb->getContainer("FairGeoParSet")->setDescription(geometryTag.Data());
432 rtdb->writeContainer(rtdb->getContainer("FairGeoParSet"), rtdb->getCurrentRun());
433 rtdb->saveOutput();
434 // rtdb->print();
435 // -------------------------------------------------------------------------
436
437 // ----- Run FairRunAna -------------------------------------------------
438 fRunAna->Run(nStartEvent, nStartEvent + nEvents);
439 // -------------------------------------------------------------------------
440
441 // ----- Finish --------------------------------------------------------
442 delete fRunAna;
443 delete pvFinder;
444 timer.Stop();
445 Double_t rtime = timer.RealTime();
446 Double_t ctime = timer.CpuTime();
447 cout << endl << endl;
448 cout << "Macro finished successfully." << endl; // marker of successful execution
449 cout << "Input file is " + inFileName << endl;
450 cout << "Output file is " + dstFileName << endl;
451 cout << "Real time " << rtime << " s, CPU time " << ctime << " s" << endl;
452 cout << endl;
453 // ------------------------------------------------------------------------
454}
@ kTOF1
@ kTOF701
bool Bool_t
int Int_t
Int_t gDebug
constexpr Bool_t kFALSE
double Double_t
constexpr Bool_t kTRUE
#define gFile
R__EXTERN TRandom * gRandom
char * Form(const char *fmt,...)
void SetHitMatching(Bool_t opt=kTRUE)
void SetInputFileName(const char *name)
void SetRunId(int runId)
Class for BmnFHCalEvent reconstruction (creation) from BmnFHCalDigi {Data} or BmnFHCalDigit {Sim}...
void SetRecoCutsFile(TString reco_cuts_file)
BmnFileSource.h.
static int CreateDirectoryTree(TString &fileName, int iVerbose=0, EAccessMode mode=kWritePermission)
static double GetFieldScaleCorrection(double energy)
static bool SetFieldScale(FairField *field, double scale)
static int isSimulationFile(TString fileName="")
static int GetPeriodNumber(TFile *root_file, int method_number=0)
static int CheckFileExist(TString &fileName, int iVerbose=0, EAccessMode mode=kFileExists)
void SetHitMatching(Bool_t opt=kTRUE)
void SetInnerTracksBranchName(TString name)
void SetPeriodNumber(Short_t p)
Class for BmnHodoEvent reconstruction (creation) from BmnHodoDigi {Data} or BmnHodoDigit {Sim}...
void SetRecoCutsFile(const std::string &cuts)
The BmnKFPrimaryVertexFinder class - adaptation of MpdKfPrimaryVertexFinder.
void SetInnerTracksBranchName(TString name)
Class for BmnNdetEvent reconstruction (creation) from BmnNdetDigi {Data} or BmnNdetDigit {Sim}...
void SetRecoCutsFile(const std::string &cuts)
Class for BmnScWallEvent reconstruction (creation) from BmnScWallDigi {Data} or BmnScWallDigit {Sim}...
void SetRecoCutsFile(TString reco_cuts_file)
void SetHitMatching(Bool_t opt=kTRUE)
void SetTrackBranch(TString trBranch="StsTrack")
void SetMatBudgetFileName(TString s)
void EnableAlignment(Bool_t is_align_enabled=kTRUE)
void SetFixedErrors(Float_t dXgem=0.015, Float_t dYgem=0.058, Float_t dXsil=0.003, Float_t dYsil=0.021)
void SetGemConfigFile(TString file)
void SetVspConfigFile(TString file)
void SetSilConfigFile(TString file)
void SetPeriodRun(Int_t p, Int_t r)
void SetHitMatching(Bool_t opt=kTRUE)
Class for BmnVacWall points info transition on reconstruction stage.
void SetTrackBranch(TString trBranch="StsTrack")
The CbmKF Kalman Filter algorithm.
Definition CbmKF.h:28
Definition CbmL1.h:48
void SetMaterialBudgetFileName(TString s)
Definition CbmL1.h:86
CbmPVFinderKF.
static CbmStsDigiScheme * Instance(int version=1)
CbmStsFindTracks.
Class for event centrality determination through clusterization.
GeoSetup class.
Definition GeoSetup.h:47
FairField * GetMagneticField()
Get magnetic field of the current setup geometry.
double GetRefVoltage()
Get reference voltage of the magnetic field of the current setup geometry, i.e.
Definition GeoSetup.h:111
int LoadSetupToGeoManager(string_view setup_tag)
Load selected geometry setup from the Local Geometry Database and create gGeoManager instance.
Definition GeoSetup.cxx:592
string GetLastApprovedSetupTag(string_view tag_prefix)
Get tag for the last approved setup corresponding to the pattern.
Definition GeoSetup.cxx:196
static Int_t GetNumROOTEvents(const char *filename, const char *treename="", int iVerbose=2)
Double_t RealTime()
void Start(Bool_t reset=kTRUE)
Double_t CpuTime()
void Stop()
static TString Format(const char *fmt,...)
UniRun.h Class for the table: run_.
Definition UniRun.h:21
double * GetEnergy()
get energy of the current run
Definition UniRun.h:113
static UniRun * GetRun(int period_number, int run_number)
get run from the database
Definition UniRun.cxx:161
TString GetBeamParticle()
get beam particle of the current run
Definition UniRun.h:109
double * GetFieldVoltage()
get field voltage of the current run
Definition UniRun.h:121
static double FindPreviousFieldVoltage(int &period_number, int &run_number)
get field voltage value if period_number > 0 and run_number > 0: from the closest previous run,...
Definition UniRun.cxx:908
TString GetTargetParticle()
get target particle of the current run
Definition UniRun.h:111
enumTracking
@ L1Tracking
@ VectorFinder
bool usePreviousIfMissing
RVec< PromoteType< T > > sqrt(const RVec< T > &v)
void run_reco_noa(TString inFileName="/home/igor/DATA/bmn/26.02.0/digi/run_Top_9555_ev0_p0.root", TString dstFileName="/home/igor/data.cache/Run9compare/rc_noa.run_Top_9555_ev0_p0.root", Int_t nStartEvent=0, Int_t nEvents=1000, TString geometryTag="", enumTracking tracking=VectorFinder)