CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GsfEleTrkPtIsoCut.cc
Go to the documentation of this file.
6 
8 
10 public:
12 
13  result_type operator()(const reco::GsfElectronPtr&) const override final;
14 
15  CandidateType candidateType() const override final {
16  return ELECTRON;
17  }
18 
19 private:
20 
24 
25 
27 
28 };
29 
32  "GsfEleTrkPtIsoCut");
33 
35  CutApplicatorBase(params),
36  slopeTerm_(params,"slopeTerm"),
37  slopeStart_(params,"slopeStart"),
38  constTerm_(params,"constTerm")
39 {
40 
41 }
42 
43 
44 CutApplicatorBase::result_type
46 operator()(const reco::GsfElectronPtr& cand) const{
47 
48  const float isolTrkPt = cand->dr03TkSumPt();
49 
50  const float et = cand->et();
51  const float cutValue = et > slopeStart_(cand) ? slopeTerm_(cand)*(et-slopeStart_(cand)) + constTerm_(cand) : constTerm_(cand);
52  return isolTrkPt < cutValue;
53 }
EBEECutValues slopeStart_
EBEECutValues constTerm_
edm::Handle< double > rhoHandle_
result_type operator()(const reco::GsfElectronPtr &) const overridefinal
EBEECutValues slopeTerm_
CandidateType candidateType() const overridefinal
string const
Definition: compareJSON.py:14
#define DEFINE_EDM_PLUGIN(factory, type, name)
GsfEleTrkPtIsoCut(const edm::ParameterSet &c)