GENIEGenerator
|
Holds the history of the GHEP event record as it being modified by the processing steps of an event generation thread. The event record history can be used to step back in the generation sequence if a processing step is to be re-run (this the GENIE event generation framework equivalent of an 'Undo') More...
#include <GHepRecordHistory.h>
Public Member Functions | |
GHepRecordHistory () | |
GHepRecordHistory (const GHepRecordHistory &history) | |
~GHepRecordHistory () | |
void | AddSnapshot (int step, GHepRecord *r) |
void | PurgeHistory (void) |
void | PurgeRecentHistory (int start_step) |
void | ReadFlags (void) |
void | Copy (const GHepRecordHistory &history) |
void | Print (ostream &stream) const |
Private Attributes | |
bool | fEnabledFull |
keep the full GHEP record history More... | |
bool | fEnabledBootstrapStep |
keep only the record that bootsrapped the generation cycle More... | |
Friends | |
ostream & | operator<< (ostream &stream, const GHepRecordHistory &history) |
Holds the history of the GHEP event record as it being modified by the processing steps of an event generation thread. The event record history can be used to step back in the generation sequence if a processing step is to be re-run (this the GENIE event generation framework equivalent of an 'Undo')
Definition at line 40 of file GHepRecordHistory.h.
GHepRecordHistory::GHepRecordHistory | ( | ) |
GHepRecordHistory::GHepRecordHistory | ( | const GHepRecordHistory & | history | ) |
Definition at line 38 of file GHepRecordHistory.cxx.
References Copy(), and ReadFlags().
GHepRecordHistory::~GHepRecordHistory | ( | ) |
void GHepRecordHistory::AddSnapshot | ( | int | step, |
GHepRecord * | r | ||
) |
Definition at line 50 of file GHepRecordHistory.cxx.
References fEnabledBootstrapStep, fEnabledFull, LOG, pNOTICE, and pWARN.
Referenced by Copy(), and genie::EventGenerator::ProcessEventRecord().
void GHepRecordHistory::Copy | ( | const GHepRecordHistory & | history | ) |
Definition at line 137 of file GHepRecordHistory.cxx.
References AddSnapshot(), and PurgeHistory().
Referenced by GHepRecordHistory().
void GHepRecordHistory::Print | ( | ostream & | stream | ) | const |
void GHepRecordHistory::PurgeHistory | ( | void | ) |
Definition at line 80 of file GHepRecordHistory.cxx.
References clear, LOG, pINFO, and pNOTICE.
Referenced by Copy(), genie::EventGenerator::ProcessEventRecord(), PurgeRecentHistory(), and ~GHepRecordHistory().
void GHepRecordHistory::PurgeRecentHistory | ( | int | start_step | ) |
Definition at line 101 of file GHepRecordHistory.cxx.
References LOG, pINFO, pNOTICE, PurgeHistory(), and pWARN.
Referenced by genie::EventGenerator::ProcessEventRecord().
void GHepRecordHistory::ReadFlags | ( | void | ) |
Definition at line 175 of file GHepRecordHistory.cxx.
References genie::utils::print::BoolAsYNString(), fEnabledBootstrapStep, fEnabledFull, LOG, and pINFO.
Referenced by GHepRecordHistory().
|
friend |
Definition at line 25 of file GHepRecordHistory.cxx.
|
private |
keep only the record that bootsrapped the generation cycle
Definition at line 61 of file GHepRecordHistory.h.
Referenced by AddSnapshot(), and ReadFlags().
|
private |
keep the full GHEP record history
Definition at line 60 of file GHepRecordHistory.h.
Referenced by AddSnapshot(), and ReadFlags().