Go to the source code of this file.
Int_t TB_gem_digi |
( |
Int_t |
nEvents = 1000 , |
|
|
Int_t |
anaEv = 1000 , |
|
|
Int_t |
nofC = 1000 , |
|
|
Int_t |
cWid = 10 , |
|
|
Int_t |
nStations = 3 , |
|
|
int |
verboseLevel = 0 |
|
) |
| |
Definition at line 4 of file TB_gem_digi.C.
References allDigiFile, ctime, Double_t, fRun, gemDigitize, MCFile, nEvents, outFile, parFile, parInput1, parIo1, rtdb, rtime, PndGemDigitize::RunTimeBased(), PndGemDigitize::SetRealisticResponse(), sysFile, timer, TString, and verboseLevel.
6 if ( nStations != 3 && nStations != 4 ) {
7 cout <<
"WRONG number of stations (" << nStations <<
"), only 3 or 4 allowed." << endl;
15 baseName.Form(
"Gem_MvdStt_%dStations_DPM_n%d",nStations,
nEvents);
19 TString outFile = baseName + Form(
"_digiSorted_a%d_c%dx%d.root",anaEv,nofC,cWid);
21 std::cout <<
"Output File: " << outFile.Data()<< std::endl;
29 FairRunAna *
fRun=
new FairRunAna();
30 fRun->SetInputFile(MCFile);
31 fRun->SetOutputFile(outFile);
33 fRun->SetEventMeanTime(50);
37 if ( nStations == 4 ) allDigiFile = sysFile+
"/macro/params/gem_4Stations.digi.par";
39 FairRuntimeDb*
rtdb = fRun->GetRuntimeDb();
40 FairParRootFileIo*
parInput1 =
new FairParRootFileIo();
41 parInput1->open(parFile.Data());
43 FairParAsciiFileIo*
parIo1 =
new FairParAsciiFileIo();
44 parIo1->open(allDigiFile.Data(),
"in");
46 rtdb->setFirstInput(parInput1);
47 rtdb->setSecondInput(parIo1);
54 fRun->AddTask(gemDigitize);
57 fRun->AddTask(gemSorter);
69 cout <<
"Macro finished succesfully." << endl;
70 cout <<
"Output file is " << outFile << endl;
71 cout <<
"Parameter file is " << parFile << endl;
72 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
" s" << endl;
void RunTimeBased(Bool_t bt=kTRUE)
void SetRealisticResponse(Bool_t bt=kTRUE)
FairParRootFileIo * parInput1
PndGemDigitize * gemDigitize
FairParAsciiFileIo * parIo1