Go to the source code of this file.
Ideal Track finder
QA task
Definition at line 10 of file recoqa_ca.C.
References PndIdealTrackFinder::AddBranchName(), CloseGeoManager(), ctime, digiFile, Double_t, emcDigiFile, fRun, iVerbose, nEvents, outFile, parFile, parInput1, parIo1, rtdb, rtime, timer, and TString.
32 FairRunAna *
fRun=
new FairRunAna();
33 fRun->SetInputFile(
"sim_complete.root");
34 fRun->AddFriend(
"digi_complete.root");
37 fRun->AddFriend(
"reco_ca.root");
38 fRun->SetOutputFile(outFile);
39 fRun->SetGenerateRunInfo(kFALSE);
40 fRun->SetUseFairLinks(kTRUE);
44 emcDigiFile +=
"/macro/params/";
47 FairRuntimeDb*
rtdb = fRun->GetRuntimeDb();
48 FairParRootFileIo*
parInput1 =
new FairParRootFileIo();
49 parInput1->open(parFile.Data());
51 FairParAsciiFileIo*
parIo1 =
new FairParAsciiFileIo();
52 parIo1->open(emcDigiFile.Data(),
"in");
54 rtdb->setFirstInput(parInput1);
55 rtdb->setSecondInput(parIo1);
63 fRun->AddTask(idealTracking);
68 fRun->AddTask(trackingQA);
72 cout <<
"fRun->Init()" << endl;
85 cout <<
"Macro finished successfully." << endl;
86 cout <<
"Output file is " << outFile << endl;
87 cout <<
"Parameter file is " << parFile << endl;
88 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
" s" << endl;
91 cout <<
" Test passed" << endl;
92 cout <<
" All ok " << endl;
Ideal track finder for all types of tracking detectors The PndIdealTrackFinder combines all hits in ...
FairParRootFileIo * parInput1
FairParAsciiFileIo * parIo1
virtual void AddBranchName(TString name)
Search for tracks only in given branches. If no BranchName is given all tracking detectors are taken...