![]() |
ATLAS Offline Software
|
User action to measure time spent in subdetectors. More...
#include <TestActionTimer.h>
Classes | |
| struct | Report |
| this holds all the data from individual threads that needs to be merged at EoR More... | |
Public Types | |
| enum | { eEMB , eEMEC , eFC1 , eFC23 , eFCO , eHEC , eCry , eLAr , eHCB , ePre , eMu , ePx , eSct , eITkPix , eITkStrip , eSev , eTrt , eOther , eElec , ePos , eGam , eNeut , eMax } |
Public Member Functions | |
| TestActionTimer () | |
| constructor | |
| TestActionTimer (const TestActionTimer &)=delete | |
| TestActionTimer & | operator= (const TestActionTimer &)=delete |
| const Report & | getReport () const |
| virtual void | BeginOfEventAction (const G4Event *) override |
| virtual void | EndOfEventAction (const G4Event *) override |
| virtual void | BeginOfRunAction (const G4Run *) override |
| virtual void | EndOfRunAction (const G4Run *) override |
| virtual void | UserSteppingAction (const G4Step *) override |
Private Member Functions | |
| double | TimerSum (G4Timer *timer) const |
| Gets the appropriate time from the timer for adding to the sum. | |
| void | PPanic () |
| Method to shut down all particle timers. | |
| void | VPanic () |
| Method to shut down all volume timers. | |
| int | ClassifyVolume (G4String &) const |
| Method to sort out which volume we are in. | |
Private Attributes | |
| Report | m_report |
| G4Timer * | m_runTimer |
| Timer for the entire run. | |
| G4Timer * | m_eventTimer |
| Timer for this event. | |
| double | m_eventTime |
| Double for storing this event. | |
| std::vector< G4Timer * > | m_timer |
| Vector of timers for each of the enum. | |
User action to measure time spent in subdetectors.
@author Zachary Marshall, Caltech, USA
@author Wolfgang Ehrenfeld, University of Hamburg, Germany
Definition at line 52 of file TestActionTimer.h.
| anonymous enum |
| Enumerator | |
|---|---|
| eEMB | |
| eEMEC | |
| eFC1 | |
| eFC23 | |
| eFCO | |
| eHEC | |
| eCry | |
| eLAr | |
| eHCB | |
| ePre | |
| eMu | |
| ePx | |
| eSct | |
| eITkPix | |
| eITkStrip | |
| eSev | |
| eTrt | |
| eOther | |
| eElec | |
| ePos | |
| eGam | |
| eNeut | |
| eMax | |
Definition at line 97 of file TestActionTimer.h.
| G4UA::TestActionTimer::TestActionTimer | ( | ) |
constructor
Definition at line 61 of file TestActionTimer.cxx.
|
delete |
|
overridevirtual |
Definition at line 121 of file TestActionTimer.cxx.
|
overridevirtual |
Definition at line 145 of file TestActionTimer.cxx.
|
private |
Method to sort out which volume we are in.
Definition at line 275 of file TestActionTimer.cxx.
|
overridevirtual |
Definition at line 136 of file TestActionTimer.cxx.
|
overridevirtual |
Definition at line 151 of file TestActionTimer.cxx.
|
inline |
Definition at line 85 of file TestActionTimer.h.
|
delete |
|
private |
Method to shut down all particle timers.
Definition at line 231 of file TestActionTimer.cxx.
|
private |
Gets the appropriate time from the timer for adding to the sum.
Definition at line 224 of file TestActionTimer.cxx.
|
overridevirtual |
Definition at line 159 of file TestActionTimer.cxx.
|
private |
Method to shut down all volume timers.
Definition at line 253 of file TestActionTimer.cxx.
|
private |
Double for storing this event.
Definition at line 107 of file TestActionTimer.h.
|
private |
Timer for this event.
Definition at line 106 of file TestActionTimer.h.
|
private |
Definition at line 103 of file TestActionTimer.h.
|
private |
Timer for the entire run.
Definition at line 105 of file TestActionTimer.h.
|
private |
Vector of timers for each of the enum.
Definition at line 109 of file TestActionTimer.h.