GGS(GenericGEANT4Simulation)Software
2.7.0
|
Action which finds the point of disappearance points for each primary particle. More...
#include <GGSPrimaryDisAction.h>
Public Member Functions | |
GGSPrimaryDisAction () | |
Constructor. | |
void | PreUserTrackingAction (const G4Track *track) |
Initialization of primary track. More... | |
void | PostUserTrackingAction (const G4Track *track) |
Check the track end . More... | |
void | BeginOfEventAction (const G4Event *event) |
Clears the interaction arrays. More... | |
void | EndOfEventAction (const G4Event *event) |
Fills the output tree. More... | |
void | BeginOfRunAction (const G4Run *run) |
Opens the output file for the current run and prepares the output tree. More... | |
void | EndOfRunAction (const G4Run *run) |
Closes the output file for the current run. More... | |
![]() | |
GGSUserAction () | |
Constructor. More... | |
virtual | ~GGSUserAction () |
Destructor. | |
G4ClassificationOfNewTrack | ClassifyNewTrack (const G4Track *) |
Override of the ClassifyNewTrack method. More... | |
Action which finds the point of disappearance points for each primary particle.
This class follows the propagation of primary particles until they disappear from the simulation, either because of an interaction or because they exit from the world volume.
Definition at line 39 of file GGSPrimaryDisAction.h.
void GGSPrimaryDisAction::BeginOfEventAction | ( | const G4Event * | event | ) |
Clears the interaction arrays.
event | The current event. |
Definition at line 97 of file GGSPrimaryDisAction.cpp.
void GGSPrimaryDisAction::BeginOfRunAction | ( | const G4Run * | run | ) |
Opens the output file for the current run and prepares the output tree.
run | The current run. |
Definition at line 108 of file GGSPrimaryDisAction.cpp.
void GGSPrimaryDisAction::EndOfEventAction | ( | const G4Event * | event | ) |
Fills the output tree.
event | The current event. |
Definition at line 99 of file GGSPrimaryDisAction.cpp.
void GGSPrimaryDisAction::EndOfRunAction | ( | const G4Run * | run | ) |
Closes the output file for the current run.
run | The current run. |
Definition at line 121 of file GGSPrimaryDisAction.cpp.
void GGSPrimaryDisAction::PostUserTrackingAction | ( | const G4Track * | track | ) |
Check the track end .
For each followed particle, this routine will store information about the termination of the track.
track | The current track. |
Definition at line 44 of file GGSPrimaryDisAction.cpp.
void GGSPrimaryDisAction::PreUserTrackingAction | ( | const G4Track * | track | ) |
Initialization of primary track.
This routine checks if the current track belongs to a primary particle, and in affirmative case it adds it to the followed particles vector
track | The current track. |
Definition at line 35 of file GGSPrimaryDisAction.cpp.