5#ifndef G4USERACTIONS_G4UA_G4SIMTIMER_H
6#define G4USERACTIONS_G4UA_G4SIMTIMER_H
13#include "G4UserEventAction.hh"
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
G4Timer m_eventTimer
My private instance of an event timer.
const Report & getReport() const
Retrieve my timing results.
virtual void EndOfEventAction(const G4Event *event) override final
Finish timing this Geant4 event.
Report m_results
My timing results.
virtual void BeginOfEventAction(const G4Event *event) override final
Start timing this Geant4 event.
bool m_firstEvent
Used to skip the first event.
Simple struct which holds timing results for an action instance.
std::pair< double, double > meanAndSigma()
Calculate the mean and sample std dev.
double eventTime
Accumulated event time.
Report()
Initializes the variables.
unsigned int nEvent
Number of timed G4 events (we skip the first).
double eventTimeSquared
Accumulated squared event time.
void merge(const Report &rep)