6 if ( nStations != 3 && nStations != 4 ) {
7 cout <<
"WRONG number of stations, only 3 or 4 allowed." << endl;
15 baseName.Form(
"Gem_%dStations_%gGeV_n%d",nStations,momentum,
nEvents);
21 std::cout <<
"Output File: " << outFile.Data()<< std::endl;
29 FairRunAna *
fRun=
new FairRunAna();
30 fRun->SetInputFile(MCFile);
31 fRun->SetOutputFile(outFile);
36 if ( nStations == 4 ) allDigiFile = sysFile+
"/macro/params/gem_4Stations.digi.par";
38 FairRuntimeDb*
rtdb = fRun->GetRuntimeDb();
39 FairParRootFileIo*
parInput1 =
new FairParRootFileIo();
40 parInput1->open(parFile.Data());
42 FairParAsciiFileIo*
parIo1 =
new FairParAsciiFileIo();
43 parIo1->open(allDigiFile.Data(),
"in");
45 rtdb->setFirstInput(parInput1);
46 rtdb->setSecondInput(parIo1);
51 fRun->AddTask(gemHitProducer);
64 cout <<
"Macro finished succesfully." << endl;
65 cout <<
"Output file is " << outFile << endl;
66 cout <<
"Parameter file is " << parFile << endl;
67 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
" s" << endl;
Int_t gem_idealHits(Int_t nStations, Double_t momentum=15., Int_t nEvents=1000, int verboseLevel=0)
Class for conversion points to hits.
FairParRootFileIo * parInput1
FairParAsciiFileIo * parIo1