#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_ = nullptr |
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 27 of file HepMCFileReader.h.
|
protected |
Definition at line 38 of file HepMCFileReader.cc.
References instance_.
|
virtual |
Definition at line 48 of file HepMCFileReader.cc.
References edm::propagate_const< T >::get(), input_, and instance_.
HepMC::GenEvent * HepMCFileReader::fillCurrentEventData | ( | ) |
|
private |
Definition at line 252 of file HepMCFileReader.cc.
Referenced by getStatsFromTuple().
|
virtual |
Definition at line 205 of file HepMCFileReader.cc.
References gather_cfg::cout, evt_, find_in_map(), index_to_particle, dqmiolumiharvest::j, and particle_to_index.
Referenced by printEvent().
|
virtual |
Definition at line 56 of file HepMCFileReader.cc.
References Exception, edm::propagate_const< T >::get(), recoMuon::in, input_, isInitialized(), and rdstate().
|
inlineprivate |
Definition at line 53 of file HepMCFileReader.h.
References edm::get_underlying_safe(), and input_.
Referenced by rdstate().
|
inlineprivate |
Definition at line 54 of file HepMCFileReader.h.
References edm::get_underlying_safe(), and input_.
|
static |
Definition at line 28 of file HepMCFileReader.cc.
|
inline |
Definition at line 71 of file HepMCFileReader.h.
References input_.
Referenced by initialize().
void HepMCFileReader::printEvent | ( | ) | const |
Definition at line 115 of file HepMCFileReader.cc.
References gather_cfg::cout, evt_, g, GenParticle::GenParticle, getStatsFromTuple(), index_to_particle, dqmiodumpmetadata::n, mathSSE::sqrt(), and mps_update::status.
|
virtual |
|
private |
Definition at line 71 of file HepMCFileReader.cc.
References input(), and AlCaHLTBitMon_ParallelJobs::p.
Referenced by initialize().
|
virtual |
Definition at line 82 of file HepMCFileReader.cc.
References evt_, input_, and ReadStats().
Referenced by fillCurrentEventData().
|
virtual |
Definition at line 166 of file HepMCFileReader.cc.
References evt_, index_to_particle, fireworks::p1, fireworks::p2, particle_to_index, and findQualityFiles::v.
Referenced by readCurrentEvent().
|
virtual |
Definition at line 98 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(), input(), isInitialized(), 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().