8 void run_reco(TString mcEngine =
"TGeant3", Bool_t AlignDone =
true)
26 TString InDir =
"./data/";
28 TString inFile =
"testrun_";
29 inFile = InDir + inFile + Align + mcEngine +
".root";
32 TString outFile =
"testreco_";
33 outFile = InDir + outFile + Align + mcEngine +
".root";
36 TString parFile =
"testparams_";
37 parFile = InDir + parFile + Align + mcEngine +
".root";
40 TString milleFile =
"testmille_";
41 milleFile = InDir + milleFile + Align + mcEngine;
43 TList* parFileList =
new TList();
45 TString workDir = gSystem->Getenv(
"VMCWORKDIR");
46 TString paramDir = workDir +
"/simulation/Tutorial4/parameters/";
47 TString paramFile = paramDir +
"example.par";
49 TObjString tutDetDigiFile;
50 tutDetDigiFile.SetString(paramFile);
51 parFileList->Add(&tutDetDigiFile);
65 parIo2->
open(parFileList,
"in");
66 parInput1->
open(parFile.Data());
67 parIo2->
open(parFileList,
"in");
101 cout <<
"<DartMeasurement name=\"MaxMemory\" type=\"numeric/double\">";
103 cout <<
"</DartMeasurement>" << endl;
106 Double_t rtime = timer.RealTime();
107 Double_t ctime = timer.CpuTime();
109 Float_t cpuUsage = ctime / rtime;
110 cout <<
"<DartMeasurement name=\"CpuLoad\" type=\"numeric/double\">";
112 cout <<
"</DartMeasurement>" << endl;
114 cout << endl << endl;
115 cout <<
"Output file is " << outFile << endl;
116 cout <<
"Parameter file is " << parFile << endl;
117 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
"s" << endl << endl;
118 cout <<
"Macro finished successfully." << endl;
list of container factories
Bool_t open(const Text_t *fname, const Text_t *status="in")
void run_reco(TString mcEngine="TGeant3")
void SetLogScreenLevel(const char *severity)
void DoMisalignment(Bool_t val)
Bool_t setSecondInput(FairParIo *)
void Run(Int_t NStart=0, Int_t NStop=0)
void SetSink(FairSink *tempSink)
void SetVersion(Int_t val)
void SetVersion(Int_t val)
void SetLogToScreen(bool enabled)
static FairLogger * GetLogger()
FairRuntimeDb * GetRuntimeDb(void)
Bool_t setOutput(FairParIo *)
virtual void AddTask(FairTask *t)
Bool_t open(const Text_t *fname, Option_t *option="READ", const Text_t *ftitle="", Int_t compress=1)
virtual void SetSource(FairSource *tempSource)
Bool_t setFirstInput(FairParIo *)
void SetFileName(TString val)