146 LOG(info) << GetName() <<
": Output file is " <<
fOutput;
147 LOG(info) << GetName() <<
": Digitization file is " <<
fRaw;
148 LOG(info) << GetName() <<
": Parameter file is " <<
fPar;
149 LOG(info) << GetName() <<
": Geometry setup is " <<
fSetupTag;
150 LOG(info) <<
"Configuration: \n" <<
fConfig.ToString();
157 fRun.SetGenerateRunInfo(
true);
160 FairLogger::GetLogger()->SetLogScreenLevel(
fConfig.f_glb_logLevel.data());
161 FairLogger::GetLogger()->SetLogVerbosityLevel(
fConfig.f_glb_logVerbose.data());
162 FairLogger::GetLogger()->SetColoredLog(
fConfig.f_glb_logColor.data());
165 if (!
CheckFile(
fRaw.Data()))
throw std::runtime_error(
"Digitization (raw) file does not exist");
166 if (!
CheckFile(
fPar.Data()))
throw std::runtime_error(
"Parameter file does not exist");
170 FairFileSource* source =
new FairFileSource(
fRaw);
171 fRun.SetSource(source);
175 LOG(info) << GetName() <<
": Checking digi input...";
179 LOG(info) << GetName() <<
": Loading setup " <<
fSetupTag;
185 LOG(info) << GetName() <<
": Creating topology...";
189 LOG(info) << GetName() <<
": Set runtime DB...";
190 FairRuntimeDb* rtdb =
fRun.GetRuntimeDb();
191 FairParRootFileIo* parIo1 =
new FairParRootFileIo();
192 parIo1->open(
fPar.Data(),
"UPDATE");
193 rtdb->setFirstInput(parIo1);
196 LOG(info) << GetName() <<
": Initialise FairRun..." << std::endl;
198 rtdb->setOutput(parIo1);
202 double timeInit = timer.RealTime();
208 std::cout << std::endl << std::endl;
209 LOG(info) << GetName() <<
": Starting run" << std::endl;
214 double timeExec = timer.RealTime();
215 FairMonitor::GetMonitor()->Print();
216 std::cout << std::endl << std::endl;
217 LOG(info) << GetName() <<
": Execution successful";
218 LOG(info) << GetName() <<
": Digitization file was " <<
fRaw;
219 LOG(info) << GetName() <<
": Parameter file was " <<
fPar;
220 LOG(info) << GetName() <<
": Output file is " <<
fOutput;
221 LOG(info) << GetName() <<
": Execution time: Init " << timeInit <<
" s, Exec " << timeExec <<
"s";