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