1 #ifndef UTIL_LCStdHepRdr_H
2 #define UTIL_LCStdHepRdr_H 1
6 #include "EVENT/LCIO.h"
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 '...
Implementation of the LCCollection using (inheriting from) an STL vector of LCObjects.
long numEventsExpected() const
Implementation of the main event class.
LCStdHepRdr & operator=(const LCStdHepRdr &)=delete
no assignment operator
long getNumberOfTotalEventsExpected() const
Get total number of expected events in the whole set of stdhep files from which this stdhep file belo...
long getNumberOfEvents() const
Get number of events in the stdhep file.
Basic utility for reading a binary stdhep file and filling a LCCollectionVec with MCParticles contain...
void printHeader(std::ostream &os=std::cout)
Print the file header to the given ostream.
IMPL::LCCollectionVec * readEvent()
Read an event and return an LCCollectionVec of MCParticles.
LCStdHepRdr(const char *evfile)
Open the stdhep input file in the constructer.
int threeCharge(int pdgID) const
Return the charge of the particle times 3 - code copied from HepPDT package.