Method="Follow" - Track-following method, Method="CA" - Cellular Automaton missPl=true - use "missing plane" algorithm
10 RecoMergedFile +=
".root";
24 std::cout <<
"RecoFile: " << RecoFile.Data() << std::endl;
25 std::cout <<
"TCandFile: " << outFile.Data() << std::endl;
33 FairRunAna *
fRun =
new FairRunAna();
34 FairFileSource input_source(RecoFile);
36 input_source.AddFriend(RecoMergedFile);
37 fRun->SetSource(&input_source);
38 fRun->SetOutputFile(outFile);
43 FairRuntimeDb*
rtdb = fRun->GetRuntimeDb();
44 FairParRootFileIo*
parInput1 =
new FairParRootFileIo(kTRUE);
45 parInput1->open(parFile.Data(),
"UPDATE");
46 rtdb->setFirstInput(parInput1);
53 TString inHits =
"LMDHitsPixel";
59 double accCAv[5] = { 5e-6, 1e-6, 9e-7, 8e-7, 8e-7 };
60 double delta_mom(0.1);
61 if (1.5 - delta_mom <
mom &&
mom < 1.5 + delta_mom)
63 else if (4.06 - delta_mom <
mom &&
mom < 4.06 + delta_mom)
65 else if (8.9 - delta_mom <
mom &&
mom < 8.9 + delta_mom)
67 else if (11.91 - delta_mom <
mom &&
mom < 11.91 + delta_mom)
69 else if (15.0 - delta_mom <
mom &&
mom < 15.0 + delta_mom)
74 <<
"! CA algorithm needs to know beam momentum for choose of proper cut !";
80 inHits =
"LMDHitsMerged";
84 if (Method ==
"Follow") {
91 fRun->AddTask(lmdfinder);
94 cout <<
"CA is going to use cut=" << accurCA << endl;
96 accurCA, nsensors, nplanes, inHits);
102 fRun->AddTask(lmdfinder);
104 cout <<
"Method " << Method.Data() <<
" doesn't exist!" << endl;
108 rtdb->setOutput(parInput1);
125 cout << endl << endl;
126 cout <<
"Macro finished succesfully." << endl;
127 cout <<
"Output file is " << outFile << endl;
128 cout <<
"Parameter file is " << parFile << endl;
129 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
" s" << endl;
void SetSensPixelFlag(bool fS)
TGeoManager * gGeoManager
void SetInaccuracy(Double_t accu)
FairParRootFileIo * parInput1
void SetVerbose(Int_t verbose)
void SetVerbose(Int_t verbose)
void SetTrkCandCutsFlag(bool fS)
void SetSensPixelFlag(bool fS)