12 vector<const reco::Candidate *> moms;
17 moms.push_back( dau );
30 bool tmpHasBottom =
false;
33 if ( code1 == 5 || code2 == 5) tmpHasBottom =
true;
41 bool tmpHasCharm =
false;
44 if ( code1 == 4 || code2 == 4) tmpHasCharm =
true;
bool isLightParton(const reco::Candidate &c)
std::vector< const reco::Candidate * > getAncestors(const reco::Candidate &c)
bool hasCharm(const reco::Candidate &c)
virtual const Candidate * mother(size_type i=0) const =0
return pointer to mother
virtual int pdgId() const =0
PDG identifier.
virtual size_type numberOfMothers() const =0
number of mothers (zero or one in most of but not all the cases)
Abs< T >::type abs(const T &t)
bool isParton(const reco::Candidate &c)
bool hasBottom(const reco::Candidate &c)