1 #ifndef UTIL_LCStdHepRdr_H
2 #define UTIL_LCStdHepRdr_H 1
4 #include "IMPL/LCCollectionVec.h"
5 #include "UTIL/lStdHep.hh"
6 #include "EVENT/LCIO.h"
7 #include "Exceptions.h"
41 return _reader->numEvents() ;
49 return _reader->numEventsExpected() ;
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 '...
Definition: LCStdHepRdr.cc:52
Implementation of the LCCollection using (inheriting from) an STL vector of LCObjects.
Definition: LCCollectionVec.h:26
Implementation of the main event class.
Definition: LCEventImpl.h:31
long getNumberOfTotalEventsExpected() const
Get total number of expected events in the whole set of stdhep files from which this stdhep file belo...
Definition: LCStdHepRdr.h:48
long getNumberOfEvents() const
Get number of events in the stdhep file.
Definition: LCStdHepRdr.h:40
Basic utility for reading a binary stdhep file and filling a LCCollectionVec with MCParticles contain...
Definition: LCStdHepRdr.h:24
void printHeader(std::ostream &os=std::cout)
Print the file header to the given ostream.
Definition: LCStdHepRdr.cc:42
IMPL::LCCollectionVec * readEvent()
Read an event and return an LCCollectionVec of MCParticles.
Definition: LCStdHepRdr.cc:87
~LCStdHepRdr()
noop
Definition: LCStdHepRdr.cc:35
LCStdHepRdr(const char *evfile)
Open the stdhep input file in the constructer.
Definition: LCStdHepRdr.cc:21
int threeCharge(int pdgID) const
Return the charge of the particle times 3 - code copied from HepPDT package.
Definition: LCStdHepRdr.cc:491