CMS 3D CMS Logo

GsfEleTrkPtIsoCut.cc
Go to the documentation of this file.
6 
8 
10 public:
12 
13  result_type operator()(const reco::GsfElectronPtr&) const final;
14 
15  double value(const reco::CandidatePtr& cand) const final;
16 
17  CandidateType candidateType() const final {
18  return ELECTRON;
19  }
20 
21 private:
22 
26 
27 
29 
30 };
31 
34  "GsfEleTrkPtIsoCut");
35 
37  CutApplicatorBase(params),
38  slopeTerm_(params,"slopeTerm"),
39  slopeStart_(params,"slopeStart"),
40  constTerm_(params,"constTerm")
41 {
42 
43 }
44 
45 
46 CutApplicatorBase::result_type
49 
50  const float isolTrkPt = cand->dr03TkSumPt();
51 
52  const float et = cand->et();
53  const float cutValue = et > slopeStart_(cand) ? slopeTerm_(cand)*(et-slopeStart_(cand)) + constTerm_(cand) : constTerm_(cand);
54  return isolTrkPt < cutValue;
55 }
56 
58 value(const reco::CandidatePtr& cand) const {
59  reco::GsfElectronPtr ele(cand);
60  return ele->dr03TkSumPt();
61 }
CandidateType candidateType() const final
EBEECutValues slopeStart_
EBEECutValues constTerm_
double et() const final
transverse energy
edm::Handle< double > rhoHandle_
float dr03TkSumPt() const
Definition: GsfElectron.h:543
EBEECutValues slopeTerm_
et
define resolution functions of each parameter
#define DEFINE_EDM_PLUGIN(factory, type, name)
GsfEleTrkPtIsoCut(const edm::ParameterSet &c)
result_type operator()(const reco::GsfElectronPtr &) const final
double value(const reco::CandidatePtr &cand) const final