#include <TestActionVPTimer.h>
Definition at line 51 of file TestActionVPTimer.h.
◆ VolIt
◆ VolMap
◆ TestActionVPTimer() [1/2]
G4UA::TestActionVPTimer::TestActionVPTimer |
( |
const Config & |
config | ) |
|
◆ TestActionVPTimer() [2/2]
◆ BeginOfEventAction()
void G4UA::TestActionVPTimer::BeginOfEventAction |
( |
const G4Event * |
| ) |
|
|
overridevirtual |
◆ BeginOfRunAction()
void G4UA::TestActionVPTimer::BeginOfRunAction |
( |
const G4Run * |
| ) |
|
|
overridevirtual |
◆ EndOfEventAction()
void G4UA::TestActionVPTimer::EndOfEventAction |
( |
const G4Event * |
| ) |
|
|
overridevirtual |
◆ EndOfRunAction()
void G4UA::TestActionVPTimer::EndOfRunAction |
( |
const G4Run * |
| ) |
|
|
overridevirtual |
◆ getReport()
const Report& G4UA::TestActionVPTimer::getReport |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ TimerSum()
double G4UA::TestActionVPTimer::TimerSum |
( |
G4Timer * |
timer | ) |
const |
|
inlineprivate |
Gets the time from the timer for summation.
Stops a timer and return the elapsed time.
Definition at line 166 of file TestActionVPTimer.h.
168 if (
timer == 0)
return -999.;
170 return (
timer->GetUserElapsed() +
timer->GetSystemElapsed());
◆ UserSteppingAction()
void G4UA::TestActionVPTimer::UserSteppingAction |
( |
const G4Step * |
aStep | ) |
|
|
overridevirtual |
Definition at line 88 of file TestActionVPTimer.cxx.
110 G4ParticleDefinition* PDef = currentTree.GetTrack()->GetDefinition();
112 VolTree VHistory = currentTree.Extract();
115 if (PDef->GetParticleName() ==
"neutron") {
m_report.
time_index[VHistory].tNeutron += vtime; }
116 else if (PDef->GetParticleSubType() ==
"e") {
m_report.
time_index[VHistory].tElectron += vtime; }
117 else if (PDef->GetParticleSubType() ==
"pi") {
m_report.
time_index[VHistory].tPion += vtime; }
118 else if (PDef->GetParticleType() ==
"gamma") {
m_report.
time_index[VHistory].tPhoton += vtime; }
119 else if (PDef->GetParticleType() ==
"baryon") {
m_report.
time_index[VHistory].tBaryon += vtime; }
120 else if (PDef->GetParticleType() ==
"lepton") {
m_report.
time_index[VHistory].tLepton += vtime; }
121 else if (PDef->GetParticleType() ==
"meson") {
m_report.
time_index[VHistory].tMeson += vtime; }
124 if ( !currentTree.Ascend() )
break;
◆ m_config
Config G4UA::TestActionVPTimer::m_config |
|
private |
◆ m_eventTime
double G4UA::TestActionVPTimer::m_eventTime |
|
private |
◆ m_eventTimer
G4Timer* G4UA::TestActionVPTimer::m_eventTimer |
|
private |
◆ m_report
Report G4UA::TestActionVPTimer::m_report |
|
private |
◆ m_runTimer
G4Timer* G4UA::TestActionVPTimer::m_runTimer |
|
private |
◆ v_history
VolTree G4UA::TestActionVPTimer::v_history |
|
private |
Vector of the current volume history, used to assign times to each element.
Definition at line 159 of file TestActionVPTimer.h.
◆ v_timer
G4Timer* G4UA::TestActionVPTimer::v_timer |
|
private |
The documentation for this class was generated from the following files: