Go to the source code of this file.
int anaPatternRecoQuality |
( |
Int_t |
nEvents = 0 | ) |
|
Definition at line 1 of file anaPatternRecoQuality.C.
References ctime, digiFile, Double_t, emcDigiFile, fRun, Geane, PndEmcMapper::Init(), iVerbose, mcMatch, nEvents, outFile, parFile, parInput1, parIo1, rtdb, rtime, timer, and TString.
26 FairRunAna *
fRun=
new FairRunAna();
27 fRun->SetInputFile(
"sim_complete.root");
28 fRun->AddFriend(
"digi_complete.root");
29 fRun->AddFriend(
"reco_complete.root");
30 fRun->SetOutputFile(outFile);
31 fRun->SetGenerateRunInfo(kFALSE);
32 FairGeane *
Geane =
new FairGeane();
37 emcDigiFile +=
"/macro/params/";
40 FairRuntimeDb*
rtdb = fRun->GetRuntimeDb();
41 FairParRootFileIo*
parInput1 =
new FairParRootFileIo();
42 parInput1->open(parFile.Data());
44 FairParAsciiFileIo*
parIo1 =
new FairParAsciiFileIo();
45 parIo1->open(emcDigiFile.Data(),
"in");
47 rtdb->setFirstInput(parInput1);
48 rtdb->setSecondInput(parIo1);
50 PndMCMatchCreatorTask*
mcMatch =
new PndMCMatchCreatorTask();
51 mcMatch->SetVerbose(0);
52 fRun->AddTask(mcMatch);
57 PndTrackingQualityTask* mcCheck =
new PndTrackingQualityTask(
"SttMvdGemGenTrack", kTRUE);
58 fRun->AddTask(mcCheck);
62 cout <<
"fRun->Init()" << endl;
75 cout <<
"Macro finished successfully." << endl;
76 cout <<
"Output file is " << outFile << endl;
77 cout <<
"Parameter file is " << parFile << endl;
78 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
" s" << endl;
81 cout <<
" Test passed" << endl;
82 cout <<
" All ok " << endl;
PndMCMatchCreatorTask * mcMatch
static void Init(Int_t MapVersion)
FairParRootFileIo * parInput1
FairParAsciiFileIo * parIo1