3 const bool mergedHits =
true,
const bool SkipFilt =
false,
4 const bool XthFilt =
true,
const bool YphFilt =
true,
const bool BoxFilt =
5 false,
const double dX = 0,
const double dY = 0) {
26 std::cout <<
"TCandFile: " << CandFile.Data() << std::endl;
27 std::cout <<
"TrackInFile: " << TrkFile.Data() << std::endl;
28 std::cout <<
"TrackOutFile: " << outFile.Data() << std::endl;
36 FairRunAna *
fRun =
new FairRunAna();
37 FairFileSource input_source(TrkFile);
38 input_source.AddFriend(CandFile);
39 fRun->SetSource(&input_source);
40 fRun->SetOutputFile(outFile);
45 FairRuntimeDb*
rtdb = fRun->GetRuntimeDb();
46 FairParRootFileIo*
parInput1 =
new FairParRootFileIo(kTRUE);
47 parInput1->open(parFile.Data(),
"UPDATE");
48 rtdb->setFirstInput(parInput1);
55 TString inHits =
"LMDHitsPixel";
57 inHits =
"LMDHitsMerged";
62 cout <<
"Skip Kinematic Cuts!" << endl;
66 cout <<
"Set BOX Cuts!" << endl;
70 cout <<
"Set X Cuts!" << endl;
75 cout <<
"Set Y Cuts!" << endl;
80 fRun->AddTask(lmdfilt);
82 rtdb->setOutput(parInput1);
91 cout <<
"fRun->Run(0, " <<
nEvents <<
") was done!" << endl;
100 cout << endl << endl;
101 cout <<
"Macro finished succesfully." << endl;
102 cout <<
"Output file is " << outFile << endl;
103 cout <<
"Parameter file is " << parFile << endl;
104 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
" s" << endl;
void SetSkipKinFilt(bool fl)
TGeoManager * gGeoManager
FairParRootFileIo * parInput1
int runLumiPixel4aFilter(const int nEvents=100000, const int startEvent=0, TString storePath="tmpOutput", const int verboseLevel=0, const bool mergedHits=true, const bool SkipFilt=false, const bool XthFilt=true, const bool YphFilt=true, const bool BoxFilt=false, const double dX=0, const double dY=0)
virtual InitStatus Init()