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 
27 
29 
30 };
31 
34  "GsfEleTrkPtIsoCut");
35 
37  CutApplicatorBase(params),
38  slopeTerm_(params,"slopeTerm"),
39  slopeStart_(params,"slopeStart"),
40  constTerm_(params,"constTerm"),
41  useHEEPIso_(params.getParameter<bool>("useHEEPIso"))
42 {
43 
44 }
45 
46 
50 
51  const float isolTrkPt = useHEEPIso_ ? cand->dr03TkSumPtHEEP() : cand->dr03TkSumPt();
52 
53  const float et = cand->et();
54  const float cutValue = et > slopeStart_(cand) ? slopeTerm_(cand)*(et-slopeStart_(cand)) + constTerm_(cand) : constTerm_(cand);
55  return isolTrkPt < cutValue;
56 }
57 
59 value(const reco::CandidatePtr& cand) const {
60  reco::GsfElectronPtr ele(cand);
61  return useHEEPIso_ ? ele->dr03TkSumPtHEEP() : ele->dr03TkSumPt();
62 }
CandidateType candidateType() const final
EBEECutValues slopeStart_
EBEECutValues constTerm_
float dr03TkSumPtHEEP() const
Definition: GsfElectron.h:553
double et() const final
transverse energy
edm::Handle< double > rhoHandle_
float dr03TkSumPt() const
Definition: GsfElectron.h:552
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