#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 |
HepMC::IO_BaseClass const * | input () const |
HepMC::IO_BaseClass *& | input () |
int | rdstate () const |
Private Attributes | |
edm::propagate_const < HepMC::GenEvent * > | evt_ |
std::vector< HepMC::GenParticle * > | index_to_particle |
edm::propagate_const < 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 29 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 edm::propagate_const< T >::get(), input_, and instance_.
HepMC::GenEvent * HepMCFileReader::fillCurrentEventData | ( | ) |
|
private |
Definition at line 286 of file HepMCFileReader.cc.
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 Exception, edm::propagate_const< T >::get(), recoMuon::in, input_, isInitialized(), and rdstate().
|
inlineprivate |
Definition at line 57 of file HepMCFileReader.h.
References edm::get_underlying_safe(), and input_.
Referenced by rdstate().
|
inlineprivate |
Definition at line 58 of file HepMCFileReader.h.
References edm::get_underlying_safe(), and input_.
|
static |
Definition at line 30 of file HepMCFileReader.cc.
|
inline |
Definition at line 77 of file HepMCFileReader.h.
References input_.
Referenced by initialize().
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 compareJSON::const, 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 61 of file HepMCFileReader.h.
Referenced by fillCurrentEventData(), getStatsFromTuple(), printEvent(), printHepMcEvent(), readCurrentEvent(), and ReadStats().
|
private |
Definition at line 69 of file HepMCFileReader.h.
Referenced by getStatsFromTuple(), printEvent(), and ReadStats().
|
private |
Definition at line 62 of file HepMCFileReader.h.
Referenced by initialize(), input(), isInitialized(), readCurrentEvent(), and ~HepMCFileReader().
|
staticprivate |
Definition at line 64 of file HepMCFileReader.h.
Referenced by HepMCFileReader(), and ~HepMCFileReader().
|
private |
Definition at line 70 of file HepMCFileReader.h.
Referenced by getStatsFromTuple(), and ReadStats().