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.mc.root";
25 TString parFile =
"prop.par.root";
28 TString outFile =
"prop.hits.root";
40 parInput1->
open(parFile.Data());
65 cout <<
"<DartMeasurement name=\"MaxMemory\" type=\"numeric/double\">";
67 cout <<
"</DartMeasurement>" << endl;
70 Double_t rtime = timer.RealTime();
71 Double_t ctime = timer.CpuTime();
73 Float_t cpuUsage = ctime / rtime;
74 cout <<
"<DartMeasurement name=\"CpuLoad\" type=\"numeric/double\">";
76 cout <<
"</DartMeasurement>" << endl;
79 cout <<
"Output file is " << outFile << endl;
80 cout <<
"Parameter file is " << parFile << endl;
81 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
"s" << endl << endl;
82 cout <<
"Macro finished successfully." << endl;
list of container factories
void SetHitsArrayName(const std::string &tempName)
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 SetPointsArrayName(const std::string &tempName)
Bool_t setFirstInput(FairParIo *)