Typedefs | |
typedef reco::GenParticleCollection::const_iterator | IG |
typedef reco::GenParticleRefVector::const_iterator | IGR |
Functions | |
void | findDescendents (const reco::GenParticleRef &base, reco::GenParticleRefVector &descendents, int status, int pdgId=0) |
find all descendents of a given status and pdgId (recursive) More... | |
void | findParticles (const reco::GenParticleCollection &sourceParticles, reco::GenParticleRefVector &particleRefs, int pdgId, int status) |
find all particles of a given pdgId and status More... | |
void | findSisters (const reco::GenParticleRef &baseSister, reco::GenParticleRefVector &sisterRefs) |
find the particles having the same daughter as baseSister More... | |
bool | hasAncestor (const reco::GenParticle *particle, int pdgId, int status) |
does the particle have an ancestor with this pdgId and this status? More... | |
bool | isDirect (const reco::GenParticleRef &particle) |
check if particle is direct (has status 3 or is a daughter of particle with status 3) More... | |
std::ostream & | operator<< (std::ostream &out, const reco::GenParticleRef &genRef) |
typedef reco::GenParticleCollection::const_iterator GenParticlesHelper::IG |
Definition at line 10 of file GenParticlesHelper.h.
Definition at line 11 of file GenParticlesHelper.h.
void GenParticlesHelper::findDescendents | ( | const reco::GenParticleRef & | base, |
reco::GenParticleRefVector & | descendents, | ||
int | status, | ||
int | pdgId = 0 |
||
) |
find all descendents of a given status and pdgId (recursive)
Referenced by TauGenJetProducer::produce().
void GenParticlesHelper::findParticles | ( | const reco::GenParticleCollection & | sourceParticles, |
reco::GenParticleRefVector & | particleRefs, | ||
int | pdgId, | ||
int | status | ||
) |
find all particles of a given pdgId and status
Referenced by TauGenJetProducer::produce().
void GenParticlesHelper::findSisters | ( | const reco::GenParticleRef & | baseSister, |
reco::GenParticleRefVector & | sisterRefs | ||
) |
find the particles having the same daughter as baseSister
bool GenParticlesHelper::hasAncestor | ( | const reco::GenParticle * | particle, |
int | pdgId, | ||
int | status | ||
) |
does the particle have an ancestor with this pdgId and this status?
Definition at line 98 of file GenParticlesHelper.cc.
References edm::RefVector< C, T, F >::begin(), edm::RefVector< C, T, F >::end(), reco::CompositeRefCandidateT< D >::motherRefVector(), reco::LeafCandidate::pdgId(), reco::LeafCandidate::status(), and ntuplemaker::status.
Referenced by GeneratorAnalyzer.GeneratorAnalyzer::makeMCInfo().
bool GenParticlesHelper::isDirect | ( | const reco::GenParticleRef & | particle | ) |
check if particle is direct (has status 3 or is a daughter of particle with status 3)
Definition at line 81 of file GenParticlesHelper.cc.
References ntuplemaker::status.
std::ostream & GenParticlesHelper::operator<< | ( | std::ostream & | out, |
const reco::GenParticleRef & | genRef | ||
) |
Definition at line 117 of file GenParticlesHelper.cc.
References edm::Ref< C, T, F >::key(), and dbtoconf::out.