#include <EDepSimUserStackingAction.hh>
EDepSim::UserStackingAction::UserStackingAction |
( |
| ) |
|
EDepSim::UserStackingAction::~UserStackingAction |
( |
| ) |
|
|
virtual |
G4ClassificationOfNewTrack EDepSim::UserStackingAction::ClassifyNewTrack |
( |
const G4Track * |
aTrack | ) |
|
|
virtual |
Check if a new track should be tracked.
Definition at line 19 of file EDepSimUserStackingAction.cc.
21 const G4ParticleDefinition* particle = aTrack->GetDefinition();
25 if (aTrack->GetParentID() <= 0)
return fUrgent;
31 if (particle->GetParticleName() ==
"gamma") {
32 if (aTrack->GetKineticEnergy() < 10.*
CLHEP::keV)
return fKill;
35 if (particle->GetParticleName() ==
"opticalphoton") {
39 if (particle->GetParticleName() ==
"thermalelectron") {
43 return G4UserStackingAction::ClassifyNewTrack(aTrack);
static constexpr double keV
The documentation for this class was generated from the following files: