CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GsfEleTrkPtIsoCut.cc
Go to the documentation of this file.
7 
9 public:
11 
12  result_type operator()(const reco::GsfElectronPtr&) const final;
13 
14  double value(const reco::CandidatePtr& cand) const final;
15 
17 
18 private:
23 
25 };
26 
28 
30  : CutApplicatorBase(params),
31  slopeTerm_(params, "slopeTerm"),
32  slopeStart_(params, "slopeStart"),
33  constTerm_(params, "constTerm"),
34  useHEEPIso_(params.getParameter<bool>("useHEEPIso")) {}
35 
37  const float isolTrkPt = useHEEPIso_ ? cand->dr03TkSumPtHEEP() : cand->dr03TkSumPt();
38 
39  const float et = cand->et();
40  const float cutValue =
41  et > slopeStart_(cand) ? slopeTerm_(cand) * (et - slopeStart_(cand)) + constTerm_(cand) : constTerm_(cand);
42  return isolTrkPt < cutValue;
43 }
44 
45 double GsfEleTrkPtIsoCut::value(const reco::CandidatePtr& cand) const {
46  reco::GsfElectronPtr ele(cand);
47  return useHEEPIso_ ? ele->dr03TkSumPtHEEP() : ele->dr03TkSumPt();
48 }
const edm::EventSetup & c
EBEECutValues slopeStart_
EBEECutValues constTerm_
double value(const reco::CandidatePtr &cand) const final
result_type operator()(const reco::GsfElectronPtr &) const final
edm::Handle< double > rhoHandle_
EBEECutValues slopeTerm_
CandidateType candidateType() const final
#define DEFINE_EDM_PLUGIN(factory, type, name)
GsfEleTrkPtIsoCut(const edm::ParameterSet &c)