BmnRoot 26.10.0-233-gb9bbe585
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
run_reco_bmn.C
Go to the documentation of this file.
1// Macro for reconstruction of simulated and experimental BM@N events
2//
3// inFileName - input file with data (MC or exp. data)
4// dstFileName - output file with reconstructed data (full DST format)
5// nStartEvent - number of first event to process (starts with zero), default: 0
6// nEvents - number of events to process after nStartEvent, 0 - all events of the given file after nStartEvent to
7// tracking - tracking algorithm: VectorFinder (default), L1Tracking (for online), CellAuto
8// #define USE_GEODB
9R__ADD_INCLUDE_PATH($VMCWORKDIR);
17#define OnlineMode
18
19void run_reco_bmn(TString inFileName = "tcp://localhost:5555",
20 TString dstFileName = "$VMCWORKDIR/macro/run/bmndst.root",
21 Int_t nStartEvent = 0,
22 Int_t nEvents = 10,
23 enumTracking tracking = VectorFinder)
24{
25 gDebug = 0; // ROOT debug option
26 // if (gEnv) gEnv->SetValue("Root.Stacktrace", 0);
27 // Verbosity level (0 = summary only, 1 = event-level, 2 = track-level, 3 = full debug)
28 Int_t iVerbose = 0;
29 // Log level for LOG(severity): "fatal", "error", "alarm", "important", "warn", "state", "info", "detail", "debug",
30 // "debug[1-4]", "trace", "nolog"
31 FairLogger::GetLogger()->SetLogScreenLevel("info");
32 gRandom->SetSeed(0); // set seed for PRNG
33
34 // ----- Timer ---------------------------------------------------------
35 TStopwatch timer;
36 timer.Start();
37
38 Bool_t isExp(kTRUE);
39#ifndef OnlineMode
40 // check input file exists
41 if (!BmnFunctionSet::CheckFileExist(inputFileName, 1))
42 exit(-1);
43 isExp = (BmnFunctionSet::isSimulationFile(inputFileName)
44 == 0); // flag for hit finder (to create digits or take them from data-file)
45#endif
46
47 // ----- Reconstruction run --------------------------------------------
48 FairRunAna* fRunAna = new FairRunAna();
49 fRunAna->SetEventHeader(new DstEventHeader());
50
51 Bool_t isTarget = kTRUE; // kTRUE; // flag for tracking (run with target or not)
52
53 // Declare input source as simulation file or experimental data
54 FairSource* fFileSource;
55
56 // -1 means use of the BM@N-setup when processing MC-input
57 // DO NOT change it manually!
58 Int_t run_period = 9, run_number = 9865;
59 Double_t fieldScale = 0.;
60
61#ifdef OnlineMode
62 // fFileSource = new BmnMQSource("tcp://bmn-mon-1.he.jinr.ru:5555", kTRUE);
63 fFileSource = new BmnDecoSource(inFileName);
64 bool srcInitResult = fFileSource->Init();
65 if (!srcInitResult) {
66 cout << "ERROR: Online digi source init failed!" << endl;
67 exit(-8);
68 }
69 // fFileSource = new BmnDecoSource("tcp://bmn-mon-1.he.jinr.ru:5555");
70 // fFileSource = new BmnDecoSource("tcp://localhost:5555");
71 {
72#else
73 if (!isExp) // for simulation files
74 fFileSource = new FairFileSource(inputFileName);
75 else // for experimental files
76 {
77 // set source - digit file without auxilary FairRoot directories
78 // returns real run_period and run_number from the source file
79 fFileSource = new BmnFileSource(inFileName, run_period, run_number);
80#endif
81 // get geometry for run from the Geometry Database
82 GeoSetup gSetup;
83 int errStatus = gSetup.LoadSetupToGeoManager("run9_26.01.0");
84 if (errStatus != 0) {
85 cout << "ERROR: Geometry not loaded. Error status " << errStatus << endl;
86 exit(-1);
87 }
88 // set magnetic field with factor corresponding to the given run
89 UniRun* pCurrentRun = UniRun::GetRun(run_period, run_number, usePreviousIfMissing);
90 if (pCurrentRun == 0)
91 exit(-6);
92 Double_t field_voltage = 0;
93 if (pCurrentRun->GetFieldVoltage())
94 field_voltage = *pCurrentRun->GetFieldVoltage();
95 else {
96 if (usePreviousIfMissing) // get value from a previous run with non-null value
97 {
98 int prev_mag_period = run_period, prev_mag_run = run_number;
99 field_voltage = UniRun::FindPreviousFieldVoltage(prev_mag_period, prev_mag_run);
100 if ((field_voltage == 0) and (prev_mag_run == run_number) and (prev_mag_period == run_period)) {
101 cout << "ERROR: no any field voltage was found for run " << run_period << ":" << run_number << endl;
102 exit(-8);
103 }
104 } else {
105 cout << "ERROR: no field voltage was found for run " << run_period << ":" << run_number << endl;
106 exit(-7);
107 }
108 }
109 Double_t map_voltage = (run_period < 8) ? 55.87 : 112.0;
110 FairField* magField = nullptr;
111#ifdef USE_GEODB
112 // the field of the setup is got as it was measured, i.e. at the reference voltage from the Geometry Database
113 magField = gSetup.GetMagneticField();
114 if (gSetup.GetRefVoltage() > 0)
115 map_voltage = gSetup.GetRefVoltage();
116#else
117 magField = new BmnNewFieldMap("FieldMap_1900_extrap_noPed.root");
118#endif
119 if (field_voltage < 10) {
120 fieldScale = 0;
121 } else
122 fieldScale = (field_voltage) / map_voltage;
123 // the scale has to be set before the field initialization, where a field map is read and scaled
124 if (!BmnFunctionSet::SetFieldScale(magField, fieldScale))
125 exit(-9);
126 magField->Init();
127 fRunAna->SetField(magField);
128 isExp = kTRUE;
129 TString targ = "-";
130 if (pCurrentRun->GetTargetParticle() == "") {
131 isTarget = kFALSE;
132 } else {
133 targ = pCurrentRun->GetTargetParticle();
134 isTarget = kTRUE;
135 }
136 TString beam = pCurrentRun->GetBeamParticle();
137 if (beam == "")
138 beam = "-";
139 cout << "\n\n|||||||||||||||| EXPERIMENTAL RUN SUMMARY ||||||||||||||||" << endl;
140 cout << "||\t\t\t\t\t\t\t||" << endl;
141 cout << "||\t\tPeriod:\t\t" << run_period << "\t\t\t||" << endl;
142 cout << "||\t\tNumber:\t\t" << run_number << "\t\t\t||" << endl;
143 cout << "||\t\tBeam:\t\t" << beam << "\t\t\t||" << endl;
144 cout << "||\t\tTarget:\t\t" << targ << "\t\t\t||" << endl;
145 cout << "||\t\tField scale:\t" << setprecision(4) << fieldScale << "\t\t\t||" << endl;
146 cout << "||\t\t\t\t\t\t\t||" << endl;
147 cout << "||||||||||||||||||||||||||||||||||||||||||||||||||||||||||\n\n" << endl;
148#ifndef USE_GEODB
149 remove(geoFileName.Data());
150#endif
151 }
152
153 fRunAna->SetSource(fFileSource);
154#ifdef OnlineMode
155 fRunAna->SetSink(new BmnMQSink(6666));
156#else
157 // if directory for the output file does not exist, then create
158 if (BmnFunctionSet::CreateDirectoryTree(bmndstFileName, 1) < 0)
159 exit(-2);
160 fRunAna->SetSink(new FairRootFileSink(bmndstFileName));
161
162 // if nEvents is equal 0 then all events of the given file starting with "nStartEvent" should be processed
163 if (nEvents == 0)
164 nEvents = MpdGetNumEvents::GetNumROOTEvents((char*)inputFileName.Data()) - nStartEvent;
165#endif
166 fRunAna->SetGenerateRunInfo(false);
167
168 // Digitisation files.
169 // Add TObjectString file names to a TList which is passed as input to the FairParAsciiFileIo.
170 // The FairParAsciiFileIo will create on fly a concatenated input parameter file, which is then used during the
171 // reconstruction.
172 TList* parFileNameList = new TList();
173
174 // ====================================================================== //
175 // === Pileup Event Classification === //
176 // ====================================================================== //
177 /* if (run_period >= 8 && isExp) {
178 BmnEventSelector* eventSelector = new BmnEventSelector();
179 eventSelector->SetRunId(run_number);
180 eventSelector->SetInputFileName("$VMCWORKDIR/input/eventSelector_calib_run8.root");
181 fRunAna->AddTask(eventSelector);
182 } */
183
184 // ====================================================================== //
185 // === Fill basic trigger information === //
186 // ====================================================================== //
187 BmnFillTrigInfoDst* trig = new BmnFillTrigInfoDst(isExp);
188 fRunAna->AddTask(trig);
189
190 // ====================================================================== //
191 // === Hits in front of the target === //
192 // ====================================================================== //
193 if (run_period >= 8) {
194 if (isExp) {
195 BmnSiBTHitMaker* sibtHM = new BmnSiBTHitMaker(run_period, run_number, isExp);
196 fRunAna->AddTask(sibtHM);
197 }
198 } else {
199 if (!isExp) {
201 fRunAna->AddTask(mwpcHP);
202 }
203 BmnMwpcHitFinder* mwpcHM = new BmnMwpcHitFinder(isExp, run_period, run_number);
204 fRunAna->AddTask(mwpcHM);
205 }
206
207 // ====================================================================== //
208 // === VSP hit finder === //
209 // ====================================================================== //
210 BmnVSPHitMaker* vspHM = new BmnVSPHitMaker(run_period, run_number, isExp);
211 if (isExp)
212 vspHM->SetHitMatching(kFALSE);
213 fRunAna->AddTask(vspHM);
214
215 // ====================================================================== //
216 // === Silicon hit finder === //
217 // ====================================================================== //
218 BmnSiliconHitMaker* siliconHM = new BmnSiliconHitMaker(run_period, run_number, isExp);
219 if (isExp)
220 siliconHM->SetHitMatching(kFALSE);
221 fRunAna->AddTask(siliconHM);
222
223 // ====================================================================== //
224 // === GEM hit finder === //
225 // ====================================================================== //
226 BmnGemStripHitMaker* gemHM = new BmnGemStripHitMaker(run_period, run_number, isExp);
227 if (isExp)
228 gemHM->SetHitMatching(kFALSE);
229 fRunAna->AddTask(gemHM);
230
231 // ====================================================================== //
232 // === CSC hit finder === //
233 // ====================================================================== //
234 BmnCSCHitMaker* cscHM = new BmnCSCHitMaker(run_period, run_number, isExp);
235 // if (!isExp)
236 cscHM->SetCurrentConfig(BmnCSCConfiguration::Run9); // set explicitly
237 if (isExp)
238 cscHM->SetHitMatching(kFALSE);
239 fRunAna->AddTask(cscHM);
240
241 // ====================================================================== //
242 // === TOF400 hit finder === //
243 // ====================================================================== //
244 BmnTof1HitProducer* tof400HP = new BmnTof1HitProducer("TOF400", kTOF1, !isExp, iVerbose, kFALSE);
245 tof400HP->SetPeriodRun(run_period, run_number);
246 fRunAna->AddTask(tof400HP);
247
248 // ====================================================================== //
249 // === TOF700 hit finder === //
250 // ====================================================================== //
251 BmnTof1HitProducer* tof700HP = new BmnTof1HitProducer("TOF700", kTOF701, !isExp, iVerbose, kFALSE);
252 tof700HP->SetPeriodRun(run_period, run_number);
253 fRunAna->AddTask(tof700HP);
254
255 // ====================================================================== //
256 // === DCH hit finder === //
257 // ====================================================================== //
258 // if (!isExp) {
259 // BmnDchHitProducer* dchHP = new BmnDchHitProducer();
260 // fRunAna->AddTask(dchHP);
261 // }
262
263 // ====================================================================== //
264 // === FHCAL/ZDC === //
265 // ====================================================================== //
266 bool IsGlobalCoordinates = true;
267 if (run_period >= 8) {
268 // TODO check isExp
269 BmnFHCalReconstructor* fhcalReco = new BmnFHCalReconstructor(isExp, IsGlobalCoordinates);
270 fhcalReco->SetRecoCutsFile(Form("FHCAL_reco_cuts_period%d.txt", run_period));
271 fRunAna->AddTask(fhcalReco);
272 } else {
273 BmnZdcAnalyzer* zdcAna = new BmnZdcAnalyzer();
274 fRunAna->AddTask(zdcAna);
275 }
276
277 // ====================================================================== //
278 // === ScWall === //
279 // ====================================================================== //
280 IsGlobalCoordinates = true;
281 BmnScWallReconstructor* scwallReco = new BmnScWallReconstructor(isExp, IsGlobalCoordinates);
282 scwallReco->SetRecoCutsFile(Form("SCWALL_reco_cuts_period%d.txt", run_period));
283 fRunAna->AddTask(scwallReco);
284
285 // ====================================================================== //
286 // === Hodo === //
287 // ====================================================================== //
288
289 BmnHodoReconstructor* hodoReco =
290 new BmnHodoReconstructor(Form("HODO_Q_calibration_period%d.json", run_period), isExp);
291 hodoReco->SetRecoCutsFile(Form("HODO_reco_cuts_period%d.json", run_period));
292 fRunAna->AddTask(hodoReco);
293
294 // ====================================================================== //
295 // === Ndet === //
296 // ====================================================================== //
297 IsGlobalCoordinates = true;
298 BmnNdetReconstructor* ndetReco = new BmnNdetReconstructor(isExp, IsGlobalCoordinates);
299 ndetReco->SetRecoCutsFile(Form("NDET_reco_cuts_period%d.txt", run_period));
300 fRunAna->AddTask(ndetReco);
301
302 // ====================================================================== //
303 // === Vacuum Wall === //
304 // ====================================================================== //
305
307 fRunAna->AddTask(vacReco);
308
309 // ====================================================================== //
310 // === Inner Tracking === //
311 // ====================================================================== //
312 if (run_period > 8)
313 CbmStsDigiScheme::Instance(9); // AZ-310126
314
315 TString innerTrackBranchName; // use different track container
316 if (tracking == L1Tracking)
317 innerTrackBranchName = "StsTrack";
318 else
319 innerTrackBranchName = "StsVector";
320 if (run_period >= 8) {
321 BmnToCbmHitConverter* hitConverter = new BmnToCbmHitConverter(iVerbose, isExp);
322 // AZ-150224 hitConverter->SetFixedErrors(0.05, 0.25, 0.02, 0.65);
323 hitConverter->SetFixedErrors(0.08 / sqrt(12) * 1.2, 0.1234, 0.01 / sqrt(12), 0.1234); // AZ-150224
324 hitConverter->EnableAlignment(kFALSE); // AZ-310126
325 // AZ-310126
326 if (run_period > 8) {
327 hitConverter->SetGemConfigFile("GemRun9.xml");
328 hitConverter->SetSilConfigFile("SiliconRun9.xml");
329 hitConverter->SetVspConfigFile("VSP_Run9.xml");
330 }
331 //
332 fRunAna->AddTask(hitConverter);
333
334 CbmKF* kalman = new CbmKF();
335 fRunAna->AddTask(kalman);
336
337 CbmL1* l1 = new CbmL1();
338 TString stsMatBudgetFile = "";
339 l1->SetMaterialBudgetFileName(stsMatBudgetFile);
340 // AZ-310126 fRunAna->AddTask(l1);
341
342 if (tracking == L1Tracking) {
343 FairTask* stsFindTracks = new CbmStsFindTracks(iVerbose, "CbmL1StsTrackFinder");
344 fRunAna->AddTask(stsFindTracks);
345 }
346 if (tracking == VectorFinder) {
347 // BmnStsVectorFinder* vf = new BmnStsVectorFinder();
349 vf->SetMatBudgetFileName("$VMCWORKDIR/parameters/reco/sts_matbudget_run8.root");
350 vf->SetNofSiStations(5); // AZ-310126 - 4Si+VSP
351 fRunAna->AddTask(vf);
352 }
353
354 BmnStsMatchTracks* stsMatchTracks = new BmnStsMatchTracks(iVerbose);
355 stsMatchTracks->SetTrackBranch(innerTrackBranchName);
356 fRunAna->AddTask(stsMatchTracks);
357
358 } else {
359 BmnInnerTrackingRun7* innerTF = new BmnInnerTrackingRun7(run_number, isTarget);
360 innerTF->SetFiltration(isExp); // we use filtration for experimental data only now
361 fRunAna->AddTask(innerTF);
362 }
363
364 // ====================================================================== //
365 // === Beam Tracking === //
366 // ====================================================================== //
367 if (run_period >= 8) {
368 if (isExp) {
369 BmnBeamTracking* beamTF = new BmnBeamTracking(run_period);
370 fRunAna->AddTask(beamTF);
371 }
372 } else {
373 BmnMwpcTrackFinder* mwpcTF = new BmnMwpcTrackFinder(isExp, run_period, run_number);
374 fRunAna->AddTask(mwpcTF);
375 }
376
377 // ====================================================================== //
378 // === Tracking (DCH) === //
379 // ====================================================================== //
380 // BmnDchTrackFinder* dchTF = new BmnDchTrackFinder(run_period, run_number, isExp);
381 // dchTF->SetTransferFunction("transfer_func.txt");
382 // fRunAna->AddTask(dchTF);
383
384 // ====================================================================== //
385 // === Primary vertex finding === //
386 // ====================================================================== //
387 // if (run_period >= 8) {
388 CbmPrimaryVertexFinder* pvFinder = new CbmPVFinderKF();
389 CbmFindPrimaryVertex* findVertex = new CbmFindPrimaryVertex(pvFinder);
390 findVertex->SetTrackBranch(innerTrackBranchName);
391 fRunAna->AddTask(findVertex);
392
393 // AZ-150224
395 fRunAna->AddTask(pvMPD);
396
398 fRunAna->AddTask(combPV);
399 //
400 // // } else {
401 // BmnVertexFinder* gemVF = new BmnVertexFinder(run_period);
402 // fRunAna->AddTask(gemVF);
403 //}
404
405 // ====================================================================== //
406 // === Global Tracking === //
407 // ====================================================================== //
409 glTF->SetPeriodNumber(run_period);
410 glTF->SetInnerTracksBranchName(innerTrackBranchName);
411 fRunAna->AddTask(glTF);
412
413 // BmnVertexFinder* gemVF = new BmnVertexFinder(run_period);
414 // fRunAna->AddTask(gemVF);
415
416 // ====================================================================== //
417 // === Matching global track to MC track procedure === //
418 // ====================================================================== //
419 if (!isExp) {
420 BmnMatchRecoToMC* mcMatching = new BmnMatchRecoToMC();
421 mcMatching->SetInnerTracksBranchName(innerTrackBranchName);
422 fRunAna->AddTask(mcMatching);
423 }
424
425 // ====================================================================== //
426 // === PID procedure === //
427 // ====================================================================== //
428 BmnPid* pid_analyser = new BmnPid();
429 fRunAna->AddTask(pid_analyser);
430
431 // // ====================================================================== //
432 // // === Residual analysis === //
433 // // ====================================================================== //
434 // if (run_period < 8) {
435 // BmnResiduals* res = new BmnResiduals(run_period, run_number);
436 // fRunAna->AddTask(res);
437 // }
438
439 // // ====================================================================== //
440 // // === Centrality === //
441 // // ====================================================================== //
442 // CentralityClusterizer* cclusterizer = new CentralityClusterizer("XeCsI@3.8AGeV_MBT_7clusters_period8.root");
443 // fRunAna->AddTask(cclusterizer);
444 //
445 // Fill DST Event Header
446 BmnFillDstTask* dst_task = new BmnFillDstTask(nStartEvent, nEvents, isExp, run_period, run_number);
447 fRunAna->AddTask(dst_task);
448
449#ifndef OnlineMode
450 // ----- Parameter database --------------------------------------------
451 FairRuntimeDb* rtdb = fRunAna->GetRuntimeDb();
452 FairParRootFileIo* parIo1 = new FairParRootFileIo();
453 FairParAsciiFileIo* parIo2 = new FairParAsciiFileIo();
454 parIo1->open(inFileName.Data());
455 parIo2->open(parFileNameList, "in");
456 rtdb->setFirstInput(parIo1);
457 rtdb->setSecondInput(parIo2);
458#endif
459 // -------------------------------------------------------------------------
460
461 // ----- Initialize FaiRunAna --------------------------------------------
462 fRunAna->GetMainTask()->SetVerbose(iVerbose);
463 fRunAna->Init();
464 cout << "Starting run" << endl;
465#ifdef OnlineMode
466 fRunAna->Run(-1, -1);
467#else
468 fRunAna->Run(nStartEvent, nStartEvent + nEvents);
469#endif
470 // -------------------------------------------------------------------------
471 // ----- Finish --------------------------------------------------------
472 // gSystem->Exec(TString::Format("rm -f %s", geoFileName.Data()));
473 delete fRunAna;
474 // delete pvFinder;
475 timer.Stop();
476 Double_t rtime = timer.RealTime();
477 Double_t ctime = timer.CpuTime();
478 cout << endl << endl;
479 cout << "Macro finished successfully." << endl; // marker of successful execution
480 cout << "Input file is " + inFileName << endl;
481 cout << "Output file is " + dstFileName << endl;
482 cout << "Real time " << rtime << " s, CPU time " << ctime << " s" << endl;
483 cout << endl;
484 // ------------------------------------------------------------------------
485}
@ kTOF1
@ kTOF701
bool Bool_t
int Int_t
Int_t gDebug
constexpr Bool_t kFALSE
double Double_t
constexpr Bool_t kTRUE
#define R__ADD_INCLUDE_PATH(PATH)
R__EXTERN TRandom * gRandom
char * Form(const char *fmt,...)
void SetCurrentConfig(BmnCSCConfiguration::CSC_CONFIG config)
void SetHitMatching(Bool_t opt=kTRUE)
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 bool SetFieldScale(FairField *field, double scale)
static int isSimulationFile(TString fileName="")
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)
Field Map does not have any symmetries w.r.t coordinate axises.
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.
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
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()
UniRun.h Class for the table: run_.
Definition UniRun.h:21
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_bmn(TString inFileName="tcp://localhost:5555", TString dstFileName="$VMCWORKDIR/macro/run/bmndst.root", Int_t nStartEvent=0, Int_t nEvents=10, enumTracking tracking=VectorFinder)