![]() |
![]() |
Functions | |
std::vector< const reco::Candidate * > | getAncestors (const reco::Candidate &c) |
bool | hasBottom (const reco::Candidate &c) |
bool | hasCharm (const reco::Candidate &c) |
std::vector< const reco::Candidate * > CandMCTagUtils::getAncestors | ( | const reco::Candidate & | c | ) |
Definition at line 10 of file CandMCTag.cc.
References trackerHits::c, reco::Candidate::mother(), and reco::Candidate::numberOfMothers().
Referenced by JetMCTagUtils::decayFromBHadron(), and JetMCTagUtils::decayFromCHadron().
{ vector<const reco::Candidate *> moms; if( c.numberOfMothers() == 1 ) { const Candidate * dau = &c; const Candidate * mom = c.mother(); while ( dau->numberOfMothers() == 1) { moms.push_back( dau ); dau = mom ; mom = dau->mother(); } } return moms; }
bool CandMCTagUtils::hasBottom | ( | const reco::Candidate & | c | ) |
Definition at line 26 of file CandMCTag.cc.
References abs, and reco::Candidate::pdgId().
Referenced by JetMCTagUtils::decayFromBHadron().
bool CandMCTagUtils::hasCharm | ( | const reco::Candidate & | c | ) |
Definition at line 37 of file CandMCTag.cc.
References abs, and reco::Candidate::pdgId().
Referenced by JetMCTagUtils::decayFromCHadron().