14 TString dir = getenv(
"VMCWORKDIR");
15 TString tutdir = dir +
"/simulation/Tutorial2";
17 TString inFile =
"./tutorial2_pions.mc_p2.000_t0_n10.root";
18 TString parFile =
"./tutorial2_pions.params_p2.000_t0_n10.root";
19 TString outFile =
"./digis.mc.root";
21 cout <<
"******************************" << endl;
22 cout <<
"InFile: " << inFile << endl;
23 cout <<
"ParamFile: " << parFile << endl;
24 cout <<
"OutFile: " << outFile << endl;
25 cout <<
"******************************" << endl;
35 io1->
open(parFile.Data(),
"UPDATE");
39 TString tutDetDigiFile = gSystem->Getenv(
"VMCWORKDIR");
40 tutDetDigiFile +=
"/simulation/Tutorial2/parameters/tutdet.digi.par";
41 parInput2->
open(tutDetDigiFile.Data(),
"in");
76 cout <<
"RndSeed used in simulation was " << BasePar->
GetRndSeed() << endl;
104 cout <<
"<DartMeasurement name=\"MaxMemory\" type=\"numeric/double\">";
106 cout <<
"</DartMeasurement>" << endl;
109 Double_t rtime = timer.RealTime();
110 Double_t ctime = timer.CpuTime();
112 Float_t cpuUsage = ctime / rtime;
113 cout <<
"<DartMeasurement name=\"CpuLoad\" type=\"numeric/double\">";
115 cout <<
"</DartMeasurement>" << endl;
117 cout << endl << endl;
118 cout <<
"Output file is " << outFile << endl;
119 cout <<
"Parameter file is " << parFile << endl;
120 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
"s" << endl << endl;
121 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 *)
virtual void printParams()
void setInputVersion(Int_t v=-1, Int_t i=0)
FairRuntimeDb * GetRuntimeDb(void)
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 *)