LDMX Software
|
Reads LHE event data into an LHEEvent object. More...
#include <LHEReader.h>
Public Member Functions | |
LHEReader (std::string &fileName) | |
Class constructor. | |
virtual | ~LHEReader () |
Class destructor. | |
LHEEvent * | readNextEvent () |
Read the next event. | |
Private Attributes | |
std::ifstream | ifs_ |
The input file stream. | |
Reads LHE event data into an LHEEvent object.
Definition at line 22 of file LHEReader.h.
simcore::lhe::LHEReader::LHEReader | ( | std::string & | fileName | ) |
Class constructor.
fileName | The input file name. |
Definition at line 8 of file LHEReader.cxx.
References ifs_.
|
virtual |
LHEEvent * simcore::lhe::LHEReader::readNextEvent | ( | ) |
Read the next event.
Definition at line 15 of file LHEReader.cxx.
References simcore::lhe::LHEEvent::addParticle(), simcore::lhe::LHEParticle::getMOTHUP(), simcore::lhe::LHEEvent::getParticles(), ifs_, simcore::lhe::LHEParticle::setMother(), and simcore::lhe::LHEEvent::setVertex().
Referenced by simcore::generators::LHEPrimaryGenerator::GeneratePrimaryVertex().
|
private |
The input file stream.
Definition at line 45 of file LHEReader.h.
Referenced by LHEReader(), readNextEvent(), and ~LHEReader().