1 void run_sim(Int_t nEvents = 100, TString mcEngine =
"TGeant4", Bool_t isMT =
false)
5 TString outFile =
"test.root";
8 TString parFile =
"params.root";
17 run->SetName(mcEngine);
61 boxGen->
SetXYZ(0., 0., 0.);
79 parOut->
open(parFile.Data());
94 Double_t rtime = timer.RealTime();
95 Double_t ctime = timer.CpuTime();
97 cout <<
"Macro finished succesfully." << endl;
98 cout <<
"Output file is " << outFile << endl;
99 cout <<
"Parameter file is " << parFile << endl;
100 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
"s" << endl << 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 SetGenerator(FairPrimaryGenerator *Gen)
void SetSink(FairSink *tempSink)
void SetField(Double_t bX, Double_t bY, Double_t bZ)
void SetIsMT(Bool_t isMT)
void SetXYZ(Double32_t x=0, Double32_t y=0, Double32_t z=0)
FairParRootFileIo * parOut
void run_sim(Int_t nEvents=100, TString mcEngine="TGeant3")
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 SetFieldRegion(Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax)
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 SetStoreTraj(Bool_t storeTraj=kTRUE)