CMS 3D CMS Logo

GsfEleSigmaIEtaIEtaCut.cc
Go to the documentation of this file.
3 
5 public:
8  _sigmaIEtaIEtaCutValueEB(c.getParameter<double>("sigmaIEtaIEtaCutValueEB")),
9  _sigmaIEtaIEtaCutValueEE(c.getParameter<double>("sigmaIEtaIEtaCutValueEE")),
10  _barrelCutOff(c.getParameter<double>("barrelCutOff")) {}
11 
12  result_type operator()(const reco::GsfElectronPtr&) const final;
13 
14  double value(const reco::CandidatePtr& cand) const final;
15 
17 
18 private:
20 };
21 
23 
25  const float sigmaIEtaIEtaCutValue =
26  (std::abs(cand->superCluster()->position().eta()) < _barrelCutOff ? _sigmaIEtaIEtaCutValueEB
28  return cand->sigmaIetaIeta() < sigmaIEtaIEtaCutValue;
29 }
30 
33  return ele->sigmaIetaIeta();
34 }
GsfEleSigmaIEtaIEtaCut::candidateType
CandidateType candidateType() const final
Definition: GsfEleSigmaIEtaIEtaCut.cc:16
watchdog.const
const
Definition: watchdog.py:83
candidate_functions::CandidateCut::result_type
bool result_type
Definition: CandidateCut.h:11
GsfEleSigmaIEtaIEtaCut::_sigmaIEtaIEtaCutValueEB
const double _sigmaIEtaIEtaCutValueEB
Definition: GsfEleSigmaIEtaIEtaCut.cc:19
GsfEleSigmaIEtaIEtaCut::_barrelCutOff
const double _barrelCutOff
Definition: GsfEleSigmaIEtaIEtaCut.cc:19
GsfEleSigmaIEtaIEtaCut::operator()
result_type operator()(const reco::GsfElectronPtr &) const final
Definition: GsfEleSigmaIEtaIEtaCut.cc:24
GsfEleSigmaIEtaIEtaCut::GsfEleSigmaIEtaIEtaCut
GsfEleSigmaIEtaIEtaCut(const edm::ParameterSet &c)
Definition: GsfEleSigmaIEtaIEtaCut.cc:6
GsfElectron.h
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition: PluginFactory.h:124
GsfEleSigmaIEtaIEtaCut::_sigmaIEtaIEtaCutValueEE
const double _sigmaIEtaIEtaCutValueEE
Definition: GsfEleSigmaIEtaIEtaCut.cc:19
edm::ParameterSet
Definition: ParameterSet.h:47
CutApplicatorBase::CandidateType
CandidateType
Definition: CutApplicatorBase.h:47
edmplugin::PluginFactory
Definition: PluginFactory.h:34
cand
Definition: decayParser.h:32
edm::Ptr< reco::GsfElectron >
reco::GsfElectron::sigmaIetaIeta
float sigmaIetaIeta() const
Definition: GsfElectron.h:418
CutApplicatorBase
Definition: CutApplicatorBase.h:45
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
CutApplicatorBase.h
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
GsfEleSigmaIEtaIEtaCut
Definition: GsfEleSigmaIEtaIEtaCut.cc:4
GsfEleSigmaIEtaIEtaCut::value
double value(const reco::CandidatePtr &cand) const final
Definition: GsfEleSigmaIEtaIEtaCut.cc:31
CutApplicatorBase::ELECTRON
Definition: CutApplicatorBase.h:47