Go to the documentation of this file. 1 #ifndef RecoBTag_FeatureTools_NeutralCandidateConverter_h
2 #define RecoBTag_FeatureTools_NeutralCandidateConverter_h
16 const float drminpfcandsv,
18 NeutralCandidateFeatures& n_pf_features);
22 const float drminpfcandsv,
25 NeutralCandidateFeatures& n_pf_features);
27 template <
typename Cand
idateType>
30 const float& drminpfcandsv,
33 const auto* patJet = dynamic_cast<const pat::Jet*>(&
jet);
39 if (patJet->nSubjetCollections() > 0) {
40 auto subjets = patJet->subjets();
43 return p1->pt() >
p2->pt();
57 n_pf_features.
erel = n_pf->energy() /
jet.energy();
67 #endif //RecoBTag_FeatureTools_NeutralCandidateConverter_h
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.
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)
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)
Analysis-level calorimeter jet class.
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)
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
Particle reconstructed by the particle flow algorithm.
Abs< T >::type abs(const T &t)