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 77 of file GenParticlesHelper.cc.
References edm::RefVector< C, T, F >::begin(), edm::RefVector< C, T, F >::end(), reco::CompositeRefCandidateT< D >::motherRefVector(), 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.
std::ostream & GenParticlesHelper::operator<< | ( | std::ostream & | out, |
const reco::GenParticleRef & | genRef | ||
) |
Definition at line 92 of file GenParticlesHelper.cc.
References edm::Ref< C, T, F >::key(), and submitPVResolutionJobs::out.