HerdSoftware
0.1.1
|
Action which finds the point of disappearance points for each primary particle. More...
#include <TrdTravMatAction.h>
Public Member Functions | |
TrdTravMatAction () | |
Constructor. More... | |
void | PreUserTrackingAction (const G4Track *track) |
Initialization of primary track. More... | |
void | UserSteppingAction (const G4Step *step) |
Accumulates the traversed material in TRD by primary particles. More... | |
void | BeginOfEventAction (const G4Event *event) |
Clears the vector of traversed material in TRD by primary particles. 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... | |
Private Attributes | |
std::vector< TrdTravMat > | _travMat |
std::string | _outBase |
std::string | _outTreeName |
TFile * | _outRootFile |
TTree * | _outTree |
G4GenericMessenger | _messenger |
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.
TrdTravMatAction::TrdTravMatAction | ( | ) |
Constructor.
void TrdTravMatAction::BeginOfEventAction | ( | const G4Event * | event | ) |
Clears the vector of traversed material in TRD by primary particles.
event | The current event. |
void TrdTravMatAction::BeginOfRunAction | ( | const G4Run * | run | ) |
Opens the output file for the current run and prepares the output tree.
run | The current run. |
void TrdTravMatAction::EndOfEventAction | ( | const G4Event * | event | ) |
Fills the output tree.
event | The current event. |
void TrdTravMatAction::EndOfRunAction | ( | const G4Run * | run | ) |
Closes the output file for the current run.
run | The current run. |
void TrdTravMatAction::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 an element for it to the vector of traversed material.
track | The current track. |
void TrdTravMatAction::UserSteppingAction | ( | const G4Step * | step | ) |
Accumulates the traversed material in TRD by primary particles.
step | The current step |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |