9 flavorSource_ = FLAVOR_NULL;
18 flavorSource_(flavorSource),
20 progenitor_(progenitor),
22 matchedJet_(matchedJet),
35 flavorSource_(flavorSource),
37 progenitor_( progenitor >= 0 && static_cast<unsigned int>(progenitor) < h_partons->
size() ?
CandidatePtr(h_partons,progenitor) :
CandidatePtr()),
39 matchedJet_( matchedJet ),
40 sisterJet_ ( sisterJet )
52 flavorSource_(flavorSource),
54 progenitor_( progenitor >= 0 && static_cast<unsigned int>(progenitor) < h_partons->
size() ?
CandidatePtr(h_partons,progenitor) :
CandidatePtr()),
56 matchedJet_( matchedJet ),
57 sisterJet_ ( sisterJet )
67 sprintf(buff,
"%5d, status = %5d, nmo = %5d, nda = %5d, pt = %6.2f, eta = %6.2f, phi = %6.2f, m = %6.2f",
80 out <<
"Parton = " << cand.
parton().
key() <<
" : " << *(cand.
parton()) << endl;
84 out <<
"Sister = " << cand.
sister().
key() <<
" : " << *(cand.
sister()) << endl;
88 out <<
"sister jet = " << cand.
sisterJet() << endl;
90 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