test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GsfEleFull5x5SigmaIEtaIEtaCut.cc
Go to the documentation of this file.
3 
5 public:
7 
8  result_type operator()(const reco::GsfElectronPtr&) const override final;
9 
10  double value(const reco::CandidatePtr& cand) const override final;
11 
12  CandidateType candidateType() const override final {
13  return ELECTRON;
14  }
15 
16 private:
20 
21 };
22 
25  "GsfEleFull5x5SigmaIEtaIEtaCut");
26 
29  _full5x5SigmaIEtaIEtaCutValueEB(c.getParameter<double>("full5x5SigmaIEtaIEtaCutValueEB")),
30  _full5x5SigmaIEtaIEtaCutValueEE(c.getParameter<double>("full5x5SigmaIEtaIEtaCutValueEE")),
31  _barrelCutOff(c.getParameter<double>("barrelCutOff")) {
32 
33 }
34 
35 CutApplicatorBase::result_type
37 operator()(const reco::GsfElectronPtr& cand) const{
38 
39  // Figure out the cut value
40  const float full5x5SigmaIEtaIEtaCutValue =
41  ( std::abs(cand->superCluster()->position().eta()) < _barrelCutOff ?
43 
44  // Apply the cut and return the result
45  return cand->full5x5_sigmaIetaIeta() < full5x5SigmaIEtaIEtaCutValue;
46 }
47 
49 value(const reco::CandidatePtr& cand) const {
50  reco::GsfElectronPtr ele(cand);
51  return ele->full5x5_sigmaIetaIeta();
52 }
result_type operator()(const reco::GsfElectronPtr &) const overridefinal
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
CandidateType candidateType() const overridefinal
string const
Definition: compareJSON.py:14
double value(const reco::CandidatePtr &cand) const overridefinal
#define DEFINE_EDM_PLUGIN(factory, type, name)
GsfEleFull5x5SigmaIEtaIEtaCut(const edm::ParameterSet &c)