8 void run_rad(Int_t nEvents = 100, TString mcEngine =
"TGeant3")
11 TString dir = gSystem->Getenv(
"VMCWORKDIR");
12 TString tutdir = dir +
"/simulation/rutherford/macros";
14 TString tut_geomdir = dir +
"/common/geometry";
15 gSystem->Setenv(
"GEOMPATH", tut_geomdir.Data());
17 TString tut_configdir = dir +
"/common/gconfig";
18 gSystem->Setenv(
"CONFIG_DIR", tut_configdir.Data());
20 TString outDir =
"data";
21 TString outFile = outDir +
"/test1_";
22 outFile = outFile + mcEngine +
".mc.root";
24 TString geoFile = outDir +
"/geofile_rad_";
25 geoFile = geoFile + mcEngine +
"_full.root";
27 TString parFile = outDir +
"/params1_";
28 parFile = parFile + mcEngine +
".root";
53 run->SetName(mcEngine);
89 boxGen1->
SetXYZ(0., 0., -3.);
118 parOut->
open(parFile.Data());
131 cout << endl << endl;
137 cout <<
"<DartMeasurement name=\"MaxMemory\" type=\"numeric/double\">";
139 cout <<
"</DartMeasurement>" << endl;
142 Double_t rtime = timer.RealTime();
143 Double_t ctime = timer.CpuTime();
145 Float_t cpuUsage = ctime / rtime;
146 cout <<
"<DartMeasurement name=\"CpuLoad\" type=\"numeric/double\">";
148 cout <<
"</DartMeasurement>" << endl;
150 cout << endl << endl;
151 cout <<
"Output file is " << outFile << endl;
152 cout <<
"Parameter file is " << parFile << endl;
153 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
"s" << endl << endl;
154 cout <<
"Macro finished successfully." << endl;
virtual void SetGeometryFileName(TString fname, TString geoVer="0")
void CreateGeometryFile(const char *geofile)
list of container factories
void SetPRange(Double32_t pmin=0, Double32_t pmax=10)
void AddGenerator(FairGenerator *generator)
void run_rad(Int_t nEvents=100, TString mcEngine="TGeant3")
void SetGenerator(FairPrimaryGenerator *Gen)
void SetSink(FairSink *tempSink)
void SetLogFileName(const std::string &name)
void SetXYZ(Double32_t x=0, Double32_t y=0, Double32_t z=0)
FairParRootFileIo * parOut
void SetLogToScreen(bool enabled)
void SetLogToFile(bool enabled)
void SetStoreSecondaries(Bool_t storeSec=kTRUE)
static FairTrajFilter * Instance()
static FairLogger * GetLogger()
void SetStorePrimaries(Bool_t storePrim=kTRUE)
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)
void SetRadLenRegister(Bool_t value)
virtual void Run(Int_t NEvents=0, Int_t NotUsed=0)
void AddModule(FairModule *Mod)
void SetLogVerbosityLevel(const char *verbosity)
void SetPhiRange(Double32_t phimin=0, Double32_t phimax=360)
void SetStoreTraj(Bool_t storeTraj=kTRUE)