HepMC3 event record library
|
GenEvent I/O parsing for structured text files compressed with gzip. More...
#include <ReaderGZ.h>
Public Member Functions | |
ReaderGZ (const std::string &filename) | |
Construcor. More... | |
bool | read_event (GenEvent &evt) |
Read event. More... | |
bool | failed () |
State. More... | |
void | close () |
Close. More... | |
virtual bool | skip (const int) |
skip or fast forward reading of some events More... | |
std::shared_ptr< GenRunInfo > | run_info () const |
Get the global GenRunInfo object. More... | |
void | set_options (const std::map< std::string, std::string > &options) |
Set options. More... | |
std::map< std::string, std::string > | get_options () const |
Set options. More... | |
Protected Member Functions | |
void | set_run_info (std::shared_ptr< GenRunInfo > run) |
Set the global GenRunInfo object. More... | |
Protected Attributes | |
std::map< std::string, std::string > | m_options |
options More... | |
Private Attributes | |
igzstream | m_gzstream |
Stream to read. More... | |
std::shared_ptr< Reader > | m_reader |
Actual reader. More... | |
GenEvent I/O parsing for structured text files compressed with gzip.
Definition at line 34 of file ReaderGZ.h.
|
inline |
Construcor.
Definition at line 37 of file ReaderGZ.h.
References magic_t::bytes, HepMC3::deduce_reader(), ReaderGZ::m_gzstream, ReaderGZ::m_reader, and magic_t::number.
|
inlinevirtual |
|
inlinevirtual |
State.
Implements Reader.
Definition at line 64 of file ReaderGZ.h.
References ReaderGZ::m_gzstream.
|
inlineinherited |
|
inlinevirtual |
Read event.
Implements Reader.
Definition at line 60 of file ReaderGZ.h.
References ReaderGZ::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.
|
inlinevirtualinherited |
skip or fast forward reading of some events
Reimplemented in ReaderHEPEVT, ReaderRootTree, ReaderAsciiHepMC2, ReaderLHEF, ReaderRoot, and ReaderAscii.
Definition at line 34 of file Reader.h.
References Reader::failed().
|
private |
Stream to read.
Definition at line 70 of file ReaderGZ.h.
|
protectedinherited |
|
private |
Actual reader.
Definition at line 73 of file ReaderGZ.h.