CMS 3D CMS Logo

GsfEleHadronicOverEMLinearCut.cc
Go to the documentation of this file.
4 
6 public:
8  : CutApplicatorBase(params),
9  slopeTerm_(params, "slopeTerm"),
10  slopeStart_(params, "slopeStart"),
11  constTerm_(params, "constTerm") {}
12 
13  result_type operator()(const reco::GsfElectronPtr&) const final;
14 
15  double value(const reco::CandidatePtr& cand) const final;
16 
18 
19 private:
23 };
24 
26 
28  const float energy = cand->superCluster()->energy();
29  const float cutValue = energy > slopeStart_(cand) ? slopeTerm_(cand) * (energy - slopeStart_(cand)) + constTerm_(cand)
30  : constTerm_(cand);
31 
32  return cand->hadronicOverEm() * energy < cutValue;
33 }
34 
36  reco::GsfElectronPtr ele(cand);
37  const float energy = ele->superCluster()->energy();
38  return ele->hadronicOverEm() * energy;
39 }
double value(const reco::CandidatePtr &cand) const final
GsfEleHadronicOverEMLinearCut(const edm::ParameterSet &params)
float hadronicOverEm() const
Definition: GsfElectron.h:468
CandidateType candidateType() const final
result_type operator()(const reco::GsfElectronPtr &) const final
SuperClusterRef superCluster() const override
reference to a SuperCluster
Definition: GsfElectron.h:155
#define DEFINE_EDM_PLUGIN(factory, type, name)