Go to the source code of this file.
int runLumiPixel4Fitter |
( |
const int |
nEvents = 100000 , |
|
|
const int |
startEvent = 0 , |
|
|
TString |
storePath = "tmpOutput" , |
|
|
const int |
verboseLevel = 0 , |
|
|
const TString |
Method = "KalmanGeane" , |
|
|
const bool |
mergedHits = true , |
|
|
const double |
radlen = 0.31 |
|
) |
| |
Definition at line 1 of file runLumiPixel4Fitter.C.
References ctime, Double_t, fRun, gGeoManager, PndLmdLinFitTask::Init(), lmdfit, nEvents, outFile, parFile, parInput1, RecoFile, rtdb, rtime, PndLmdLinFitTask::SetRadLen(), startEvent, storePath, timer, TString, and verboseLevel.
8 RecoFile +=
"/Lumi_recoMerged_";
10 RecoFile +=
"/Lumi_reco_";
27 std::cout <<
"RecoFile: " << RecoFile.Data() << std::endl;
28 std::cout <<
"TCandFile: " << CandFile.Data() << std::endl;
29 std::cout <<
"TrackFile: " << outFile.Data() << std::endl;
37 FairRunAna *
fRun =
new FairRunAna();
38 FairFileSource input_source(RecoFile);
39 input_source.AddFriend(CandFile);
40 fRun->SetSource(&input_source);
41 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 inTrks =
"LMDTrackCand";
56 TString inHits =
"LMDHitsPixel";
58 inHits =
"LMDHitsMerged";
60 if (Method ==
"Minuit") {
66 fRun->AddTask(lmdfit);
69 <<
"I'm very sorry, but Kalman-Filter option for LMD is currently switched off :("
100 rtdb->setOutput(parInput1);
109 cout <<
"fRun->Run(0, " <<
nEvents <<
") was done!" << endl;
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;
TGeoManager * gGeoManager
FairParRootFileIo * parInput1
PndLmdLinFitTask * lmdfit
virtual InitStatus Init()