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=default
 

Detailed Description

Definition at line 8 of file KillSecondariesStackingAction.h.

Constructor & Destructor Documentation

◆ KillSecondariesStackingAction()

KillSecondariesStackingAction::KillSecondariesStackingAction ( )
inline

Definition at line 10 of file KillSecondariesStackingAction.h.

10 {}

◆ ~KillSecondariesStackingAction()

KillSecondariesStackingAction::~KillSecondariesStackingAction ( )
overridedefault

Member Function Documentation

◆ ClassifyNewTrack()

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

Definition at line 7 of file KillSecondariesStackingAction.cc.

References MCTruthUtil::primary(), MCTruthUtil::secondary(), CurrentG4Track::track(), and HLT_2024v13_cff::track.

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