18#ifndef BDSLINKSTACKINGACTION_H
19#define BDSLINKSTACKINGACTION_H
20#include "G4ClassificationOfNewTrack.hh"
22#include "G4UserStackingAction.hh"
40 const std::set<G4int>& pdgIDsToAllowIn = std::set<G4int>(),
41 G4bool protonsAndIonsOnlyIn =
true,
42 G4double minimumEKIn = 0);
49 static G4double kineticEnergyKilled;
55 std::set<G4int> pdgIDsToAllow;
57 G4bool protonsAndIonsOnly;
A class that holds global options and constants.
BDSIM's Geant4 stacking action.
G4bool stopSecondaries
Whether particles with parentID > 0 will be killed.
virtual G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track *aTrack)
G4double minimumEK
Minimum kinetic energy to generate a hit for.
BDSLinkStackingAction()=delete
Force use of supplied constructor.
G4bool killNeutrinos
Local copy of whether to kill neutrinos for tracking efficiency.
G4long maxTracksPerEvent
Maximum number of tracks before start killing.