10 TString dir = getenv(
"VMCWORKDIR");
12 TString tut_geomdir = dir +
"/common/geometry";
13 gSystem->Setenv(
"GEOMPATH", tut_geomdir.Data());
15 TString tut_configdir = dir +
"/common/gconfig";
16 gSystem->Setenv(
"CONFIG_DIR", tut_configdir.Data());
22 TString inFile =
"prop.hits.root";
25 TString parFile =
"prop.par.root";
28 TString outFile =
"prop.tracks.root";
40 parInput1->
open(parFile.Data());
60 cout <<
"<DartMeasurement name=\"MaxMemory\" type=\"numeric/double\">";
62 cout <<
"</DartMeasurement>" << endl;
65 Double_t rtime = timer.RealTime();
66 Double_t ctime = timer.CpuTime();
68 Float_t cpuUsage = ctime / rtime;
69 cout <<
"<DartMeasurement name=\"CpuLoad\" type=\"numeric/double\">";
71 cout <<
"</DartMeasurement>" << endl;
74 cout <<
"Output file is " << outFile << endl;
75 cout <<
"Parameter file is " << parFile << endl;
76 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
"s" << endl << endl;
77 cout <<
"Macro finished successfully." << endl;
list of container factories
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 *)