8 const bool isWeightedJet,
9 const float drminpfcandsv,
14 const float distminpfcandsv) {
16 c_pf,
jet, track_info, isWeightedJet, drminpfcandsv,
jetR, puppiw, c_pf_features,
flip, distminpfcandsv);
20 c_pf_features.
puppiw = puppiw;
35 c_pf_features.
quality = pseudo_track.qualityMask();
66 c_pf_features.
pdgID = pdgid_;
72 const bool isWeightedJet,
73 const float drminpfcandsv,
76 const int pv_ass_quality,
80 const float distminpfcandsv) {
82 c_pf,
jet, track_info, isWeightedJet, drminpfcandsv,
jetR, puppiw, c_pf_features,
flip, distminpfcandsv);
85 c_pf_features.
puppiw = puppiw;
float quality_from_pfcand(const reco::PFCandidate &pfcand)
int charge() const override
electric charge
const float catch_infs(const float in, const float replace_value=0.)
int numberOfPixelHits() const
const reco::Track * bestTrack() const override
Base class for all types of Jets.
float caloFraction() const
Set the fraction of ECAL+HCAL energy over candidate energy.
int pdgId() const override
PDG identifier.
void packedCandidateToFeatures(const pat::PackedCandidate *c_pf, const pat::Jet &jet, const TrackInfoBuilder &track_info, const bool isWeightedJet, const float drminpfcandsv, const float jetR, const float puppiw, ChargedCandidateFeatures &c_pf_features, const bool flip=false, const float distminpfcandsv=0)
const float catch_infs_and_bound(const float in, const float replace_value, const float lowerbound, const float upperbound, const float offset=0., const bool use_offsets=true)
const PVAssociationQuality pvAssociationQuality() const
float dzError() const override
uncertainty on dz
Abs< T >::type abs(const T &t)
float vtx_ass_from_pfcand(const reco::PFCandidate &pfcand, int pv_ass_quality, const reco::VertexRef &pv)
float dxyError() const override
uncertainty on dxy
const reco::Track * bestTrack() const override
return a pointer to the track if present. otherwise, return a null pointer
int stripLayersWithMeasurement() const
void commonCandidateToFeatures(const CandidateType *c_pf, const reco::Jet &jet, const TrackInfoBuilder &track_info, const bool &isWeightedJet, const float &drminpfcandsv, const float &jetR, const float &puppiw, ChargedCandidateFeatures &c_pf_features, const bool flip=false, const float &distminpfcandsv=0)
Analysis-level calorimeter jet class.
float hcalFraction() const
Particle reconstructed by the particle flow algorithm.
LostInnerHits lostInnerHits() const
void recoCandidateToFeatures(const reco::PFCandidate *c_pf, const reco::Jet &jet, const TrackInfoBuilder &track_info, const bool isWeightedJet, const float drminpfcandsv, const float jetR, const float puppiw, const int pv_ass_quality, const reco::VertexRef &pv, ChargedCandidateFeatures &c_pf_features, const bool flip=false, const float distminpfcandsv=0)
virtual float dxy() const
dxy with respect to the PV ref
virtual float dz(size_t ipv=0) const
dz with respect to the PV[ipv]
virtual const reco::Track & pseudoTrack() const
bool hasTrackDetails() const
Return true if a bestTrack can be extracted from this Candidate.