LDMX Software
|
Encapsulates user defined information associated with a Geant4 event. More...
#include <UserEventInformation.h>
Public Member Functions | |
UserEventInformation ()=default | |
Constructor. | |
virtual | ~UserEventInformation ()=default |
Destructor. | |
void | Print () const override |
Print the information associated with the track. | |
void | incBremCandidateCount () |
Increment the number of brem candidates in an event. | |
void | decBremCandidateCount () |
Decrease the number of brem candidates in an event. | |
void | setDarkBremMaterialZ (double z) |
Set the Z of the element in which the dark brem ocurred. | |
double | getDarkBremMaterialZ () const |
Get the Z of the element in which the dark brem ocurred. | |
void | setWeight (double weight) |
Set the event weight. | |
double | getWeight () |
void | incWeight (double step_weight) |
Increment the event weight by the input weight for an individual step. | |
int | bremCandidateCount () |
void | addPNEnergy (double delta) |
Add energy to the photonuclear running total. | |
void | addENEnergy (double delta) |
Add energy to the electronuclear running total. | |
double | getPNEnergy () const |
Get the total energy that went PN. | |
double | getENEnergy () const |
Get the total energy that went EN. | |
void | lastStepWasPN (bool yes) |
Tell us if last step was PN. | |
bool | wasLastStepPN () const |
Was the last step a PN interaction? | |
void | lastStepWasEN (bool yes) |
Tell us if last step was EN. | |
bool | wasLastStepEN () const |
Was the last step a EN interaction? | |
Private Attributes | |
int | bremCandidateCount_ {0} |
Total number of brem candidates in the event. | |
double | weight_ {1.} |
The event weight. | |
double | total_photonuclear_energy_ {0.} |
The total energy that went into the photon-nuclear interaction. | |
bool | last_step_pn_ {false} |
Was the most recent step a photon-nuclear interaction? | |
double | total_electronuclear_energy_ {0.} |
The total energy that went into the electron-nuclear interaction. | |
bool | last_step_en_ {false} |
Was the most recent step a electron-nuclear interaction? | |
double | db_material_z_ {-1.} |
atomic Z of the element in which dark brem occurred (-1 if didn't happen) | |
Encapsulates user defined information associated with a Geant4 event.
Definition at line 10 of file UserEventInformation.h.
|
inline |
Add energy to the electronuclear running total.
[in] | delta | energy to add to the total |
Definition at line 82 of file UserEventInformation.h.
References total_electronuclear_energy_.
|
inline |
Add energy to the photonuclear running total.
[in] | delta | energy to add to the total |
Definition at line 75 of file UserEventInformation.h.
References total_photonuclear_energy_.
|
inline |
Definition at line 68 of file UserEventInformation.h.
References bremCandidateCount_.
|
inline |
Decrease the number of brem candidates in an event.
Definition at line 25 of file UserEventInformation.h.
References bremCandidateCount_.
Referenced by biasing::TargetProcessFilter::stepping().
|
inline |
Get the Z of the element in which the dark brem ocurred.
[in] | z | atomic Z of element in which the dark brem ocurred |
Definition at line 42 of file UserEventInformation.h.
References db_material_z_.
|
inline |
Get the total energy that went EN.
Definition at line 94 of file UserEventInformation.h.
References total_electronuclear_energy_.
|
inline |
Get the total energy that went PN.
Definition at line 88 of file UserEventInformation.h.
References total_photonuclear_energy_.
|
inline |
Definition at line 54 of file UserEventInformation.h.
References weight_.
|
inline |
Increment the number of brem candidates in an event.
Definition at line 22 of file UserEventInformation.h.
References bremCandidateCount_.
Referenced by biasing::DeepEcalProcessFilter::stepping(), and biasing::TargetBremFilter::stepping().
|
inline |
Increment the event weight by the input weight for an individual step.
[in] | step_weight | weight of an individual step |
Definition at line 62 of file UserEventInformation.h.
References weight_.
Referenced by simcore::g4user::SteppingAction::UserSteppingAction().
|
inline |
Tell us if last step was EN.
[in] | yes | true if it was |
Definition at line 112 of file UserEventInformation.h.
References last_step_en_.
|
inline |
Tell us if last step was PN.
[in] | yes | true if it was |
Definition at line 100 of file UserEventInformation.h.
References last_step_pn_.
|
override |
Print the information associated with the track.
Definition at line 10 of file UserEventInformation.cxx.
References bremCandidateCount_, total_electronuclear_energy_, total_photonuclear_energy_, and weight_.
|
inline |
Set the Z of the element in which the dark brem ocurred.
[in] | z | atomic Z of element in which the dark brem ocurred |
Definition at line 32 of file UserEventInformation.h.
References db_material_z_.
|
inline |
Set the event weight.
[in] | weight | the event weight |
Definition at line 49 of file UserEventInformation.h.
References weight_.
|
inline |
Was the last step a EN interaction?
Definition at line 118 of file UserEventInformation.h.
References last_step_en_.
|
inline |
Was the last step a PN interaction?
Definition at line 106 of file UserEventInformation.h.
References last_step_pn_.
|
private |
Total number of brem candidates in the event.
Definition at line 122 of file UserEventInformation.h.
Referenced by bremCandidateCount(), decBremCandidateCount(), incBremCandidateCount(), and Print().
|
private |
atomic Z of the element in which dark brem occurred (-1 if didn't happen)
The default is -1. and so will provide unphysical results if the dark brem did not occur within the event in question.
Definition at line 167 of file UserEventInformation.h.
Referenced by getDarkBremMaterialZ(), and setDarkBremMaterialZ().
|
private |
Was the most recent step a electron-nuclear interaction?
Definition at line 159 of file UserEventInformation.h.
Referenced by lastStepWasEN(), and wasLastStepEN().
|
private |
Was the most recent step a photon-nuclear interaction?
Definition at line 145 of file UserEventInformation.h.
Referenced by lastStepWasPN(), and wasLastStepPN().
|
private |
The total energy that went into the electron-nuclear interaction.
Definition at line 154 of file UserEventInformation.h.
Referenced by addENEnergy(), getENEnergy(), and Print().
|
private |
The total energy that went into the photon-nuclear interaction.
Definition at line 140 of file UserEventInformation.h.
Referenced by addPNEnergy(), getPNEnergy(), and Print().
|
private |
The event weight.
Definition at line 131 of file UserEventInformation.h.
Referenced by getWeight(), incWeight(), Print(), and setWeight().