#include <KillSecondariesStackingAction.h>
Public Member Functions | |
virtual G4ClassificationOfNewTrack | ClassifyNewTrack (const G4Track *) |
KillSecondariesStackingAction () | |
~KillSecondariesStackingAction () |
Definition at line 8 of file KillSecondariesStackingAction.h.
KillSecondariesStackingAction::KillSecondariesStackingAction | ( | ) | [inline] |
Definition at line 11 of file KillSecondariesStackingAction.h.
{}
KillSecondariesStackingAction::~KillSecondariesStackingAction | ( | ) | [inline] |
Definition at line 12 of file KillSecondariesStackingAction.h.
{}
G4ClassificationOfNewTrack KillSecondariesStackingAction::ClassifyNewTrack | ( | const G4Track * | aTrack | ) | [virtual] |
Definition at line 7 of file KillSecondariesStackingAction.cc.
References NewTrackAction::primary(), NewTrackAction::secondary(), and ExpressReco_HICollisions_FallBack::track.
{ NewTrackAction newTA; if (aTrack->GetCreatorProcess()==0 || aTrack->GetParentID()==0) { newTA.primary(aTrack); return fUrgent; } else { const G4Track * mother = CurrentG4Track::track(); newTA.secondary(aTrack, *mother, 0); return fKill; } }