|
MARLEY (Model of Argon Reaction Low Energy Yields) v2.0.0
A Monte Carlo event generator for tens-of-MeV neutrino interactions
|
Base class for all I/O readers. More...
#include <Reader.h>
Public Member Functions | |
| Reader () | |
| Constructor. | |
| Reader (const Reader &)=delete | |
| deleted copy constructor | |
| virtual | ~Reader () |
| Virtual destructor. | |
| virtual void | close ()=0 |
| Close file and/or stream. | |
| virtual bool | failed ()=0 |
| Get file and/or stream error state. | |
| virtual std::map< std::string, std::string > | get_options () const |
| Get options. | |
| Reader & | operator= (const Reader &)=delete |
| deleted copy assignment operator | |
| virtual bool | read_event (GenEvent &evt)=0 |
| Fill next event from input into evt. | |
| virtual std::shared_ptr< GenRunInfo > | run_info () const |
| Get the global GenRunInfo object. | |
| virtual void | set_options (const std::map< std::string, std::string > &options) |
| Set options. | |
| virtual void | set_run_info (std::shared_ptr< GenRunInfo > run) |
| Set the global GenRunInfo object. | |
| virtual bool | skip (const int) |
| skip or fast forward reading of some events | |
Protected Attributes | |
| std::map< std::string, std::string > | m_options |
| Options. | |
|
inline |
|
inlinevirtual |
|
pure virtual |
Close file and/or stream.
Implemented in HepMC3::ReaderAscii.
|
pure virtual |
|
inlinevirtual |
Get options.
Definition at line 53 of file Reader.h.
References m_options.
|
pure virtual |
Fill next event from input into evt.
Implemented in HepMC3::ReaderAscii.
|
inlinevirtual |
Get the global GenRunInfo object.
Definition at line 44 of file Reader.h.
Referenced by HepMC3::ReaderAscii::read_event().
|
inlinevirtual |
|
inlinevirtual |
Set the global GenRunInfo object.
Definition at line 56 of file Reader.h.
Referenced by HepMC3::ReaderAscii::ReaderAscii(), HepMC3::ReaderAscii::ReaderAscii(), HepMC3::ReaderAscii::ReaderAscii(), HepMC3::ReaderAscii::read_event(), and HepMC3::ReaderAscii::skip().
|
inlinevirtual |
skip or fast forward reading of some events
Reimplemented in HepMC3::ReaderAscii.
Definition at line 34 of file Reader.h.
References failed().
|
protected |