1 void run_sim_sep(Int_t fileId, Int_t nEvents = 1000, TString mcEngine =
"TGeant3")
3 gRandom->SetSeed(1111 * fileId);
10 TString dir = getenv(
"VMCWORKDIR");
11 TString tutdir = dir +
"/";
13 TString tut_geomdir = tutdir +
"/common/geometry";
14 gSystem->Setenv(
"GEOMPATH", tut_geomdir.Data());
16 TString tut_configdir = tutdir +
"/common/gconfig";
17 gSystem->Setenv(
"CONFIG_DIR", tut_configdir.Data());
25 fRun->SetName(mcEngine);
27 TString outfile = Form(
"data/testrun_%s_f%d.root", mcEngine.Data(), fileId);
28 TString outparam = Form(
"data/testpar_%s_f%d.root", mcEngine.Data(), fileId);
97 output->
open(outparam);
113 cout << endl << endl;
119 cout <<
"<DartMeasurement name=\"MaxMemory\" type=\"numeric/double\">";
121 cout <<
"</DartMeasurement>" << endl;
124 Double_t rtime = timer.RealTime();
125 Double_t ctime = timer.CpuTime();
127 Float_t cpuUsage = ctime / rtime;
128 cout <<
"<DartMeasurement name=\"CpuLoad\" type=\"numeric/double\">";
130 cout <<
"</DartMeasurement>" << endl;
132 cout << endl << endl;
133 cout <<
"Output file is " << outfile << endl;
134 cout <<
"Parameter file is " << outparam << endl;
135 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
"s" << endl << endl;
136 cout <<
"Macro finished successfully." << endl;
virtual void SetGeometryFileName(TString fname, TString geoVer="0")
void CreateGeometryFile(const char *geofile)
list of container factories
void SetField(FairField *field)
void SetPRange(Double32_t pmin=0, Double32_t pmax=10)
void AddGenerator(FairGenerator *generator)
void SetField(Double_t bX, Double_t bY, Double_t bZ)
void SetGenerator(FairPrimaryGenerator *Gen)
void SetSink(FairSink *tempSink)
void SetFieldRegion(Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax)
FairRuntimeDb * GetRuntimeDb(void)
void SetThetaRange(Double32_t thetamin=0, Double32_t thetamax=90)
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)
void SetPhiRange(Double32_t phimin=0, Double32_t phimax=360)
void run_sim_sep(Int_t fileId, Int_t nEvents=1000, TString mcEngine="TGeant3")
void SetStoreTraj(Bool_t storeTraj=kTRUE)