GGS(GenericGEANT4Simulation)Software
2.7.0
|
An action to kill primary tracks outside acceptance. More...
#include <GGSAcceptanceCheckAction.h>
Public Member Functions | |
GGSAcceptanceCheckAction () | |
Constructor. | |
~GGSAcceptanceCheckAction () | |
Destructor. | |
G4ClassificationOfNewTrack | ClassifyNewTrack (const G4Track *track) |
Override of the ClassifyNewTrack method. More... | |
![]() | |
GGSUserAction () | |
Constructor. More... | |
virtual | ~GGSUserAction () |
Destructor. | |
G4ClassificationOfNewTrack | ClassifyNewTrack (const G4Track *) |
Override of the ClassifyNewTrack method. More... | |
An action to kill primary tracks outside acceptance.
This action checks primary tracks before they are stacked. If they lie outside the acceptance defined in the IsInsideAcceptance method of the user-defined geometry then the track is classified as fKill and consequently it is not added to the stack. This means that the track will not be simulated and eventually the event will be killed by GGSRunManager if there is no other primary inside acceptance to be simulated. Re-simulation of killed events can be set with the datacard command /GGS/acceptanceCheck/reSimulateKilled.
Definition at line 27 of file GGSAcceptanceCheckAction.h.
G4ClassificationOfNewTrack GGSAcceptanceCheckAction::ClassifyNewTrack | ( | const G4Track * | track | ) |
Override of the ClassifyNewTrack method.
track | The new track |
Definition at line 36 of file GGSAcceptanceCheckAction.cpp.