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

BDSIM's Geant4 stacking action. More...

#include <BDSLinkStackingAction.hh>

Inheritance diagram for BDSLinkStackingAction:
Inheritance graph
Collaboration diagram for BDSLinkStackingAction:
Collaboration graph

Public Member Functions

 BDSLinkStackingAction ()=delete
 Force use of supplied constructor.
 
 BDSLinkStackingAction (const BDSGlobalConstants *globals, const std::set< G4int > &pdgIDsToAllowIn=std::set< G4int >(), G4bool protonsAndIonsOnlyIn=true, G4double minimumEKIn=0)
 
virtual G4ClassificationOfNewTrack ClassifyNewTrack (const G4Track *aTrack)
 

Static Public Attributes

static G4double kineticEnergyKilled = 0
 

Private Attributes

G4bool killNeutrinos
 Local copy of whether to kill neutrinos for tracking efficiency.
 
G4bool stopSecondaries
 Whether particles with parentID > 0 will be killed.
 
G4long maxTracksPerEvent
 Maximum number of tracks before start killing.
 
std::set< G4int > pdgIDsToAllow
 
G4bool emptyPDGIDs
 
G4bool protonsAndIonsOnly
 
G4double minimumEK
 Minimum kinetic energy to generate a hit for.
 

Detailed Description

BDSIM's Geant4 stacking action.

Definition at line 34 of file BDSLinkStackingAction.hh.

Constructor & Destructor Documentation

◆ BDSLinkStackingAction()

BDSLinkStackingAction::BDSLinkStackingAction ( const BDSGlobalConstants globals,
const std::set< G4int > &  pdgIDsToAllowIn = std::set<G4int>(),
G4bool  protonsAndIonsOnlyIn = true,
G4double  minimumEKIn = 0 
)
explicit

Definition at line 34 of file BDSLinkStackingAction.cc.

◆ ~BDSLinkStackingAction()

BDSLinkStackingAction::~BDSLinkStackingAction ( )
virtual

Definition at line 50 of file BDSLinkStackingAction.cc.

Member Function Documentation

◆ ClassifyNewTrack()

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

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

Definition at line 53 of file BDSLinkStackingAction.cc.

References BDS::IsIon(), killNeutrinos, maxTracksPerEvent, minimumEK, and stopSecondaries.

Here is the call graph for this function:

Field Documentation

◆ emptyPDGIDs

G4bool BDSLinkStackingAction::emptyPDGIDs
private

Definition at line 57 of file BDSLinkStackingAction.hh.

◆ killNeutrinos

G4bool BDSLinkStackingAction::killNeutrinos
private

Local copy of whether to kill neutrinos for tracking efficiency.

Definition at line 53 of file BDSLinkStackingAction.hh.

Referenced by ClassifyNewTrack().

◆ kineticEnergyKilled

G4double BDSLinkStackingAction::kineticEnergyKilled = 0
static

Definition at line 50 of file BDSLinkStackingAction.hh.

◆ maxTracksPerEvent

G4long BDSLinkStackingAction::maxTracksPerEvent
private

Maximum number of tracks before start killing.

Definition at line 55 of file BDSLinkStackingAction.hh.

Referenced by ClassifyNewTrack().

◆ minimumEK

G4double BDSLinkStackingAction::minimumEK
private

Minimum kinetic energy to generate a hit for.

Definition at line 59 of file BDSLinkStackingAction.hh.

Referenced by ClassifyNewTrack().

◆ pdgIDsToAllow

std::set<G4int> BDSLinkStackingAction::pdgIDsToAllow
private

Definition at line 56 of file BDSLinkStackingAction.hh.

◆ protonsAndIonsOnly

G4bool BDSLinkStackingAction::protonsAndIonsOnly
private

Definition at line 58 of file BDSLinkStackingAction.hh.

◆ stopSecondaries

G4bool BDSLinkStackingAction::stopSecondaries
private

Whether particles with parentID > 0 will be killed.

Definition at line 54 of file BDSLinkStackingAction.hh.

Referenced by ClassifyNewTrack().


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