3 if ( nStations != 3 && nStations != 4 ) {
4 cout <<
"WRONG number of stations, only 3 or 4 allowed." << endl;
12 baseName.Form(
"Gem_%dStations_%d_%dpart_n%d",nStations,pdgC,nparts,
nEvents);
17 TString outFile = baseName + Form(
"_QAhits_e%.1f.root",pointEffDist);
24 FairRunAna *
fRun=
new FairRunAna();
25 fRun->SetInputFile(MCFile);
26 fRun->AddFriend(hitFile);
27 fRun->SetOutputFile(outFile);
31 if ( nStations == 4 ) allDigiFile = sysFile+
"/macro/params/gem_4Stations.digi.par";
33 FairRuntimeDb*
rtdb = fRun->GetRuntimeDb();
34 FairParRootFileIo*
parInput1 =
new FairParRootFileIo();
35 parInput1->open(parFile.Data());
37 FairParAsciiFileIo*
parIo1 =
new FairParAsciiFileIo();
38 parIo1->open(allDigiFile.Data(),
"in");
40 rtdb->setFirstInput(parInput1);
41 rtdb->setSecondInput(parIo1);
48 fRun->AddTask(gemFindHitsQA);
102 cout << endl << endl;
103 cout <<
"Macro finished succesfully." << endl;
104 cout <<
"Output file is " << outFile << endl;
105 cout <<
"Parameter file is " << parFile << endl;
106 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
" s" << endl;
void SetPointEffDist(Double_t dn)
track finding quality assesment task
FairParRootFileIo * parInput1
FairParAsciiFileIo * parIo1
Int_t gem_boxHitsQAN(Int_t nStations, Int_t nparts, Int_t nEvents=1000, Double_t pointEffDist=0.1, Int_t pdgC=211, int verboseLevel=0)