G4DarkBreM
v2.1.0
Geant4 Dark Bremmstrahlung from MadGraph
|
event action used to store the OutgoingKinematics if a dark brem occurred More...
Public Member Functions | |
PersistDarkBremProducts (const std::string &out_file) | |
Open the output CSV and write the header row. | |
~PersistDarkBremProducts () | |
Print out the number of events with a dark brem compared to the requested number. | |
void | EndOfEventAction (const G4Event *event) final override |
Check the OutgoingKinematics and write out the four-momenta if the dark brem ocurred. | |
Private Attributes | |
std::ofstream | out_ |
the output file we are writing to | |
long unsigned int | events_started_ {0} |
number of events that we simulated | |
long unsigned int | events_completed_ {0} |
number of events with a dark brem in it | |
event action used to store the OutgoingKinematics if a dark brem occurred
This uses OutgoingKinematics::stream to write out the CSV where data will be stored.
We don't do any caching, just trusting the std::ofstream to handle the caching, only flushing when necessary and when destructed.
We also print out the number of events that successfully had a dark brem compared to the number of events requested. This is helpful for the user so that they know (1) there is not a problem and (2) potential tuning of the bias factor.