1 #ifndef RecoSV_DeepFlavour_NeutralCandidateConverter_h 2 #define RecoSV_DeepFlavour_NeutralCandidateConverter_h 16 template <
typename Cand
idateType>
19 const float & drminpfcandsv,
37 const float drminpfcandsv,
49 const float drminpfcandsv,
const float puppiw,
53 n_pf_features.
puppiw = puppiw;
70 #endif //RecoSV_DeepFlavour_NeutralCandidateConverter_h float puppiWeight() const
Set both weights at once (with option for only full PUPPI)
double ecalEnergy() const
return corrected Ecal energy
int pdgId() const final
PDG identifier.
float hcalFraction() const
Set the fraction of Hcal needed for HF and neutral hadrons and isolated charged hadrons.
Base class for all types of Jets.
double pt() const final
transverse momentum
static void PackedCandidateToFeatures(const pat::PackedCandidate *n_pf, const pat::Jet &jet, const float drminpfcandsv, NeutralCandidateFeatures &n_pf_features)
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)
Abs< T >::type abs(const T &t)
auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
static void CommonCandidateToFeatures(const CandidateType *n_pf, const reco::Jet &jet, const float &drminpfcandsv, NeutralCandidateFeatures &n_pf_features)
static void RecoCandidateToFeatures(const reco::PFCandidate *n_pf, const reco::Jet &jet, const float drminpfcandsv, const float puppiw, NeutralCandidateFeatures &n_pf_features)
Analysis-level calorimeter jet class.
Particle reconstructed by the particle flow algorithm.
double hcalEnergy() const
return corrected Hcal energy