Go to the documentation of this file. 1 #ifndef RecoBTag_FeatureTools_ChargedCandidateConverter_h
2 #define RecoBTag_FeatureTools_ChargedCandidateConverter_h
14 template <
typename Cand
idateType>
18 const float& drminpfcandsv,
21 const bool flip =
false) {
36 c_pf_features.
erel = c_pf->energy() /
jet.energy();
37 const float etasign =
jet.eta() > 0 ? 1 : -1;
38 c_pf_features.
etarel = etasign * (c_pf->eta() -
jet.eta());
55 const auto* patJet = dynamic_cast<const pat::Jet*>(&
jet);
60 if (patJet->nSubjetCollections() > 0) {
61 auto subjets = patJet->subjets();
64 return p1->pt() >
p2->pt();
77 const TrackInfoBuilder& track_info,
78 const float drminpfcandsv,
80 ChargedCandidateFeatures& c_pf_features,
81 const bool flip =
false);
85 const TrackInfoBuilder& track_info,
86 const float drminpfcandsv,
89 const int pv_ass_quality,
91 ChargedCandidateFeatures& c_pf_features,
92 const bool flip =
false);
96 #endif //RecoBTag_FeatureTools_ChargedCandidateConverter_h
const float getTrackSip3dVal() const
void recoCandidateToFeatures(const reco::PFCandidate *c_pf, const reco::Jet &jet, const TrackInfoBuilder &track_info, 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)
Base class for all types of Jets.
const float getTrackSip2dSig() const
void commonCandidateToFeatures(const CandidateType *c_pf, const reco::Jet &jet, const TrackInfoBuilder &track_info, const float &drminpfcandsv, const float &jetR, ChargedCandidateFeatures &c_pf_features, const bool flip=false)
float btagPf_trackPParRatio
float btagPf_trackSip2dVal
float btagPf_trackJetDistVal
void packedCandidateToFeatures(const pat::PackedCandidate *c_pf, const pat::Jet &jet, const TrackInfoBuilder &track_info, const float drminpfcandsv, const float jetR, ChargedCandidateFeatures &c_pf_features, const bool flip=false)
float btagPf_trackSip2dSig
float btagPf_trackPtRatio
Analysis-level calorimeter jet class.
const float getTrackPParRatio() 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 getTrackEtaRel() const
const float getTrackSip2dVal() const
float btagPf_trackSip3dSig
const float getTrackPtRel() const
const float getTrackPPar() const
const float getTrackJetDistVal() const
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
Particle reconstructed by the particle flow algorithm.
float btagPf_trackSip3dVal
const float getTrackDeltaR() const
const float getTrackSip3dSig() const
const float getTrackPtRatio() const