CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GsfEleE2x5OverE5x5Cut.cc
Go to the documentation of this file.
4 
6 public:
8  CutApplicatorBase(params),
9  minE1x5OverE5x5_(params,"minE1x5OverE5x5"),
10  minE2x5OverE5x5_(params,"minE2x5OverE5x5"){}
11 
12  result_type operator()(const reco::GsfElectronPtr&) const override final;
13 
14  double value(const reco::CandidatePtr& cand) const override final;
15 
16  CandidateType candidateType() const override final {
17  return ELECTRON;
18  }
19 
20 private:
23 
24 
25 };
26 
29  "GsfEleE2x5OverE5x5Cut");
30 
31 CutApplicatorBase::result_type
33 operator()(const reco::GsfElectronPtr& cand) const{
34 
35  return cand->e2x5Max() > minE2x5OverE5x5_(cand)*cand->e5x5() ||
36  cand->e1x5() > minE1x5OverE5x5_(cand)*cand->e5x5();
37 
38 }
39 
41  reco::GsfElectronPtr ele(cand);
42  // here return the ratio since it is a decent encoding of the value of
43  // both variables
44  return ele->e2x5Max()/ele->e1x5();
45 }
result_type operator()(const reco::GsfElectronPtr &) const overridefinal
GsfEleE2x5OverE5x5Cut(const edm::ParameterSet &params)
edm::Ptr< Candidate > CandidatePtr
persistent reference to an object in a collection of Candidate objects
Definition: CandidateFwd.h:25
string const
Definition: compareJSON.py:14
double value(const reco::CandidatePtr &cand) const overridefinal
#define DEFINE_EDM_PLUGIN(factory, type, name)
CandidateType candidateType() const overridefinal