CMS 3D CMS Logo

GsfEleDEtaInSeedCut.cc
Go to the documentation of this file.
3 
5 public:
8  _dEtaInSeedCutValueEB(c.getParameter<double>("dEtaInSeedCutValueEB")),
9  _dEtaInSeedCutValueEE(c.getParameter<double>("dEtaInSeedCutValueEE")),
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 
24 //a little temporary 72X fix
25 float dEtaInSeed(const reco::GsfElectronPtr& ele) {
26  return ele->superCluster().isNonnull() && ele->superCluster()->seed().isNonnull()
27  ? ele->deltaEtaSuperClusterTrackAtVtx() - ele->superCluster()->eta() + ele->superCluster()->seed()->eta()
29 }
30 
32  const float dEtaInSeedCutValue =
34  // return std::abs(cand->deltaEtaSeedClusterTrackAtVtx()) < dEtaInSeedCutValue;
35  return std::abs(dEtaInSeed(cand)) < dEtaInSeedCutValue;
36 }
37 
40  return std::abs(dEtaInSeed(ele));
41 }
GsfEleDEtaInSeedCut::_barrelCutOff
const double _barrelCutOff
Definition: GsfEleDEtaInSeedCut.cc:19
watchdog.const
const
Definition: watchdog.py:83
GsfEleDEtaInSeedCut::operator()
result_type operator()(const reco::GsfElectronPtr &) const final
Definition: GsfEleDEtaInSeedCut.cc:31
GsfEleDEtaInSeedCut::value
double value(const reco::CandidatePtr &cand) const final
Definition: GsfEleDEtaInSeedCut.cc:38
candidate_functions::CandidateCut::result_type
bool result_type
Definition: CandidateCut.h:11
GsfEleDEtaInSeedCut::GsfEleDEtaInSeedCut
GsfEleDEtaInSeedCut(const edm::ParameterSet &c)
Definition: GsfEleDEtaInSeedCut.cc:6
dEtaInSeed
float dEtaInSeed(const reco::GsfElectronPtr &ele)
Definition: GsfEleDEtaInSeedCut.cc:25
GsfElectron.h
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition: PluginFactory.h:124
GsfEleDEtaInSeedCut
Definition: GsfEleDEtaInSeedCut.cc:4
edm::ParameterSet
Definition: ParameterSet.h:47
reco::GsfElectron::deltaEtaSuperClusterTrackAtVtx
float deltaEtaSuperClusterTrackAtVtx() const
Definition: GsfElectron.h:233
CutApplicatorBase::CandidateType
CandidateType
Definition: CutApplicatorBase.h:47
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
GsfEleDEtaInSeedCut::candidateType
CandidateType candidateType() const final
Definition: GsfEleDEtaInSeedCut.cc:16
edmplugin::PluginFactory
Definition: PluginFactory.h:34
edm::Ref::isNonnull
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:238
cand
Definition: decayParser.h:32
GsfEleDEtaInSeedCut::_dEtaInSeedCutValueEB
const double _dEtaInSeedCutValueEB
Definition: GsfEleDEtaInSeedCut.cc:19
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
GsfEleDEtaInSeedCut::_dEtaInSeedCutValueEE
const double _dEtaInSeedCutValueEE
Definition: GsfEleDEtaInSeedCut.cc:19
edm::Ptr< reco::GsfElectron >
CutApplicatorBase
Definition: CutApplicatorBase.h:45
reco::GsfElectron::superCluster
SuperClusterRef superCluster() const override
reference to a SuperCluster
Definition: GsfElectron.h:163
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
CutApplicatorBase.h
CutApplicatorBase::ELECTRON
Definition: CutApplicatorBase.h:47