14 if ( nStations != 3 && nStations != 4 )
16 cout <<
"WRONG number of stations, only 3 or 4 allowed." << endl;
21 gROOT->Macro(
"$VMCWORKDIR/gconfig/rootlogon.C");
26 baseName.Form(
"Gem_%dStations_%gGeV_n%d",nStations,momentum,
nEvents);
32 std::cout <<
"Output File: " << outFile.Data()<< std::endl;
40 FairRunAna *
fRun=
new FairRunAna();
41 fRun->SetInputFile(MCFile);
42 fRun->SetOutputFile(outFile);
48 FairRuntimeDb*
rtdb = fRun->GetRuntimeDb();
49 FairParRootFileIo*
parInput1 =
new FairParRootFileIo();
50 parInput1->open(parFile.Data());
52 FairParAsciiFileIo*
parIo1 =
new FairParAsciiFileIo();
53 parIo1->open(allDigiFile.Data(),
"in");
55 rtdb->setFirstInput(parInput1);
56 rtdb->setSecondInput(parIo1);
61 fRun->AddTask(gemDigitize);
74 cout <<
"Macro finished succesfully." << endl;
75 cout <<
"Output file is " << outFile << endl;
76 cout <<
"Parameter file is " << parFile << endl;
77 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
" s" << endl;
FairParRootFileIo * parInput1
PndGemDigitize * gemDigitize
FairParAsciiFileIo * parIo1
Int_t digi_dirc(Int_t nStations, Double_t momentum=15., Int_t nEvents=1000, int verboseLevel=0)