14 const std::string& name,
15 const IInterface* parent)
26 return StatusCode::SUCCESS;
42 auto meanSigma = report.meanAndSigma();
43 ATH_MSG_INFO(
"=======================================================================================");
45 ATH_MSG_INFO(
"=======================================================================================");
46 ATH_MSG_INFO(
"Finalized timing results for " << report.nEvent <<
" events (not all events used)");
48 std::setprecision(4) << meanSigma.first <<
" +- " <<
49 std::setprecision(4) << meanSigma.second);
50 ATH_MSG_INFO(
"G4Run timer: " << std::setprecision(4) << report.runtime);
51 ATH_MSG_INFO(
"=======================================================================================");
52 return StatusCode::SUCCESS;
58 std::unique_ptr<G4SimTimer>
62 auto action = std::make_unique<G4SimTimer>();
A user action for monitoring G4 runtime at event and run level.
const Report & getReport() const
Retrieve my timing results.
Struct for passing around user actions.
std::vector< G4UserRunAction * > runActionsMaster
std::vector< G4UserEventAction * > eventActions
std::vector< G4UserRunAction * > runActions
Simple struct which holds timing results for an action instance.
void merge(const Report &rep)