115 LOG(info) << GetName() <<
": Output file is " <<
fOutput;
116 for (
auto traFile :
fTra) {
117 LOG(info) << GetName() <<
": Transport file is " << traFile;
118 if (!
CheckFile(traFile.Data()))
throw std::runtime_error(
"Transport file does not exist");
120 LOG(info) << GetName() <<
": Digitization file is " <<
fRaw;
121 LOG(info) << GetName() <<
": Parameter file is " <<
fPar;
122 LOG(info) << GetName() <<
": Reconstruction file is " <<
fReco;
123 LOG(info) << GetName() <<
": Geometry setup is " <<
fSetupTag;
131 fRun.SetGenerateRunInfo(
true);
140 if (!
CheckFile(
fRaw.Data()))
throw std::runtime_error(
"Digitizazion (raw) file does not exist");
141 if (!
CheckFile(
fPar.Data()))
throw std::runtime_error(
"Parameter file does not exist");
142 if (!
CheckFile(
fReco.Data()))
throw std::runtime_error(
"Reconstruction file does not exist");
145 FairFileSource* source =
new FairFileSource(
fReco);
146 for (
auto traFile :
fTra)
147 source->AddFriend(traFile);
148 source->AddFriend(
fRaw);
149 fRun.SetSource(source);
153 LOG(info) << GetName() <<
": Checking reco input...";
157 LOG(info) << GetName() <<
": Loading setup " <<
fSetupTag;
163 LOG(info) << GetName() <<
": Creating topology...";
167 LOG(info) << GetName() <<
": Set runtime DB...";
168 FairRuntimeDb* rtdb =
fRun.GetRuntimeDb();
169 FairParRootFileIo* parIo1 =
new FairParRootFileIo();
170 parIo1->open(
fPar.Data(),
"UPDATE");
171 rtdb->setFirstInput(parIo1);
174 LOG(info) << GetName() <<
": Initialise FairRun..." << std::endl;
176 rtdb->setOutput(parIo1);
180 double timeInit = timer.RealTime();
184 std::cout << std::endl << std::endl;
185 LOG(info) << GetName() <<
": Starting run" << std::endl;
190 double timeExec = timer.RealTime();
191 FairMonitor::GetMonitor()->Print();
192 std::cout << std::endl << std::endl;
193 LOG(info) << GetName() <<
": Execution successful";
194 for (
auto traFile :
fTra)
195 LOG(info) << GetName() <<
": Transport file was " << traFile;
196 LOG(info) << GetName() <<
": Digitization file was " <<
fRaw;
197 LOG(info) << GetName() <<
": Parameter file was " <<
fPar;
198 LOG(info) << GetName() <<
": Reconstruction file was " <<
fReco;
199 LOG(info) << GetName() <<
": Output file is " <<
fOutput;
200 LOG(info) << GetName() <<
": Execution time: Init " << timeInit <<
" s, Exec " << timeExec <<
"s";