HepMC3 event record library
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
ReaderLHEF Class Reference

Detailed Description

GenEvent I/O parsing and serialization for LHEF files.

Examples:
convert_example.cc.

Definition at line 34 of file ReaderLHEF.h.

#include <ReaderLHEF.h>

+ Inheritance diagram for ReaderLHEF:
+ Collaboration diagram for ReaderLHEF:

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< GenRunInforun_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::Readerm_reader
 The actual reader. More...
 
shared_ptr< HEPRUPAttributem_hepr
 Holder of attributes. More...
 
int m_neve
 Event counter. More...
 
bool m_failed
 State of reader. More...
 

Constructor & Destructor Documentation

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.

Member Function Documentation

void close ( )
virtual

Close.

Close file stream.

Implements Reader.

Definition at line 126 of file ReaderLHEF.cc.

bool failed ( )
virtual

State.

Return status of the stream.

Implements Reader.

Definition at line 123 of file ReaderLHEF.cc.

void init ( )
private
bool read_event ( GenEvent ev)
virtual
shared_ptr<GenRunInfo> run_info ( ) const
inlineinherited

Get the global GenRunInfo object.

Examples:
convert_example.cc, and LHEF_example_cat.cc.

Definition at line 39 of file Reader.h.

References Reader::m_run_info.

void set_run_info ( shared_ptr< GenRunInfo run)
inlineprotectedinherited

Set the global GenRunInfo object.

Definition at line 46 of file Reader.h.

References Reader::m_run_info.

Field Documentation

bool m_failed
private

State of reader.

Definition at line 56 of file ReaderLHEF.h.

shared_ptr<HEPRUPAttribute> m_hepr
private

Holder of attributes.

Definition at line 54 of file ReaderLHEF.h.

int m_neve
private

Event counter.

Definition at line 55 of file ReaderLHEF.h.

LHEF::Reader* m_reader
private

The actual reader.

Definition at line 53 of file ReaderLHEF.h.


The documentation for this class was generated from the following files: