11 #include<TApplication.h>
17 #include<TClonesArray.h>
26 #include<TStopwatch.h>
32 #include<FairRunAna.h>
33 #include<FairRootManager.h>
35 #include<FairRtdbRun.h>
36 #include<FairRuntimeDb.h>
37 #include<FairParRootFileIo.h>
39 #include<FairLogger.h>
44 int main(
int nargs,
char** args) {
52 cout <<
" Hint: you may change the standard path from "
54 <<
" to any other folder by providing the path as an argument! "
57 cout <<
" Error: too many arguments! " << endl;
73 TString CandFile = storePath +
"/Lumi_TCand_";
81 TString TrkFile = storePath +
"/Lumi_Track_";
86 gROOT->Macro(
"$VMCWORKDIR/gconfig/rootlogon.C");
87 gSystem->Load(
"libSds");
88 gSystem->Load(
"libSdsReco");
89 gSystem->Load(
"libLmd");
90 gSystem->Load(
"libLmdReco");
91 gSystem->Load(
"libLmdTrk");
99 TString outFilehist = storePath +
"/Lumi_performance_histograms_";
101 outFilehist +=
".root";
103 std::cout <<
"MCFile : " << MCFile.Data() << std::endl;
104 std::cout <<
"DigiFile: " << DigiFile.Data() << std::endl;
105 std::cout <<
"RecoFile: " << RecoFile.Data() << std::endl;
106 std::cout <<
"TCandFile: " << CandFile.Data() << std::endl;
107 std::cout <<
"TrackFile: " << TrkFile.Data() << std::endl;
108 std::cout <<
"TestingFile: " << outFile.Data() << std::endl;
124 FairRunAna *
fRun =
new FairRunAna();
125 fRun->SetInputFile(MCFile);
130 fRun->SetOutputFile(outFile);
133 FairGeane *
Geane =
new FairGeane();
134 fRun->AddTask(Geane);
137 FairRuntimeDb*
rtdb = fRun->GetRuntimeDb();
138 FairParRootFileIo*
parInput1 =
new FairParRootFileIo(kTRUE);
139 parInput1->open(parFile.Data());
140 rtdb->setFirstInput(parInput1);
150 TVector3 IP(0, 0, 0);
153 lmdperformance->SetVerbose(0);
154 fRun->AddTask(lmdperformance);
155 rtdb->setOutput(parInput1);
166 FairRootManager* ioman = FairRootManager::Instance();
168 std::cout <<
"Error: "
169 <<
"RootManager not instantiated!" << std::endl;
172 fRun->Run(0, ioman->CheckMaxEventNo());
180 cout << endl << endl;
181 cout <<
"Macro finished succesfully." << endl;
182 cout <<
"Output file is " << outFile << endl;
183 cout <<
"Parameter file is " << parFile << endl;
184 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
" s" << endl;
int main(int argc, char **argv)
FairParRootFileIo * parInput1