BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
Action to decide whether or not to store trajectory information. More...
#include <BDSLinkTrackingAction.hh>
Public Member Functions | |
BDSLinkTrackingAction (G4bool batchMode, BDSLinkEventAction *eventActionIn, G4int verboseSteppingEventStartIn, G4int verboseSteppingEventStopIn, G4bool verboseSteppingPrimaryOnlyIn, G4int verboseSteppingLevelIn) | |
virtual void | PreUserTrackingAction (const G4Track *track) |
Used to decide whether or not to store trajectories. | |
virtual void | PostUserTrackingAction (const G4Track *track) |
Detect whether track is a primary and if so whether it ended in a collimator. | |
Private Member Functions | |
BDSLinkTrackingAction ()=delete | |
No default constructor required. | |
Private Attributes | |
const G4bool | interactive |
BDSLinkEventAction * | eventAction |
Cache of event action to communicate whether a primary stopped in a collimator or not. | |
G4int | verboseSteppingEventStart |
G4int | verboseSteppingEventStop |
G4bool | verboseSteppingPrimaryOnly |
G4int | verboseSteppingLevel |
BDS::TrajectoryOptions | trajectoryStorageOptions |
Action to decide whether or not to store trajectory information.
Definition at line 33 of file BDSLinkTrackingAction.hh.
BDSLinkTrackingAction::BDSLinkTrackingAction | ( | G4bool | batchMode, |
BDSLinkEventAction * | eventActionIn, | ||
G4int | verboseSteppingEventStartIn, | ||
G4int | verboseSteppingEventStopIn, | ||
G4bool | verboseSteppingPrimaryOnlyIn, | ||
G4int | verboseSteppingLevelIn | ||
) |
Definition at line 37 of file BDSLinkTrackingAction.cc.
|
inlinevirtual |
Definition at line 43 of file BDSLinkTrackingAction.hh.
|
virtual |
Detect whether track is a primary and if so whether it ended in a collimator.
Definition at line 91 of file BDSLinkTrackingAction.cc.
References eventAction, BDSLinkEventAction::SetPrimaryAbsorbedInCollimator(), and BDSAcceleratorModel::VolumeSet().
|
virtual |
Used to decide whether or not to store trajectories.
Definition at line 53 of file BDSLinkTrackingAction.cc.
References eventAction, interactive, and BDS::VerboseThisEvent().
|
private |
Cache of event action to communicate whether a primary stopped in a collimator or not.
Definition at line 60 of file BDSLinkTrackingAction.hh.
Referenced by PostUserTrackingAction(), and PreUserTrackingAction().
|
private |
Whether we're using the visualiser - in which case always store trajectories for visualisation.
Definition at line 57 of file BDSLinkTrackingAction.hh.
Referenced by PreUserTrackingAction().
|
private |
Definition at line 66 of file BDSLinkTrackingAction.hh.
|
private |
Definition at line 62 of file BDSLinkTrackingAction.hh.
|
private |
Definition at line 63 of file BDSLinkTrackingAction.hh.
|
private |
Definition at line 65 of file BDSLinkTrackingAction.hh.
|
private |
Definition at line 64 of file BDSLinkTrackingAction.hh.