CMS 3D CMS Logo

Public Member Functions

KillSecondariesStackingAction Class Reference

#include <KillSecondariesStackingAction.h>

List of all members.

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.

{}
KillSecondariesStackingAction::~KillSecondariesStackingAction ( ) [inline]

Definition at line 12 of file KillSecondariesStackingAction.h.

{}      

Member Function Documentation

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;
  }

}