8 void run_digi(TString mcEngine =
"TGeant3", Int_t fileId = 0)
14 TString inFile =
"pixel_";
16 inFile = inFile + mcEngine +
".mc.root";
18 inFile = Form(
"%s%s.mc.f%d.root", inFile.Data(), mcEngine.Data(), fileId);
21 TString parFile =
"pixel_";
22 parFile = parFile + mcEngine +
".params.root";
25 TString dir = getenv(
"VMCWORKDIR");
26 TString tutdir = dir +
"/MQ/pixelDetector";
27 TString digParFile = tutdir +
"/param/pixel_digi.par";
30 TString outFile =
"pixel_";
32 outFile = outFile + mcEngine +
".digi.root";
34 outFile = Form(
"%s%s.digi.f%d.root", outFile.Data(), mcEngine.Data(), fileId);
47 parInput1->
open(parFile.Data());
50 parIo1->
open(digParFile.Data(),
"in");
72 cout <<
"<DartMeasurement name=\"MaxMemory\" type=\"numeric/double\">";
74 cout <<
"</DartMeasurement>" << endl;
77 Double_t rtime = timer.RealTime();
78 Double_t ctime = timer.CpuTime();
80 Float_t cpuUsage = ctime / rtime;
81 cout <<
"<DartMeasurement name=\"CpuLoad\" type=\"numeric/double\">";
83 cout <<
"</DartMeasurement>" << endl;
86 cout <<
"Output file is " << outFile << endl;
87 cout <<
"Parameter file is " << parFile << endl;
88 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
"s" << endl << endl;
89 cout <<
"Macro finished successfully." << endl;
list of container factories
Bool_t open(const Text_t *fname, const Text_t *status="in")
Bool_t setSecondInput(FairParIo *)
void Run(Int_t NStart=0, Int_t NStop=0)
void SetSink(FairSink *tempSink)
void run_digi(TString mcEngine="TGeant3")
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 *)