1 #ifndef RecoSV_DeepFlavour_ChargedCandidateConverter_h 2 #define RecoSV_DeepFlavour_ChargedCandidateConverter_h 28 template <
typename Cand
idateType>
32 const float & drminpfcandsv,
58 const float drminpfcandsv,
73 c_pf_features.
quality = pseudo_track.qualityMask();
85 const float drminpfcandsv,
const float puppiw,
86 const int pv_ass_quality,
94 pv->trackWeight(c_pf->
trackRef()) > 0.5 &&
95 pv_ass_quality == 7) {
99 c_pf_features.
puppiw = puppiw;
107 uint16_t qualityFlags = 0;
127 #endif //RecoSV_DeepFlavour_ChargedCandidateConverter_h float puppiWeight() const
Set both weights at once (with option for only full PUPPI)
bool isNonnull() const
Checks for non-null.
float btagPf_trackJetDistVal
static void CommonCandidateToFeatures(const CandidateType *c_pf, const reco::Jet &jet, const TrackInfoBuilder &track_info, const float &drminpfcandsv, ChargedCandidateFeatures &c_pf_features)
float btagPf_trackSip3dSig
Base class for all types of Jets.
double pt() const final
transverse momentum
const float getTrackEtaRel() const
const float getTrackDeltaR() const
const float getTrackPParRatio() const
reco::TrackRef trackRef() const
const float getTrackSip2dSig() const
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 float getTrackPPar() const
qualityFlagsShiftsAndMasks
const PVAssociationQuality pvAssociationQuality() const
virtual const reco::Track & pseudoTrack() const
Return reference to a pseudo track made with candidate kinematics, parameterized error for eta...
const float getTrackSip3dVal() const
bool hasTrackDetails() const
Return true if a bestTrack can be extracted from this Candidate.
const float getTrackJetDistVal() const
static void PackedCandidateToFeatures(const pat::PackedCandidate *c_pf, const pat::Jet &jet, const TrackInfoBuilder &track_info, const float drminpfcandsv, ChargedCandidateFeatures &c_pf_features)
Analysis-level calorimeter jet class.
float btagPf_trackSip2dVal
float btagPf_trackPParRatio
Particle reconstructed by the particle flow algorithm.
float btagPf_trackSip3dVal
const float getTrackPtRel() const
static void RecoCandidateToFeatures(const reco::PFCandidate *c_pf, const reco::Jet &jet, const TrackInfoBuilder &track_info, const float drminpfcandsv, const float puppiw, const int pv_ass_quality, const reco::VertexRef &pv, ChargedCandidateFeatures &c_pf_features)
float btagPf_trackSip2dSig
const float getTrackSip2dVal() const
const reco::Track * bestTrack() const override
const float getTrackSip3dSig() const