CMS 3D CMS Logo

List of all members | Public Member Functions
KillSecondariesStackingAction Class Reference

#include <KillSecondariesStackingAction.h>

Inheritance diagram for KillSecondariesStackingAction:

Public Member Functions

G4ClassificationOfNewTrack ClassifyNewTrack (const G4Track *) override
 
 KillSecondariesStackingAction ()
 
 ~KillSecondariesStackingAction () override
 

Detailed Description

Definition at line 8 of file KillSecondariesStackingAction.h.

Constructor & Destructor Documentation

KillSecondariesStackingAction::KillSecondariesStackingAction ( )
inline

Definition at line 10 of file KillSecondariesStackingAction.h.

10 {}
KillSecondariesStackingAction::~KillSecondariesStackingAction ( )
inlineoverride

Definition at line 11 of file KillSecondariesStackingAction.h.

References ClassifyNewTrack().

11 {}

Member Function Documentation

G4ClassificationOfNewTrack KillSecondariesStackingAction::ClassifyNewTrack ( const G4Track *  aTrack)
override

Definition at line 7 of file KillSecondariesStackingAction.cc.

References NewTrackAction::primary(), NewTrackAction::secondary(), and CurrentG4Track::track().

Referenced by ~KillSecondariesStackingAction().

7  {
8  NewTrackAction newTA;
9  if (aTrack->GetCreatorProcess() == nullptr || aTrack->GetParentID() == 0) {
10  newTA.primary(aTrack);
11  return fUrgent;
12  } else {
13  const G4Track *mother = CurrentG4Track::track();
14  newTA.secondary(aTrack, *mother, 0);
15  return fKill;
16  }
17 }
void primary(const G4Track *aSecondary) const
void secondary(const G4Track *aSecondary, const G4Track &mother, int) const
static const G4Track * track()