HepMC3 event record library
Public Member Functions | Protected 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 (const std::string &filename)
 
bool read_event (GenEvent &ev)
 Fill next event from input into evt. More...
 
void close ()
 Close file stream. More...
 
bool failed ()
 Return status of the stream. 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 Attributes

LHEF::Readerm_reader
 
shared_ptr< HEPRUPAttributem_hepr
 
int m_neve
 
bool m_failed
 

Constructor & Destructor Documentation

◆ ~ReaderLHEF()

~ReaderLHEF ( )

Destructor.

Definition at line 60 of file ReaderLHEF.cc.

Member Function Documentation

◆ close()

void close ( )
virtual

Close file stream.

Implements Reader.

Definition at line 116 of file ReaderLHEF.cc.

◆ failed()

bool failed ( )
virtual

Return status of the stream.

Implements Reader.

Definition at line 113 of file ReaderLHEF.cc.

◆ read_event()

bool read_event ( GenEvent evt)
virtual

Fill next event from input into evt.

Implements Reader.

Definition at line 62 of file ReaderLHEF.cc.

References GenEvent::add_attribute(), GenEvent::add_vertex(), XMLTag::findXMLTags(), GenEvent::set_event_number(), and GenEvent::weights().

◆ run_info()

shared_ptr<GenRunInfo> run_info ( ) const
inlineinherited

Get the global GenRunInfo object.

Examples
convert_example.cc, and LHEF_example_cat.cc.

Definition at line 37 of file Reader.h.

References Reader::m_run_info.

◆ set_run_info()

void set_run_info ( shared_ptr< GenRunInfo run)
inlineprotectedinherited

Set the global GenRunInfo object.

Definition at line 44 of file Reader.h.

References Reader::m_run_info.


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