HepMC3 event record library
|
GenEvent I/O parsing for structured text files compressed with gzip.
Definition at line 34 of file ReaderGZ.h.
#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... | |
shared_ptr< GenRunInfo > | run_info () const |
Get the global GenRunInfo object. More... | |
Protected Member Functions | |
void | set_run_info (shared_ptr< GenRunInfo > run) |
Set the global GenRunInfo object. More... | |
Private Member Functions | |
std::shared_ptr< Reader > | deduce_reader (std::istream &stream_test, std::istream &stream) |
THis function will deduce the type of input file based on the name/URL and it's content and will return appropriate Reader. More... | |
Private Attributes | |
igzstream | m_gzstream |
Stream to read. More... | |
igzstream | m_gzstream_test |
Stream to test. More... | |
std::shared_ptr< Reader > | m_reader |
Actual reader. More... | |
shared_ptr< GenRunInfo > | m_run_info |
The global GenRunInfo object. More... | |
|
inline |
Construcor.
Definition at line 37 of file ReaderGZ.h.
References magic_t::bytes, ReaderGZ::deduce_reader(), ReaderGZ::m_gzstream, ReaderGZ::m_gzstream_test, ReaderGZ::m_reader, and magic_t::number.
|
inline |
Definition at line 57 of file ReaderGZ.h.
|
inlinevirtual |
|
inlineprivate |
THis function will deduce the type of input file based on the name/URL and it's content and will return appropriate Reader.
Definition at line 75 of file ReaderGZ.h.
|
inlinevirtual |
State.
Implements Reader.
Definition at line 63 of file ReaderGZ.h.
References ReaderGZ::m_gzstream.
|
inlinevirtual |
Read event.
Implements Reader.
Definition at line 59 of file ReaderGZ.h.
References ReaderGZ::m_reader.
|
inlineinherited |
Get the global GenRunInfo object.
Definition at line 39 of file Reader.h.
References Reader::m_run_info.
|
inlineprotectedinherited |
Set the global GenRunInfo object.
Definition at line 46 of file Reader.h.
References Reader::m_run_info.
|
private |
Stream to read.
Definition at line 71 of file ReaderGZ.h.
|
private |
Stream to test.
Definition at line 72 of file ReaderGZ.h.
|
private |
Actual reader.
Definition at line 73 of file ReaderGZ.h.
|
privateinherited |
The global GenRunInfo object.