11 TString dir = getenv(
"VMCWORKDIR");
12 TString tutdir = dir +
"/simulation//Tutorial1";
14 TString inFile = dir +
"/common/input/urqmd.ftn14";
16 TString Urqmd_Conversion_table = dir +
"/common/input/urqmd_pdg.dat";
18 TString tut_geomdir = dir +
"/common/geometry";
19 gSystem->Setenv(
"GEOMPATH", tut_geomdir.Data());
21 TString tut_configdir = dir +
"/common/gconfig";
22 gSystem->Setenv(
"CONFIG_DIR", tut_configdir.Data());
24 TString outDir =
"./";
27 TString outFile = Form(
"%s/tutorial1_urqmd_%s.mc.root", outDir.Data(), mcEngine.Data());
30 TString parFile = Form(
"%s/tutorial1_urqmd_%s.params.root", outDir.Data(), mcEngine.Data());
32 TString geoFile = outDir +
"geofile_urqmd_" + mcEngine +
"_full.root";
48 run->SetName(mcEngine);
85 parOut->
open(parFile.Data());
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;
virtual void SetGeometryFileName(TString fname, TString geoVer="0")
void CreateGeometryFile(const char *geofile)
list of container factories
void AddGenerator(FairGenerator *generator)
void run_tutorial1_urqmd(Int_t nEvents=2, TString mcEngine="TGeant3")
void SetGenerator(FairPrimaryGenerator *Gen)
void SetSink(FairSink *tempSink)
FairParRootFileIo * parOut
FairRuntimeDb * GetRuntimeDb(void)
void SetMaterials(const char *MatFileName)
Bool_t setOutput(FairParIo *)
Bool_t open(const Text_t *fname, Option_t *option="READ", const Text_t *ftitle="", Int_t compress=1)
virtual void Run(Int_t NEvents=0, Int_t NotUsed=0)
void AddModule(FairModule *Mod)