Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
RecoEgamma
ElectronIdentification
plugins
cuts
GsfEleE2x5OverE5x5Cut.cc
Go to the documentation of this file.
1
#include "
PhysicsTools/SelectorUtils/interface/CutApplicatorBase.h
"
2
#include "
DataFormats/EgammaCandidates/interface/GsfElectron.h
"
3
#include "
RecoEgamma/ElectronIdentification/interface/EBEECutValues.h
"
4
5
class
GsfEleE2x5OverE5x5Cut
:
public
CutApplicatorBase
{
6
public
:
7
GsfEleE2x5OverE5x5Cut
(
const
edm::ParameterSet
& params) :
8
CutApplicatorBase
(params),
9
minE1x5OverE5x5_
(params,
"minE1x5OverE5x5"
),
10
minE2x5OverE5x5_
(params,
"minE2x5OverE5x5"
){}
11
12
result_type
operator()
(
const
reco::GsfElectronPtr
&)
const
override final;
13
14
CandidateType
candidateType
()
const
override final {
15
return
ELECTRON
;
16
}
17
18
private
:
19
EBEECutValues
minE1x5OverE5x5_
;
20
EBEECutValues
minE2x5OverE5x5_
;
21
22
23
};
24
25
DEFINE_EDM_PLUGIN
(
CutApplicatorFactory
,
26
GsfEleE2x5OverE5x5Cut
,
27
"GsfEleE2x5OverE5x5Cut"
);
28
29
CutApplicatorBase::result_type
30
GsfEleE2x5OverE5x5Cut::
31
operator()
(
const
reco::GsfElectronPtr
& cand)
const
{
32
33
return
cand->e2x5Max() >
minE2x5OverE5x5_
(cand)*cand->e5x5() ||
34
cand->e1x5() >
minE1x5OverE5x5_
(cand)*cand->e5x5();
35
36
}
CutApplicatorBase::ELECTRON
Definition:
CutApplicatorBase.h:48
GsfEleE2x5OverE5x5Cut::operator()
result_type operator()(const reco::GsfElectronPtr &) const overridefinal
Definition:
GsfEleE2x5OverE5x5Cut.cc:31
GsfEleE2x5OverE5x5Cut
Definition:
GsfEleE2x5OverE5x5Cut.cc:5
GsfEleE2x5OverE5x5Cut::minE1x5OverE5x5_
EBEECutValues minE1x5OverE5x5_
Definition:
GsfEleE2x5OverE5x5Cut.cc:19
edm::Ptr< reco::GsfElectron >
EBEECutValues
Definition:
EBEECutValues.h:12
GsfEleE2x5OverE5x5Cut::GsfEleE2x5OverE5x5Cut
GsfEleE2x5OverE5x5Cut(const edm::ParameterSet ¶ms)
Definition:
GsfEleE2x5OverE5x5Cut.cc:7
edmplugin::PluginFactory
Definition:
PluginFactory.h:31
GsfElectron.h
CutApplicatorBase
Definition:
CutApplicatorBase.h:45
EBEECutValues.h
compareJSON.const
string const
Definition:
compareJSON.py:14
CutApplicatorBase::CandidateType
CandidateType
Definition:
CutApplicatorBase.h:47
edm::ParameterSet
Definition:
ParameterSet.h:35
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition:
PluginFactory.h:101
CutApplicatorBase.h
GsfEleE2x5OverE5x5Cut::minE2x5OverE5x5_
EBEECutValues minE2x5OverE5x5_
Definition:
GsfEleE2x5OverE5x5Cut.cc:20
GsfEleE2x5OverE5x5Cut::candidateType
CandidateType candidateType() const overridefinal
Definition:
GsfEleE2x5OverE5x5Cut.cc:14
Generated for CMSSW Reference Manual by
1.8.5