BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
BDSStackingAction Class Reference

BDSIM's Geant4 stacking action. More...

#include <BDSStackingAction.hh>

Inheritance diagram for BDSStackingAction:
Inheritance graph
Collaboration diagram for BDSStackingAction:
Collaboration graph

Public Member Functions

 BDSStackingAction (const BDSGlobalConstants *globals)
 
virtual G4ClassificationOfNewTrack ClassifyNewTrack (const G4Track *aTrack)
 
virtual void NewStage ()
 We don't do anything here. More...
 
virtual void PrepareNewEvent ()
 We don't do anything here. More...
 

Static Public Attributes

static G4double energyKilled = 0
 

Private Member Functions

 BDSStackingAction ()=delete
 Force use of supplied constructor.
 

Private Attributes

G4bool killNeutrinos
 Local copy of whether to kill neutrinos for tracking efficiency. More...
 
G4bool stopSecondaries
 Whether particles with parentID > 0 will be killed. More...
 
G4long maxTracksPerEvent
 Maximum number of tracks before start killing. More...
 
G4double minimumEK
 
std::set< G4int > particlesToExcludeFromCuts
 

Detailed Description

BDSIM's Geant4 stacking action.

Definition at line 35 of file BDSStackingAction.hh.

Constructor & Destructor Documentation

◆ BDSStackingAction()

BDSStackingAction::BDSStackingAction ( const BDSGlobalConstants globals)

Definition at line 44 of file BDSStackingAction.cc.

◆ ~BDSStackingAction()

BDSStackingAction::~BDSStackingAction ( )
virtual

Definition at line 55 of file BDSStackingAction.cc.

Member Function Documentation

◆ ClassifyNewTrack()

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

Decide whether to kill tracks if they're neutrinos or we're killing all secondaries. Note the event won't conserve energy with the stopSecondaries on.

Definition at line 58 of file BDSStackingAction.cc.

References killNeutrinos, maxTracksPerEvent, and stopSecondaries.

◆ NewStage()

void BDSStackingAction::NewStage ( )
virtual

We don't do anything here.

Definition at line 152 of file BDSStackingAction.cc.

◆ PrepareNewEvent()

void BDSStackingAction::PrepareNewEvent ( )
virtual

We don't do anything here.

Definition at line 160 of file BDSStackingAction.cc.

Field Documentation

◆ energyKilled

G4double BDSStackingAction::energyKilled = 0
static

Definition at line 48 of file BDSStackingAction.hh.

◆ killNeutrinos

G4bool BDSStackingAction::killNeutrinos
private

Local copy of whether to kill neutrinos for tracking efficiency.

Definition at line 54 of file BDSStackingAction.hh.

Referenced by ClassifyNewTrack().

◆ maxTracksPerEvent

G4long BDSStackingAction::maxTracksPerEvent
private

Maximum number of tracks before start killing.

Definition at line 56 of file BDSStackingAction.hh.

Referenced by ClassifyNewTrack().

◆ minimumEK

G4double BDSStackingAction::minimumEK
private

Definition at line 57 of file BDSStackingAction.hh.

◆ particlesToExcludeFromCuts

std::set<G4int> BDSStackingAction::particlesToExcludeFromCuts
private

Definition at line 58 of file BDSStackingAction.hh.

◆ stopSecondaries

G4bool BDSStackingAction::stopSecondaries
private

Whether particles with parentID > 0 will be killed.

Definition at line 55 of file BDSStackingAction.hh.

Referenced by ClassifyNewTrack().


The documentation for this class was generated from the following files: