1 #ifndef RecoBTag_FeatureTools_NeutralCandidateConverter_h 2 #define RecoBTag_FeatureTools_NeutralCandidateConverter_h 19 const float drminpfcandsv,
const float jetR,
20 NeutralCandidateFeatures & n_pf_features) ;
25 const float drminpfcandsv,
const float jetR,
const float puppiw,
26 NeutralCandidateFeatures & n_pf_features) ;
29 template <
typename Cand
idateType>
32 const float& drminpfcandsv,
35 const auto* patJet =
dynamic_cast<const pat::Jet*
>(&
jet);
41 if (patJet->nSubjetCollections() > 0) {
42 auto subjets = patJet->subjets();
45 return p1->
pt() >
p2->pt();
59 n_pf_features.
erel = n_pf->energy() / jet.
energy();
65 0,-1.*jetR,0,-1.*jetR);
73 #endif //RecoBTag_FeatureTools_NeutralCandidateConverter_h
Base class for all types of Jets.
double pt() const final
transverse momentum
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)
double energy() const final
energy
Abs< T >::type abs(const T &t)
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
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)
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)
Analysis-level calorimeter jet class.
Particle reconstructed by the particle flow algorithm.
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)