14 TString parFile =
"pixel_";
15 parFile = parFile + mcEngine +
".params.root";
18 TString dir = getenv(
"VMCWORKDIR");
19 TString tutdir = dir +
"/MQ/pixelDetector";
20 TString digParFile = tutdir +
"/param/pixel_digi.par";
23 TString outFile =
"pixel_";
24 outFile = outFile + mcEngine +
".viaAsciiSource.hits.root";
43 parInput1->
open(parFile.Data());
46 parIo1->
open(digParFile.Data(),
"in");
71 cout <<
"<DartMeasurement name=\"MaxMemory\" type=\"numeric/double\">";
73 cout <<
"</DartMeasurement>" << endl;
76 Double_t rtime = timer.RealTime();
77 Double_t ctime = timer.CpuTime();
79 Float_t cpuUsage = ctime / rtime;
80 cout <<
"<DartMeasurement name=\"CpuLoad\" type=\"numeric/double\">";
82 cout <<
"</DartMeasurement>" << endl;
85 cout <<
"Output file is " << outFile << endl;
86 cout <<
"Parameter file is " << parFile << endl;
87 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
"s" << endl << endl;
88 cout <<
"Macro finished successfully." << endl;
list of container factories
Bool_t open(const Text_t *fname, const Text_t *status="in")
void SetEventHeader(FairEventHeader *EvHeader)
Bool_t setSecondInput(FairParIo *)
void Run(Int_t NStart=0, Int_t NStop=0)
void SetSink(FairSink *tempSink)
void run_dAsciiSource(TString mcEngine="TGeant3")
void SetInputFileName(const TString &tstr)
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 *)