#include <HepMCFileReader.h>
Public Member Functions | |
HepMC::GenEvent * | fillCurrentEventData () |
virtual void | getStatsFromTuple (int &mo1, int &mo2, int &da1, int &da2, int &status, int &pid, int j) const |
virtual void | initialize (const std::string &filename) |
bool | isInitialized () const |
void | printEvent () const |
virtual bool | printHepMcEvent () const |
virtual bool | readCurrentEvent () |
virtual void | ReadStats () |
virtual bool | setEvent (int event) |
virtual | ~HepMCFileReader () |
Static Public Member Functions | |
static HepMCFileReader * | instance () |
Protected Member Functions | |
HepMCFileReader () | |
Private Member Functions | |
int | find_in_map (const std::map< HepMC::GenParticle *, int > &m, HepMC::GenParticle *p) const |
int | rdstate () const |
Private Attributes | |
HepMC::GenEvent * | evt_ |
std::vector< HepMC::GenParticle * > | index_to_particle |
HepMC::IO_BaseClass * | input_ |
std::map< HepMC::GenParticle *, int > | particle_to_index |
Static Private Attributes | |
static HepMCFileReader * | instance_ =0 |
This class is used by the implementation of DaqEventFactory present in this package to read in the full event raw data from a flat binary file. WARNING: If you want to use this class for other purposes you must always invoke the method initialize before starting using the interface it exposes.
Definition at line 28 of file HepMCFileReader.h.
|
protected |
Definition at line 42 of file HepMCFileReader.cc.
References instance_.
|
virtual |
Definition at line 55 of file HepMCFileReader.cc.
References input_, and instance_.
HepMC::GenEvent * HepMCFileReader::fillCurrentEventData | ( | ) |
Definition at line 128 of file HepMCFileReader.cc.
References evt_, and readCurrentEvent().
Referenced by edm::MCFileSource::setRunAndEventInfo().
|
private |
Definition at line 286 of file HepMCFileReader.cc.
References getDQMSummary::iter.
Referenced by getStatsFromTuple().
|
virtual |
Definition at line 235 of file HepMCFileReader.cc.
References gather_cfg::cout, evt_, find_in_map(), index_to_particle, j, and particle_to_index.
Referenced by printEvent().
|
virtual |
Definition at line 65 of file HepMCFileReader.cc.
References edm::hlt::Exception, recoMuon::in, input_, isInitialized(), and rdstate().
Referenced by edm::MCFileSource::MCFileSource().
|
static |
Definition at line 30 of file HepMCFileReader.cc.
|
inline |
void HepMCFileReader::printEvent | ( | ) | const |
Definition at line 137 of file HepMCFileReader.cc.
References gather_cfg::cout, evt_, g, GenParticle::GenParticle, getStatsFromTuple(), index_to_particle, gen::n, sysUtil::pid, mathSSE::sqrt(), and ntuplemaker::status.
|
virtual |
|
private |
Definition at line 83 of file HepMCFileReader.cc.
References input_, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by initialize().
|
virtual |
Definition at line 95 of file HepMCFileReader.cc.
References evt_, input_, and ReadStats().
Referenced by fillCurrentEventData().
|
virtual |
Definition at line 195 of file HepMCFileReader.cc.
References evt_, index_to_particle, p1, p2, particle_to_index, and findQualityFiles::v.
Referenced by readCurrentEvent().
|
virtual |
Definition at line 113 of file HepMCFileReader.cc.
|
private |
Definition at line 57 of file HepMCFileReader.h.
Referenced by fillCurrentEventData(), getStatsFromTuple(), printEvent(), printHepMcEvent(), readCurrentEvent(), and ReadStats().
|
private |
Definition at line 65 of file HepMCFileReader.h.
Referenced by getStatsFromTuple(), printEvent(), and ReadStats().
|
private |
Definition at line 58 of file HepMCFileReader.h.
Referenced by initialize(), isInitialized(), rdstate(), readCurrentEvent(), and ~HepMCFileReader().
|
staticprivate |
Definition at line 60 of file HepMCFileReader.h.
Referenced by HepMCFileReader(), and ~HepMCFileReader().
|
private |
Definition at line 66 of file HepMCFileReader.h.
Referenced by getStatsFromTuple(), and ReadStats().