8 void run_digiToBin(Int_t divideLevel = 1, TString mcEngine =
"TGeant3")
10 if (divideLevel < 0 || divideLevel > 2) {
11 cout <<
"set divideLevel to either 0 - event, 1 - station, 2 - sensor" << endl;
19 TString inFile =
"pixel_";
20 inFile = inFile + mcEngine +
".mc.root";
23 TString parFile =
"pixel_";
24 parFile = parFile + mcEngine +
".params.root";
27 TString dir = getenv(
"VMCWORKDIR");
28 TString tutdir = dir +
"/MQ/pixelDetector";
29 TString digParFile = tutdir +
"/param/pixel_digi.par";
32 TString outFile =
"pixel_";
33 outFile = outFile + mcEngine +
".digiToBin.root";
46 parInput1->
open(parFile.Data());
49 parIo1->
open(digParFile.Data(),
"in");
81 cout <<
"<DartMeasurement name=\"MaxMemory\" type=\"numeric/double\">";
83 cout <<
"</DartMeasurement>" << endl;
86 Double_t rtime = timer.RealTime();
87 Double_t ctime = timer.CpuTime();
89 Float_t cpuUsage = ctime / rtime;
90 cout <<
"<DartMeasurement name=\"CpuLoad\" type=\"numeric/double\">";
92 cout <<
"</DartMeasurement>" << endl;
95 cout <<
"Output file is " << outFile << endl;
96 cout <<
"Parameter file is " << parFile << endl;
97 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
"s" << endl << endl;
98 cout <<
"Macro finished successfully." << endl;
list of container factories
Bool_t open(const Text_t *fname, const Text_t *status="in")
void run_digiToBin(Int_t divideLevel=1, TString mcEngine="TGeant3")
void SetDivideLevel(Int_t idiv)
void SetOutputFileName(TString tstr)
Bool_t setSecondInput(FairParIo *)
void Run(Int_t NStart=0, Int_t NStop=0)
void SetSink(FairSink *tempSink)
FairRuntimeDb * GetRuntimeDb(void)
virtual void AddTask(FairTask *t)
Bool_t open(const Text_t *fname, Option_t *option="READ", const Text_t *ftitle="", Int_t compress=1)
virtual void SetSource(FairSource *tempSource)
Bool_t setFirstInput(FairParIo *)