9 TString dir = getenv(
"VMCWORKDIR");
10 TString tutdir = dir +
"/simulation/Tutorial2";
12 TString BGinFile =
"./tutorial2_pions.mc_p2.000_t0_n130.bg.root";
13 TString SG1inFile =
"./tutorial2_pions.mc_p2.000_t0_n10.sg1.root";
14 TString SG2inFile =
"./tutorial2_pions.mc_p2.000_t0_n20.sg2.root";
19 TString parFile =
"./tutorial2_pions.params_p2.000_t0_n10.root";
21 TString outFile =
"./digis.mix.mc.root";
23 cout <<
"******************************" << endl;
24 cout <<
"Background File: " << BGinFile << endl;
25 cout <<
"First Signal File: " << SG1inFile << endl;
26 cout <<
"Second signal File: " << SG2inFile << endl;
27 cout <<
"ParamFile: " << parFile << endl;
28 cout <<
"OutFile: " << outFile << endl;
29 cout <<
"******************************" << endl;
69 io1->
open(parFile.Data(),
"UPDATE");
72 TString tutDetDigiFile = gSystem->Getenv(
"VMCWORKDIR");
73 tutDetDigiFile +=
"/simulation/Tutorial2/parameters/tutdet.digi.par";
74 parInput2->
open(tutDetDigiFile.Data(),
"in");
104 cout << endl << endl;
110 cout <<
"<DartMeasurement name=\"MaxMemory\" type=\"numeric/double\">";
112 cout <<
"</DartMeasurement>" << endl;
115 Double_t rtime = timer.RealTime();
116 Double_t ctime = timer.CpuTime();
118 Float_t cpuUsage = ctime / rtime;
119 cout <<
"<DartMeasurement name=\"CpuLoad\" type=\"numeric/double\">";
121 cout <<
"</DartMeasurement>" << endl;
123 cout << endl << endl;
124 cout <<
"Output file is " << outFile << endl;
125 cout <<
"Parameter file is " << parFile << endl;
126 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
"s" << endl << endl;
127 cout <<
"Macro finished successfully." << endl;
list of container factories
Bool_t open(const Text_t *fname, const Text_t *status="in")
void UseRunIdfromSG(UInt_t identifier=1)
void setChanged(Bool_t flag=kTRUE)
Bool_t setSecondInput(FairParIo *)
void create_digis_mixed()
void Run(Int_t NStart=0, Int_t NStop=0)
void SetSink(FairSink *tempSink)
FairParSet * getContainer(const Text_t *)
void AddSignalFile(TString name, UInt_t identifier)
void setInputVersion(Int_t v=-1, Int_t i=0)
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)
void BGWindowWidthTime(Double_t background, UInt_t Signalid)
Bool_t setFirstInput(FairParIo *)
void SetEventMeanTime(Double_t mean)