22#ifndef TestActionTimer_H
23#define TestActionTimer_H
31#include "G4UserEventAction.hh"
32#include "G4UserRunAction.hh"
33#include "G4UserSteppingAction.hh"
53 public G4UserEventAction,
public G4UserRunAction,
public G4UserSteppingAction
80 for(
unsigned int i=0;i<
time.size();++i)
111 double TimerSum(G4Timer* timer)
const;
TestActionTimer & operator=(const TestActionTimer &)=delete
G4Timer * m_runTimer
Timer for the entire run.
const Report & getReport() const
int ClassifyVolume(G4String &) const
Method to sort out which volume we are in.
TestActionTimer()
constructor
double TimerSum(G4Timer *timer) const
Gets the appropriate time from the timer for adding to the sum.
G4Timer * m_eventTimer
Timer for this event.
std::vector< G4Timer * > m_timer
Vector of timers for each of the enum.
virtual void UserSteppingAction(const G4Step *) override
virtual void EndOfRunAction(const G4Run *) override
double m_eventTime
Double for storing this event.
virtual void BeginOfRunAction(const G4Run *) override
virtual void EndOfEventAction(const G4Event *) override
virtual void BeginOfEventAction(const G4Event *) override
void PPanic()
Method to shut down all particle timers.
void VPanic()
Method to shut down all volume timers.
TestActionTimer(const TestActionTimer &)=delete
this holds all the data from individual threads that needs to be merged at EoR
std::vector< double > time
Vector of timers for each of the enum.
void merge(const Report &rep)
std::vector< std::string > timeName
Vector of names for each of the timers.