|
ATLAS Offline Software
|
Go to the documentation of this file.
24 #ifndef G4PROFILINGTOOLS_TestActionVPTimer_H
25 #define G4PROFILINGTOOLS_TestActionVPTimer_H
30 #include "G4VPhysicalVolume.hh"
39 #include "G4UserEventAction.hh"
40 #include "G4UserRunAction.hh"
41 #include "G4UserSteppingAction.hh"
52 public G4UserEventAction,
public G4UserRunAction,
public G4UserSteppingAction
99 typedef std::map<VolTree, TestActionVPTimer::volumeData>
VolMap;
100 typedef VolMap::const_iterator
VolIt;
124 for(
auto& element:
rep.time_index){
130 existing->second+=element.second;
168 if (
timer == 0)
return -999.;
170 return (
timer->GetUserElapsed() +
timer->GetSystemElapsed());
175 #endif // #define G4PROFILINGTOOLS_TestActionVPTimer_H
G4Timer * m_eventTimer
Timer for this event.
G4Timer * v_timer
Timer activated for each volume.
virtual void EndOfRunAction(const G4Run *) override
double tPhoton
Time spent on photons in volume.
double tBaryon
Time spent on other baryons in volume.
virtual void BeginOfRunAction(const G4Run *) override
int dMUON
Used for setting depths in jobOptions file.
double tElectron
Time spent on e objects in volume.
double tLepton
Time spent on other leptons in volume.
def timer(name, disabled=False)
virtual void UserSteppingAction(const G4Step *) override
double m_eventTime
Double for storing this event time.
int nev
number of processed events
double tMeson
Time spent on all mesons in volume.
TestActionVPTimer(const Config &config)
G4Timer * m_runTimer
Timer for the entire run.
virtual void EndOfEventAction(const G4Event *) override
volumeData operator+=(const volumeData &acc)
< Structure of data for given volume
double tNeutron
Time spent on neutrons in volume.
std::vector< VolID > VolTree
VolTree v_history
Vector of the current volume history, used to assign times to each element.
double tOther
Time spent on all other particles in volume (mostly nuclei)
double tPion
Time spent on pions in volume.
double tTotal
Overloaded += operator.
double TimerSum(G4Timer *timer) const
Gets the time from the timer for summation.
VolMap::const_iterator VolIt
void merge(const Report &rep)
const Report & getReport() const
std::string dDetail
Path to set detailed depth in jobOptions file.
TestActionVPTimer(const TestActionVPTimer &)=delete
std::map< VolTree, TestActionVPTimer::volumeData > VolMap
virtual void BeginOfEventAction(const G4Event *) override
TestActionVPTimer & operator=(const TestActionVPTimer &)=delete
double runTime
Double for storing this run time.