9 #include <G4ParticleDefinition.hh> 11 #include <G4SystemOfUnits.hh> 12 #include <G4PhysicalConstants.hh> 18 G4ClassificationOfNewTrack
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
virtual G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track *)
Check if a new track should be tracked.
virtual ~UserStackingAction()