Go to the source code of this file.
int runLumi4Fitter |
( |
const int |
nEvents = 100000 , |
|
|
const int |
startEvent = 0 , |
|
|
TString |
storePath = "tmpOutput" , |
|
|
const int |
verboseLevel = 0 |
|
) |
| |
Definition at line 1 of file runLumi4Fitter.C.
References ctime, DigiFile, Double_t, fRun, PndLmdLinFitTask::Init(), lmdfit, MCFile, nEvents, outFile, parFile, parInput1, RecoFile, rtdb, rtime, startEvent, storePath, timer, TString, and verboseLevel.
25 gROOT->Macro(
"$VMCWORKDIR/gconfig/rootlogon.C");
26 gSystem->Load(
"libSds");
27 gSystem->Load(
"libSdsReco");
28 gSystem->Load(
"libLmd");
29 gSystem->Load(
"libLmdReco");
30 gSystem->Load(
"libLmdTrk");
37 std::cout <<
"MCFile : " << MCFile.Data()<< std::endl;
38 std::cout <<
"DigiFile: " << DigiFile.Data()<< std::endl;
39 std::cout <<
"RecoFile: " << RecoFile.Data()<< std::endl;
40 std::cout <<
"TCandFile: " << CandFile.Data()<< std::endl;
41 std::cout <<
"TrackFile: " << outFile.Data()<< std::endl;
59 FairRunAna *
fRun=
new FairRunAna();
60 fRun->SetInputFile(MCFile);
61 fRun->AddFriend(DigiFile);
62 fRun->AddFriend(RecoFile);
63 fRun->AddFriend(CandFile);
65 fRun->SetOutputFile(outFile);
70 FairRuntimeDb*
rtdb = fRun->GetRuntimeDb();
71 FairParRootFileIo*
parInput1 =
new FairParRootFileIo(kTRUE);
72 parInput1->open(parFile.Data(),
"UPDATE");
73 rtdb->setFirstInput(parInput1);
84 fRun->AddTask(lmdfit);
86 rtdb->setOutput(parInput1);
96 cout<<
"fRun->Run(0, "<<
nEvents<<
") was done!"<<endl;
105 cout << endl << endl;
106 cout <<
"Macro finished succesfully." << endl;
107 cout <<
"Output file is " << outFile << endl;
108 cout <<
"Parameter file is " << parFile << endl;
109 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
" s" << endl;
FairParRootFileIo * parInput1
PndLmdLinFitTask * lmdfit
virtual InitStatus Init()