HepMC3 event record library
|
GenEvent I/O parsing and serialization for LHEF files.
Definition at line 34 of file ReaderLHEF.h.
#include <ReaderLHEF.h>
Public Member Functions | |
ReaderLHEF (std::istream &) | |
The ctor to read from stream. More... | |
ReaderLHEF (const std::string &filename) | |
Constructor. More... | |
bool | read_event (GenEvent &ev) |
Reading event. More... | |
void | close () |
Close. More... | |
bool | failed () |
State. More... | |
~ReaderLHEF () | |
Destructor. 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 | |
void | init () |
Init helper. More... | |
Private Attributes | |
LHEF::Reader * | m_reader |
The actual reader. More... | |
shared_ptr< HEPRUPAttribute > | m_hepr |
Holder of attributes. More... | |
int | m_neve |
Event counter. More... | |
bool | m_failed |
State of reader. More... | |
shared_ptr< GenRunInfo > | m_run_info |
The global GenRunInfo object. More... | |
ReaderLHEF | ( | std::istream & | stream | ) |
The ctor to read from stream.
Definition at line 20 of file ReaderLHEF.cc.
ReaderLHEF | ( | const std::string & | filename | ) |
Constructor.
Definition at line 15 of file ReaderLHEF.cc.
~ReaderLHEF | ( | ) |
Destructor.
Definition at line 70 of file ReaderLHEF.cc.
|
virtual |
|
virtual |
State.
Return status of the stream.
Implements Reader.
Definition at line 123 of file ReaderLHEF.cc.
|
private |
Init helper.
Definition at line 26 of file ReaderLHEF.cc.
References GenRunInfo::ToolInfo::description, XMLTag::findXMLTags(), GenRunInfo::ToolInfo::name, and GenRunInfo::ToolInfo::version.
|
virtual |
Reading event.
Implements Reader.
Definition at line 72 of file ReaderLHEF.cc.
References GenEvent::add_attribute(), GenEvent::add_vertex(), XMLTag::findXMLTags(), GenEvent::set_event_number(), and GenEvent::weights().
|
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 |
State of reader.
Definition at line 56 of file ReaderLHEF.h.
|
private |
Holder of attributes.
Definition at line 54 of file ReaderLHEF.h.
|
private |
Event counter.
Definition at line 55 of file ReaderLHEF.h.
|
private |
The actual reader.
Definition at line 53 of file ReaderLHEF.h.
|
privateinherited |
The global GenRunInfo object.