|
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 | |
| bool | fEnabledBootstrapStep |
| keep only the record that bootsrapped the generation cycle | |
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 | ( | ) |
Definition at line 32 of file GHepRecordHistory.cxx.
References ReadFlags().
Referenced by Copy(), GHepRecordHistory(), and operator<<.
| GHepRecordHistory::GHepRecordHistory | ( | const GHepRecordHistory & | history | ) |
Definition at line 38 of file GHepRecordHistory.cxx.
References Copy(), GHepRecordHistory(), and ReadFlags().
| GHepRecordHistory::~GHepRecordHistory | ( | ) |
Definition at line 45 of file GHepRecordHistory.cxx.
References PurgeHistory().
| 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().
| void GHepRecordHistory::Copy | ( | const GHepRecordHistory & | history | ) |
Definition at line 137 of file GHepRecordHistory.cxx.
References AddSnapshot(), GHepRecordHistory(), and PurgeHistory().
Referenced by GHepRecordHistory().
| void GHepRecordHistory::Print | ( | ostream & | stream | ) | const |
Definition at line 152 of file GHepRecordHistory.cxx.
Referenced by operator<<.
| void GHepRecordHistory::PurgeHistory | ( | void | ) |
Definition at line 80 of file GHepRecordHistory.cxx.
References clear, LOG, pINFO, and pNOTICE.
Referenced by Copy(), PurgeRecentHistory(), and ~GHepRecordHistory().
| void GHepRecordHistory::PurgeRecentHistory | ( | int | start_step | ) |
Definition at line 101 of file GHepRecordHistory.cxx.
References LOG, pINFO, pNOTICE, PurgeHistory(), and pWARN.
| 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(), and GHepRecordHistory().
|
friend |
Definition at line 25 of file GHepRecordHistory.cxx.
References GHepRecordHistory(), and Print().
|
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().