14 gROOT->LoadMacro(
"$VMCWORKDIR/gconfig/rootlogon.C");
17 gROOT->Macro(
"$VMCWORKDIR/gconfig/rootlogon.C");
20 gSystem->Load(
"libriemann");
29 std::cout <<
"DigiFile: " << DigiFile.Data()<< std::endl;
30 std::cout <<
"RecoFile: " << RecoFile.Data()<< std::endl;
31 std::cout <<
"TrackFinderFile: " << outFile.Data()<< std::endl;
46 FairRunAna *
fRun=
new FairRunAna();
47 fRun->SetInputFile(MCFile);
48 fRun->AddFriend(DigiFile);
49 fRun->AddFriend(RecoFile);
51 fRun->SetOutputFile(outFile);
57 FairRuntimeDb*
rtdb = fRun->GetRuntimeDb();
59 FairParRootFileIo*
parInput1 =
new FairParRootFileIo(kTRUE);
60 parInput1->open(parFile.Data(),
"UPDATE");
64 rtdb->setFirstInput(parInput1);
74 PndLheHitsMaker*
trackMS =
new PndLheHitsMaker(
"Tracking routine");
75 trackMS->SetTpcMode(2);
77 trackMS->SetMvdMode(2);
78 trackMS->SetVerbose(3);
79 fRun->AddTask(trackMS);
82 fRun->AddTask(trackFinder);
84 PndLheTrackFitter*
trackFitter =
new PndLheTrackFitter(
"fitting");
85 fRun->AddTask(trackFitter);
87 PndLhePidMaker*
pidMaker =
new PndLhePidMaker(
"pid");
88 pidMaker->SetGeanePro(kFALSE);
89 pidMaker->SetDebugMode(kTRUE);
90 fRun->AddTask(pidMaker);
99 rtdb->setOutput(parInput1);
103 PndMvdGeoPar*
geoPar = (PndMvdGeoPar*)(rtdb->getContainer(
"PndMvdGeoPar"));
108 fRun->Run(0,nEvents);
118 cout << endl << endl;
119 cout <<
"Macro finished succesfully." << endl;
120 cout <<
"Output file is " << outFile << endl;
121 cout <<
"Parameter file is " << parFile << endl;
122 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
" s" << endl;
std::string GetDigiFileName(std::string addon="", bool cut=false)
FairParRootFileIo * parInput1
std::string GetRecoFileName(std::string addon="", bool cut=false)
A simple class which adds the corresponding file extensions to a given base class.
PndLheTrackFitter * trackFitter
std::string GetTrackFindingFileName(std::string addon="", bool cut=false)
PndLhePidMaker * pidMaker
PndLheHitsMaker * trackMS
PndLheTrackFinder * trackFinder
PndFileNameCreator creator(MCFile.Data())