HepMC3 event record library
|
GenEvent I/O parsing and serialization using external plugin.
Definition at line 23 of file ReaderPlugin.h.
#include <ReaderPlugin.h>
Public Member Functions | |
ReaderPlugin (std::istream &stream, const std::string &libname, const std::string &newreader) | |
Constructor to read from stream. | |
ReaderPlugin (const std::string &filename, const std::string &libname, const std::string &newreader) | |
Constructor to read from file. | |
bool | read_event (GenEvent &ev) override |
Reading event. | |
void | close () override |
Close. | |
bool | failed () override |
State. | |
~ReaderPlugin () override | |
Destructor. | |
virtual bool | skip (const int) |
skip or fast forward reading of some events | |
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 | |
Reader * | m_reader |
The actual reader. | |
void * | dll_handle |
library handler | |
std::shared_ptr< GenRunInfo > | m_run_info |
The global GenRunInfo object. | |
ReaderPlugin | ( | std::istream & | stream, |
const std::string & | libname, | ||
const std::string & | newreader | ||
) |
Constructor to read from stream.
Definition at line 28 of file ReaderPlugin.cc.
References ReaderPlugin::dll_handle, and ReaderPlugin::m_reader.
ReaderPlugin | ( | const std::string & | filename, |
const std::string & | libname, | ||
const std::string & | newreader | ||
) |
Constructor to read from file.
Constructor.
Definition at line 50 of file ReaderPlugin.cc.
References ReaderPlugin::dll_handle, and ReaderPlugin::m_reader.
|
override |
Destructor.
Definition at line 71 of file ReaderPlugin.cc.
References Reader::close(), ReaderPlugin::dll_handle, and ReaderPlugin::m_reader.
|
inlineoverridevirtual |
Close.
Implements Reader.
Definition at line 33 of file ReaderPlugin.h.
References Reader::close(), and ReaderPlugin::m_reader.
|
inlineoverridevirtual |
State.
Implements Reader.
Definition at line 35 of file ReaderPlugin.h.
References Reader::failed(), and ReaderPlugin::m_reader.
|
inlineinherited |
|
inlineoverridevirtual |
Reading event.
Implements Reader.
Definition at line 31 of file ReaderPlugin.h.
References ReaderPlugin::m_reader, and Reader::read_event().
|
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 ReaderGZ< T >, ReaderuprootTree, ReaderAscii, ReaderAsciiHepMC2, ReaderHEPEVT, ReaderLHEF, ReaderMT< T, m_number_of_threads >, ReaderRoot, and ReaderRootTree.
Definition at line 34 of file Reader.h.
References Reader::failed().
|
private |
library handler
Definition at line 40 of file ReaderPlugin.h.
|
protectedinherited |
|
private |
The actual reader.
Definition at line 39 of file ReaderPlugin.h.
|
privateinherited |
The global GenRunInfo object.