test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
KillSecondariesStackingAction Class Reference

#include <KillSecondariesStackingAction.h>

Inheritance diagram for KillSecondariesStackingAction:

Public Member Functions

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

Detailed Description

Definition at line 8 of file KillSecondariesStackingAction.h.

Constructor & Destructor Documentation

KillSecondariesStackingAction::KillSecondariesStackingAction ( )
inline

Definition at line 11 of file KillSecondariesStackingAction.h.

11 {}
KillSecondariesStackingAction::~KillSecondariesStackingAction ( )
inline

Definition at line 12 of file KillSecondariesStackingAction.h.

12 {}

Member Function Documentation

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

Definition at line 7 of file KillSecondariesStackingAction.cc.

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

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