HepMC3 event record library
|
GenEvent I/O parsing and serialization for LHEF files. More...
#include <ReaderLHEF.h>
Public Member Functions | |
ReaderLHEF (std::istream &) | |
The ctor to read from stream. More... | |
ReaderLHEF (const std::string &filename) | |
Constructor. More... | |
bool | skip (const int) override |
skip events More... | |
bool | read_event (GenEvent &ev) override |
Reading event. More... | |
void | close () override |
Close. More... | |
bool | failed () override |
State. More... | |
~ReaderLHEF () | |
Destructor. 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 Member Functions | |
void | init () |
Init helper. More... | |
Private Attributes | |
std::shared_ptr< LHEF::Reader > | m_reader |
The actual reader. More... | |
std::shared_ptr< HEPRUPAttribute > | m_hepr |
Holder of attributes. More... | |
int | m_neve |
Event counter. More... | |
bool | m_failed |
State of reader. More... | |
std::deque< GenEvent > | m_storage |
storage used for subevents. More... | |
GenEvent I/O parsing and serialization for LHEF files.
Definition at line 35 of file ReaderLHEF.h.
ReaderLHEF | ( | std::istream & | stream | ) |
The ctor to read from stream.
Definition at line 19 of file ReaderLHEF.cc.
References ReaderLHEF::init(), and ReaderLHEF::m_reader.
ReaderLHEF | ( | const std::string & | filename | ) |
Constructor.
Definition at line 14 of file ReaderLHEF.cc.
References ReaderLHEF::init(), and ReaderLHEF::m_reader.
~ReaderLHEF | ( | ) |
|
overridevirtual |
|
overridevirtual |
State.
Return status of the stream.
Implements Reader.
Definition at line 180 of file ReaderLHEF.cc.
References ReaderLHEF::m_failed.
|
inlineinherited |
|
private |
Init helper.
Definition at line 37 of file ReaderLHEF.cc.
References GenRunInfo::ToolInfo::description, XMLTag::findXMLTags(), ReaderLHEF::m_failed, ReaderLHEF::m_hepr, ReaderLHEF::m_neve, ReaderLHEF::m_reader, GenRunInfo::ToolInfo::name, Reader::run_info(), Reader::set_run_info(), and GenRunInfo::ToolInfo::version.
|
overridevirtual |
Reading event.
Implements Reader.
Definition at line 97 of file ReaderLHEF.cc.
References GenEvent::add_attribute(), GenEvent::add_vertex(), XMLTag::findXMLTags(), ReaderLHEF::m_failed, ReaderLHEF::m_neve, ReaderLHEF::m_reader, ReaderLHEF::m_storage, GenEvent::set_beam_particles(), GenEvent::set_event_number(), and GenEvent::weights().
|
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.
|
overridevirtual |
skip events
Reimplemented from Reader.
Definition at line 25 of file ReaderLHEF.cc.
References GenEvent::clear(), ReaderLHEF::failed(), and ReaderLHEF::read_event().
|
private |
State of reader.
Definition at line 59 of file ReaderLHEF.h.
|
private |
Holder of attributes.
Definition at line 57 of file ReaderLHEF.h.
|
private |
Event counter.
Definition at line 58 of file ReaderLHEF.h.
|
protectedinherited |
|
private |
The actual reader.
Definition at line 56 of file ReaderLHEF.h.
|
private |
storage used for subevents.
Definition at line 60 of file ReaderLHEF.h.