|
MARLEY (Model of Argon Reaction Low Energy Yields) v2.0.0
A Monte Carlo event generator for tens-of-MeV neutrino interactions
|
GenEvent I/O parsing for structured text files. More...
#include <ReaderAscii.h>
Public Member Functions | |
| ReaderAscii (const std::string &filename) | |
| Constructor. | |
| ReaderAscii (std::istream &) | |
| The ctor to read from stream. | |
| ReaderAscii (std::shared_ptr< std::istream > s_stream) | |
| The ctor to read from stream. Useful for temp. streams. | |
| ~ReaderAscii () | |
| Destructor. | |
| void | close () override |
| Close file stream. | |
| bool | failed () override |
| Return status of the stream. | |
| bool | read_event (GenEvent &evt) override |
| Load event from file. | |
| bool | skip (const int) override |
| skip events | |
Public Member Functions inherited from HepMC3::Reader | |
| Reader () | |
| Constructor. | |
| Reader (const Reader &)=delete | |
| deleted copy constructor | |
| virtual | ~Reader () |
| Virtual destructor. | |
| virtual std::map< std::string, std::string > | get_options () const |
| Get options. | |
| Reader & | operator= (const Reader &)=delete |
| deleted copy assignment operator | |
| 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. | |
Additional Inherited Members | |
Protected Attributes inherited from HepMC3::Reader | |
| std::map< std::string, std::string > | m_options |
| Options. | |
GenEvent I/O parsing for structured text files.
Definition at line 31 of file ReaderAscii.h.
| HepMC3::ReaderAscii::ReaderAscii | ( | const std::string & | filename | ) |
Constructor.
Definition at line 2142 of file marley_hepmc3.cc.
References HepMC3::Reader::set_run_info().
| HepMC3::ReaderAscii::ReaderAscii | ( | std::istream & | stream | ) |
The ctor to read from stream.
Definition at line 2151 of file marley_hepmc3.cc.
References HepMC3::Reader::set_run_info().
| HepMC3::ReaderAscii::ReaderAscii | ( | std::shared_ptr< std::istream > | s_stream | ) |
The ctor to read from stream. Useful for temp. streams.
Definition at line 2161 of file marley_hepmc3.cc.
References HepMC3::Reader::set_run_info().
| HepMC3::ReaderAscii::~ReaderAscii | ( | ) |
|
overridevirtual |
Close file stream.
Implements HepMC3::Reader.
Definition at line 2716 of file marley_hepmc3.cc.
Referenced by ~ReaderAscii().
|
overridevirtual |
Return status of the stream.
Implements HepMC3::Reader.
Definition at line 2714 of file marley_hepmc3.cc.
Referenced by read_event(), and skip().
|
overridevirtual |
Load event from file.
| [out] | evt | Event to be filled |
Insert the implicit vertices in the gaps of explicit vertices: Find the gaps looping over the explicit vertices
Found a gap in ids, insert an implicit vertex into a list of gaps.
Implements HepMC3::Reader.
Definition at line 2208 of file marley_hepmc3.cc.
References HepMC3::GenEvent::clear(), failed(), HepMC3::GenEvent::particles(), HepMC3::GenEvent::read_data(), HepMC3::Reader::run_info(), HepMC3::GenEvent::set_run_info(), HepMC3::Reader::set_run_info(), and HepMC3::GenEvent::vertices().
Referenced by marley::EventFileReader::deduce_file_format().
|
overridevirtual |
skip events
Reimplemented from HepMC3::Reader.
Definition at line 2172 of file marley_hepmc3.cc.
References failed(), and HepMC3::Reader::set_run_info().