|
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? | |
| void | addHepMC3GenEvent (ldmx::HepMC3GenEvent event) |
| std::vector< ldmx::HepMC3GenEvent > | getHepMC3GenEvents () |
Private Attributes | |
| int | brem_candidate_count_ {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) | |
| std::vector< ldmx::HepMC3GenEvent > | hepmc3_events_ |
| a collection of HepMC3 event records. | |
Encapsulates user defined information associated with a Geant4 event.
Definition at line 14 of file UserEventInformation.h.
|
inline |
Add energy to the electronuclear running total.
| [in] | delta | energy to add to the total |
Definition at line 86 of file UserEventInformation.h.
References total_electronuclear_energy_.
|
inline |
Definition at line 124 of file UserEventInformation.h.
|
inline |
Add energy to the photonuclear running total.
| [in] | delta | energy to add to the total |
Definition at line 79 of file UserEventInformation.h.
References total_photonuclear_energy_.
|
inline |
Definition at line 72 of file UserEventInformation.h.
References brem_candidate_count_.
|
inline |
Decrease the number of brem candidates in an event.
Definition at line 29 of file UserEventInformation.h.
References brem_candidate_count_.
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 46 of file UserEventInformation.h.
References db_material_z_.
|
inline |
Get the total energy that went EN.
Definition at line 98 of file UserEventInformation.h.
References total_electronuclear_energy_.
|
inline |
Definition at line 127 of file UserEventInformation.h.
|
inline |
Get the total energy that went PN.
Definition at line 92 of file UserEventInformation.h.
References total_photonuclear_energy_.
|
inline |
Definition at line 58 of file UserEventInformation.h.
References weight_.
|
inline |
Increment the number of brem candidates in an event.
Definition at line 26 of file UserEventInformation.h.
References brem_candidate_count_.
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 66 of file UserEventInformation.h.
References weight_.
|
inline |
Tell us if last step was EN.
| [in] | yes | true if it was |
Definition at line 116 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 104 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 brem_candidate_count_, 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 36 of file UserEventInformation.h.
References db_material_z_.
|
inline |
Set the event weight.
| [in] | weight | the event weight |
Definition at line 53 of file UserEventInformation.h.
References weight_.
|
inline |
Was the last step a EN interaction?
Definition at line 122 of file UserEventInformation.h.
References last_step_en_.
|
inline |
Was the last step a PN interaction?
Definition at line 110 of file UserEventInformation.h.
References last_step_pn_.
|
private |
Total number of brem candidates in the event.
Definition at line 133 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 178 of file UserEventInformation.h.
Referenced by getDarkBremMaterialZ(), and setDarkBremMaterialZ().
|
private |
a collection of HepMC3 event records.
Definition at line 183 of file UserEventInformation.h.
|
private |
Was the most recent step a electron-nuclear interaction?
Definition at line 170 of file UserEventInformation.h.
Referenced by lastStepWasEN(), and wasLastStepEN().
|
private |
Was the most recent step a photon-nuclear interaction?
Definition at line 156 of file UserEventInformation.h.
Referenced by lastStepWasPN(), and wasLastStepPN().
|
private |
The total energy that went into the electron-nuclear interaction.
Definition at line 165 of file UserEventInformation.h.
Referenced by addENEnergy(), getENEnergy(), and Print().
|
private |
The total energy that went into the photon-nuclear interaction.
Definition at line 151 of file UserEventInformation.h.
Referenced by addPNEnergy(), getPNEnergy(), and Print().
|
private |
The event weight.
Definition at line 142 of file UserEventInformation.h.
Referenced by getWeight(), incWeight(), Print(), and setWeight().