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... | |
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)
Definition at line 28 of file GenParticlesHelper.cc.
References funct::abs(), edmMakeDummyCfis::base, edm::RefVector< C, T, F >::begin(), edm::RefVector< C, T, F >::end(), EgammaValidation_cff::pdgId, edm::RefVector< C, T, F >::push_back(), and mps_update::status.
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
Definition at line 8 of file GenParticlesHelper.cc.
References funct::abs(), EgammaValidation_cff::pdgId, edm::RefVector< C, T, F >::push_back(), and mps_update::status.
Referenced by TauGenJetProducer::produce().
void GenParticlesHelper::findSisters | ( | const reco::GenParticleRef & | baseSister, |
reco::GenParticleRefVector & | sisterRefs | ||
) |
find the particles having the same daughter as baseSister
Definition at line 43 of file GenParticlesHelper.cc.
References cms::cuda::assert(), edm::RefVector< C, T, F >::begin(), edm::RefVector< C, T, F >::end(), l1ctLayer2EG_cff::id, and edm::RefVector< C, T, F >::push_back().
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 77 of file GenParticlesHelper.cc.
References edm::RefVector< C, T, F >::begin(), edm::RefVector< C, T, F >::end(), reco::CompositeRefCandidateT< D >::motherRefVector(), EgammaValidation_cff::pdgId, reco::LeafCandidate::pdgId(), mps_update::status, and reco::LeafCandidate::status().
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 61 of file GenParticlesHelper.cc.
References cms::cuda::assert(), and mps_update::status.