15 : flavorSource_(flavorSource),
17 progenitor_(progenitor),
19 matchedJet_(matchedJet),
20 sisterJet_(sisterJet) {}
29 : flavorSource_(flavorSource),
30 parton_(parton >= 0 && static_cast<unsigned int>(parton) < h_partons->
size() ?
CandidatePtr(h_partons, parton)
32 progenitor_(progenitor >= 0 && static_cast<unsigned int>(progenitor) < h_partons->
size()
35 sister_(sister >= 0 && static_cast<unsigned int>(sister) < h_partons->
size() ?
CandidatePtr(h_partons, sister)
37 matchedJet_(matchedJet),
38 sisterJet_(sisterJet) {}
47 : flavorSource_(flavorSource),
48 parton_(parton >= 0 && static_cast<unsigned int>(parton) < h_partons->
size() ?
CandidatePtr(h_partons, parton)
50 progenitor_(progenitor >= 0 && static_cast<unsigned int>(progenitor) < h_partons->
size()
53 sister_(sister >= 0 && static_cast<unsigned int>(sister) < h_partons->
size() ?
CandidatePtr(h_partons, sister)
55 matchedJet_(matchedJet),
56 sisterJet_(sisterJet) {}
61 "%5d, status = %5d, nmo = %5d, nda = %5d, pt = %6.2f, eta = %6.2f, phi = %6.2f, m = %6.2f",
77 out <<
"Parton = " << cand.
parton().
key() <<
" : " << *(cand.
parton()) << endl;
81 out <<
"Sister = " << cand.
sister().
key() <<
" : " << *(cand.
sister()) << endl;
85 out <<
"sister jet = " << cand.
sisterJet() << endl;
87 out <<
"Ancestry: " << endl;
virtual const Candidate * mother(size_type i=0) const =0
return pointer to mother
virtual double pt() const =0
transverse momentum
virtual double mass() const =0
mass
virtual int status() const =0
status word
const reco::ShallowClonePtrCandidate & matchedJet() const
virtual size_type numberOfMothers() const =0
number of mothers (zero or one in most of but not all the cases)
bool hasProgenitor() const
FLAVOR_T flavorSource() const
virtual size_type numberOfDaughters() const =0
number of daughters
std::ostream & operator<<(std::ostream &, BeamSpot beam)
bool hasSisterJet() const
virtual int pdgId() const =0
PDG identifier.
const reco::CandidatePtr & sister() const
const reco::CandidatePtr & progenitor() const
const reco::ShallowClonePtrCandidate & sisterJet() const
tuple size
Write out results.
bool hasMatchedJet() const
const reco::CandidatePtr & parton() const
virtual double phi() const =0
momentum azimuthal angle
virtual double eta() const =0
momentum pseudorapidity