16 TString dir = getenv(
"VMCWORKDIR");
17 TString tutdir = dir +
"/simulation/Tutorial2";
19 TString inFile =
"./tutorial2_pions.mc_p2.000_t0_n10.root";
20 TString parFile =
"./tutorial2_pions.params_p2.000_t0_n10.root";
21 TString outFile =
"./digis.mc.root";
23 cout <<
"******************************" << endl;
24 cout <<
"InFile: " << inFile << endl;
25 cout <<
"ParamFile: " << parFile << endl;
26 cout <<
"OutFile: " << outFile << endl;
27 cout <<
"******************************" << endl;
38 io1->
open(parFile.Data(),
"UPDATE");
41 TString tutDetDigiFile = gSystem->Getenv(
"VMCWORKDIR");
42 tutDetDigiFile +=
"/simulation/Tutorial2/parameters/tutdet.digi.par";
43 parInput2->
open(tutDetDigiFile.Data(),
"in");
81 cout <<
"<DartMeasurement name=\"MaxMemory\" type=\"numeric/double\">";
83 cout <<
"</DartMeasurement>" << endl;
86 Double_t rtime = timer.RealTime();
87 Double_t ctime = timer.CpuTime();
89 Float_t cpuUsage = ctime / rtime;
90 cout <<
"<DartMeasurement name=\"CpuLoad\" type=\"numeric/double\">";
92 cout <<
"</DartMeasurement>" << endl;
95 cout <<
"Output file is " << outFile << endl;
96 cout <<
"Parameter file is " << parFile << endl;
97 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
"s" << endl << endl;
98 cout <<
"Macro finished successfully." << endl;
list of container factories
Bool_t open(const Text_t *fname, const Text_t *status="in")
void setChanged(Bool_t flag=kTRUE)
Bool_t setSecondInput(FairParIo *)
void Run(Int_t NStart=0, Int_t NStop=0)
void SetSink(FairSink *tempSink)
FairParSet * getContainer(const Text_t *)
void setInputVersion(Int_t v=-1, Int_t i=0)
FairRuntimeDb * GetRuntimeDb(void)
Bool_t setOutput(FairParIo *)
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 *)