CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GsfEleHadronicOverEMLinearCut.cc
Go to the documentation of this file.
5 public:
7  CutApplicatorBase(params),
8  slopeTerm_(params,"slopeTerm"),
9  slopeStart_(params,"slopeStart"),
10  constTerm_(params,"constTerm"){}
11 
12  result_type operator()(const reco::GsfElectronPtr&) const override final;
13 
14  CandidateType candidateType() const override final {
15  return ELECTRON;
16  }
17 
18 private:
22 
23 };
24 
27  "GsfEleHadronicOverEMLinearCut");
28 
29 CutApplicatorBase::result_type
31 operator()(const reco::GsfElectronPtr& cand) const {
32 
33  const float energy = cand->superCluster()->energy();
34  const float cutValue = energy > slopeStart_(cand) ? slopeTerm_(cand)*(energy-slopeStart_(cand)) + constTerm_(cand) : constTerm_(cand);
35 
36  return cand->hadronicOverEm()*energy < cutValue;
37 }
GsfEleHadronicOverEMLinearCut(const edm::ParameterSet &params)
result_type operator()(const reco::GsfElectronPtr &) const overridefinal
CandidateType candidateType() const overridefinal
string const
Definition: compareJSON.py:14
#define DEFINE_EDM_PLUGIN(factory, type, name)