HepMC3 event record library
|
GenEvent I/O parsing for compressed files.
Definition at line 27 of file ReaderGZ.h.
#include <ReaderGZ.h>
Public Member Functions | |
ReaderGZ (const std::string &filename) | |
Constructor. | |
ReaderGZ (std::istream &is) | |
The ctor to read from stdin. | |
ReaderGZ (std::shared_ptr< std::istream > s_stream) | |
~ReaderGZ () | |
Destructor. | |
bool | skip (const int i) override |
skip events | |
bool | read_event (GenEvent &evt) override |
Load event from file. | |
bool | failed () override |
Return status of the stream. | |
void | close () override |
Close file stream. | |
std::shared_ptr< GenRunInfo > | run_info () const |
Get the global GenRunInfo object. | |
void | set_options (const std::map< std::string, std::string > &options) |
Set options. | |
std::map< std::string, std::string > | get_options () const |
Set options. | |
Protected Member Functions | |
void | set_run_info (std::shared_ptr< GenRunInfo > run) |
Set the global GenRunInfo object. | |
Protected Attributes | |
std::map< std::string, std::string > | m_options |
options | |
Private Attributes | |
std::shared_ptr< std::istream > | m_zstr |
Close file stream. | |
std::shared_ptr< Reader > | m_reader |
Actual reader. | |
std::shared_ptr< GenRunInfo > | m_run_info |
The global GenRunInfo object. | |
|
inline |
Constructor.
Definition at line 31 of file ReaderGZ.h.
References ReaderGZ< T >::m_reader, and ReaderGZ< T >::m_zstr.
|
inline |
The ctor to read from stdin.
Definition at line 36 of file ReaderGZ.h.
References ReaderGZ< T >::m_reader, and ReaderGZ< T >::m_zstr.
|
inline |
Definition at line 41 of file ReaderGZ.h.
|
inline |
|
inlineoverridevirtual |
Close file stream.
Implements Reader.
Definition at line 63 of file ReaderGZ.h.
References ReaderGZ< T >::m_reader, and ReaderGZ< T >::m_zstr.
|
inlineoverridevirtual |
Return status of the stream.
Implements Reader.
Definition at line 59 of file ReaderGZ.h.
References ReaderGZ< T >::m_reader.
|
inlineinherited |
|
inlineoverridevirtual |
Load event from file.
[out] | evt | Event to be filled |
Implements Reader.
Definition at line 55 of file ReaderGZ.h.
References ReaderGZ< T >::m_reader.
|
inlineinherited |
Get the global GenRunInfo object.
Definition at line 44 of file Reader.h.
References Reader::m_run_info.
|
inlineinherited |
|
inlineprotectedinherited |
Set the global GenRunInfo object.
Definition at line 64 of file Reader.h.
References Reader::m_run_info.
|
inlineoverridevirtual |
skip events
Reimplemented from Reader.
Definition at line 50 of file ReaderGZ.h.
References ReaderGZ< T >::m_reader.
|
protectedinherited |
|
private |
Actual reader.
Definition at line 71 of file ReaderGZ.h.
|
privateinherited |
The global GenRunInfo object.
|
private |