14 TString inFile =
"pixel_";
15 inFile = inFile + mcEngine +
".hits.root";
18 TString parFile =
"pixel_";
19 parFile = parFile + mcEngine +
".params.root";
22 TString dir = getenv(
"VMCWORKDIR");
23 TString tutdir = dir +
"/MQ/pixelDetector";
24 TString digParFile = tutdir +
"/param/pixel_digi.par";
27 TString outFile =
"pixel_";
28 outFile = outFile + mcEngine +
".tracks.root";
41 parInput1->
open(parFile.Data());
44 parIo1->
open(digParFile.Data(),
"in");
66 cout <<
"<DartMeasurement name=\"MaxMemory\" type=\"numeric/double\">";
68 cout <<
"</DartMeasurement>" << endl;
71 Double_t rtime = timer.RealTime();
72 Double_t ctime = timer.CpuTime();
74 Float_t cpuUsage = ctime / rtime;
75 cout <<
"<DartMeasurement name=\"CpuLoad\" type=\"numeric/double\">";
77 cout <<
"</DartMeasurement>" << endl;
80 cout <<
"Output file is " << outFile << endl;
81 cout <<
"Parameter file is " << parFile << endl;
82 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
"s" << endl << endl;
83 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)
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)
void run_tracks(TString mcEngine="TGeant3")
Bool_t setFirstInput(FairParIo *)