8 int runProp(std::string propName =
"rk")
10 if (propName !=
"geane" && propName !=
"rk") {
11 cout <<
"Choose either \"geane\" or \"rk\"." << endl;
15 TString dir = getenv(
"VMCWORKDIR");
17 TString tut_geomdir = dir +
"/common/geometry";
18 gSystem->Setenv(
"GEOMPATH", tut_geomdir.Data());
20 TString tut_configdir = dir +
"/common/gconfig";
21 gSystem->Setenv(
"CONFIG_DIR", tut_configdir.Data());
27 TString inFile =
"prop.mc.root";
30 TString parFile =
"prop.par.root";
33 TString outFile = Form(
"prop.%s.cal.root", propName.data());
45 parInput1->
open(parFile.Data());
55 if (propName ==
"geane") {
61 if (propName ==
"rk") {
69 if (propName ==
"geane") {
85 cout <<
"<DartMeasurement name=\"MaxMemory\" type=\"numeric/double\">";
87 cout <<
"</DartMeasurement>" << endl;
90 Double_t rtime = timer.RealTime();
91 Double_t ctime = timer.CpuTime();
93 Float_t cpuUsage = ctime / rtime;
94 cout <<
"<DartMeasurement name=\"CpuLoad\" type=\"numeric/double\">";
96 cout <<
"</DartMeasurement>" << endl;
99 cout <<
"Output file is " << outFile << endl;
100 cout <<
"Parameter file is " << parFile << endl;
101 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
"s" << endl << endl;
102 cout <<
"Macro finished successfully." << endl;
list of container factories
int runProp(std::string propName="rk")
void SetField(Double_t bX, Double_t bY, Double_t bZ)
void Run(Int_t NStart=0, Int_t NStop=0)
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)
virtual void AddTask(FairTask *t)
Bool_t open(const Text_t *fname, Option_t *option="READ", const Text_t *ftitle="", Int_t compress=1)
void SetPropagator(FairPropagator *prop)
virtual void SetSource(FairSource *tempSource)
Bool_t setFirstInput(FairParIo *)
void SetField(FairField *ffield)