1 #ifndef UTIL_LCStdHepRdr_H
2 #define UTIL_LCStdHepRdr_H 1
6 #include "EVENT/LCIO.h"
long getNumberOfEvents() const
Get number of events in the stdhep file.
LCStdHepRdrNew & operator=(const LCStdHepRdrNew &)=delete
no assignment operator
Implementation of the LCCollection using (inheriting from) an STL vector of LCObjects.
long numEventsExpected() const
Implementation of the main event class.
int threeCharge(int pdgID) const
Return the charge of the particle times 3 - code copied from HepPDT package.
Basic utility for reading a binary stdhep file and filling a LCCollectionVec with MCParticles contain...
IMPL::LCCollectionVec * readEvent()
Read an event and return an LCCollectionVec of MCParticles.
long getNumberOfTotalEventsExpected() const
Get total number of expected events in the whole set of stdhep files from which this stdhep file belo...
void printHeader(std::ostream &os=std::cout)
Print the file header to the given ostream.
void updateNextEvent(IMPL::LCEventImpl *evt, const char *colName=EVENT::LCIO::MCPARTICLE)
Reads the next stdhep event and adds a new MCParticle collection to the the event with default name '...
LCStdHepRdrNew(const char *evfile)
Open the stdhep input file in the constructer.
void setWriteEventNumber(bool writeEventNumber)