23 #include <G4Electron.hh>
25 #include <G4Positron.hh>
26 #include <G4TouchableHistory.hh>
27 #include <G4ParticleDefinition.hh>
49 : m_config(
config), m_runTimer(0), m_eventTimer(0), m_eventTime(0.)
110 G4ParticleDefinition* PDef = currentTree.
GetTrack()->GetDefinition();
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;