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)
Definition at line 28 of file GenParticlesHelper.cc.
References funct::abs(), edm::RefVector< C, T, F >::begin(), edm::RefVector< C, T, F >::end(), and edm::RefVector< C, T, F >::push_back().
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(), reco::LeafCandidate::pdgId(), edm::RefVector< C, T, F >::push_back(), mps_update::status, and reco::LeafCandidate::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 edm::RefVector< C, T, F >::begin(), edm::RefVector< C, T, F >::end(), triggerObjects_cff::id, HLTTauQualityTests_cfi::mothers, 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(), HLTTauQualityTests_cfi::mothers, 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 HLTTauQualityTests_cfi::mothers, 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 MillePedeFileConverter_cfg::out.