#include <Ntuple2HepMCFiller.h>
Public Member Functions | |
HepMC::GenParticle * | createParticle (int index) |
HepMC::GenEvent * | fillCurrentEventData () |
virtual void | initialize (const std::string &filename, int id) |
bool | isInitialized () |
virtual bool | printHepMcEvent () const |
virtual bool | readCurrentEvent () |
virtual bool | setEvent (unsigned int event) |
virtual bool | toGenEvent (int evtnum, HepMC::GenEvent *evt) |
virtual | ~Ntuple2HepMCFiller () |
Destructor. More... | |
Static Public Member Functions | |
static Ntuple2HepMCFiller * | instance () |
Protected Member Functions | |
Ntuple2HepMCFiller () | |
Constructor. More... | |
void | setInitialized (bool value) |
Private Member Functions | |
void | buildProductionVertex (int i, std::vector< HepMC::GenParticle * > &hepevt_particle, HepMC::GenEvent *evt, bool printInconsistencyErrors) |
int | find_in_map (const std::map< HepMC::GenParticle *, int > &m, HepMC::GenParticle *p) const |
int | number_children (int index) |
int | number_parents (int index) |
Private Attributes | |
HepMC::GenEvent * | evt |
int | evtid |
std::vector< HepMC::GenParticle * > | index_to_particle |
bool | initialized_ |
NtupleROOTFile * | input_ |
int | nParticles |
int | ntpl_id |
std::map< HepMC::GenParticle *, int > | particle_to_index |
Static Private Attributes | |
static Ntuple2HepMCFiller * | instance_ =0 |
Fills information from a converted cmkin ntpl into an HepMC event; The "h2root" converted ntpl is read by the class NtupleROOTFile Joanna Weng 1/2006
Definition at line 19 of file Ntuple2HepMCFiller.h.
|
protected |
Constructor.
Definition at line 23 of file Ntuple2HepMCFiller.cc.
References gather_cfg::cout, and instance_.
|
virtual |
Destructor.
Definition at line 31 of file Ntuple2HepMCFiller.cc.
References gather_cfg::cout, input_, and instance_.
|
private |
Definition at line 159 of file Ntuple2HepMCFiller.cc.
References benchmark_cfg::cerr, configurableAnalysis::GenParticle, NtupleROOTFile::getJmohep(), NtupleROOTFile::getNevhep(), NtupleROOTFile::getVhep(), i, input_, number_parents(), and L1TEmulatorMonitor_cff::p.
Referenced by toGenEvent().
HepMC::GenParticle * Ntuple2HepMCFiller::createParticle | ( | int | index | ) |
Definition at line 143 of file Ntuple2HepMCFiller.cc.
References configurableAnalysis::GenParticle, NtupleROOTFile::getIdhep(), NtupleROOTFile::getIsthep(), NtupleROOTFile::getPhep(), input_, and L1TEmulatorMonitor_cff::p.
Referenced by toGenEvent().
HepMC::GenEvent * Ntuple2HepMCFiller::fillCurrentEventData | ( | ) |
Definition at line 102 of file Ntuple2HepMCFiller.cc.
References evt, NULL, and readCurrentEvent().
Referenced by edm::H2RootNtplSource::produce().
|
private |
|
virtual |
Definition at line 43 of file Ntuple2HepMCFiller.cc.
References gather_cfg::cout, initialized_, input_, and ntpl_id.
Referenced by edm::H2RootNtplSource::H2RootNtplSource().
|
static |
Definition at line 14 of file Ntuple2HepMCFiller.cc.
bool Ntuple2HepMCFiller::isInitialized | ( | ) |
|
private |
Definition at line 223 of file Ntuple2HepMCFiller.cc.
References NtupleROOTFile::getJdahep(), and input_.
|
private |
Definition at line 231 of file Ntuple2HepMCFiller.cc.
References NtupleROOTFile::getJmohep(), NtupleROOTFile::getNhep(), and input_.
Referenced by buildProductionVertex().
|
virtual |
|
virtual |
Definition at line 66 of file Ntuple2HepMCFiller.cc.
References gather_cfg::cout, event(), evt, evtid, align_tpl::filter, NtupleROOTFile::getNevhep(), input_, NtupleROOTFile::setEvent(), and toGenEvent().
Referenced by fillCurrentEventData().
|
virtual |
Definition at line 89 of file Ntuple2HepMCFiller.cc.
References event(), and evtid.
Referenced by edm::H2RootNtplSource::H2RootNtplSource().
|
protected |
Definition at line 40 of file Ntuple2HepMCFiller.cc.
References initialized_, and relativeConstraints::value.
|
virtual |
sufficient to do one OR the other
Definition at line 110 of file Ntuple2HepMCFiller.cc.
References buildProductionVertex(), createParticle(), NtupleROOTFile::getNhep(), i, and input_.
Referenced by readCurrentEvent().
|
private |
Definition at line 44 of file Ntuple2HepMCFiller.h.
Referenced by fillCurrentEventData(), printHepMcEvent(), and readCurrentEvent().
|
private |
Definition at line 54 of file Ntuple2HepMCFiller.h.
Referenced by readCurrentEvent(), and setEvent().
|
private |
Definition at line 52 of file Ntuple2HepMCFiller.h.
|
private |
Definition at line 45 of file Ntuple2HepMCFiller.h.
Referenced by initialize(), isInitialized(), and setInitialized().
|
private |
Definition at line 46 of file Ntuple2HepMCFiller.h.
Referenced by buildProductionVertex(), createParticle(), initialize(), number_children(), number_parents(), readCurrentEvent(), toGenEvent(), and ~Ntuple2HepMCFiller().
|
staticprivate |
Definition at line 42 of file Ntuple2HepMCFiller.h.
Referenced by Ntuple2HepMCFiller(), and ~Ntuple2HepMCFiller().
|
private |
Definition at line 49 of file Ntuple2HepMCFiller.h.
|
private |
Definition at line 55 of file Ntuple2HepMCFiller.h.
Referenced by initialize().
|
private |
Definition at line 53 of file Ntuple2HepMCFiller.h.