Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
d
e
f
l
m
o
p
s
t
u
v
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
RecoEgamma
EgammaTools
interface
EBEECutValues.h
Go to the documentation of this file.
1
#ifndef EgammaAnalysis_ElectronTools_EBEECutValues_h
2
#define EgammaAnalysis_ElectronTools_EBEECutValues_h
3
4
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
5
#include "
DataFormats/Common/interface/Ptr.h
"
6
7
template
<
typename
T>
8
class
EBEECutValuesT
{
9
private
:
10
T
barrel_
;
11
T
endcap_
;
12
//this is currrently used to identify if object is barrel or endcap but may change
13
const
double
barrelCutOff_
= 1.479;
14
15
public
:
16
EBEECutValuesT
(
const
edm::ParameterSet
&
params
,
const
std::string
&
name
)
17
:
barrel_
(
params
.getParameter<
T
>(
name
+
"EB"
)),
endcap_
(
params
.getParameter<
T
>(
name
+
"EE"
)) {}
18
template
<
typename
CandType>
19
T
operator()
(
const
edm::Ptr<CandType>
&
cand
)
const
{
20
return
isBarrel
(
cand
) ?
barrel_
:
endcap_
;
21
}
22
23
private
:
24
template
<
typename
CandType>
25
const
bool
isBarrel
(
const
edm::Ptr<CandType>
&
cand
)
const
{
26
return
std::abs
(
cand
->superCluster()->position().eta()) <
barrelCutOff_
;
27
}
28
};
29
30
typedef
EBEECutValuesT<double>
EBEECutValues
;
31
typedef
EBEECutValuesT<int>
EBEECutValuesInt
;
32
33
#endif
EBEECutValuesT::EBEECutValuesT
EBEECutValuesT(const edm::ParameterSet ¶ms, const std::string &name)
Definition:
EBEECutValues.h:16
CalibrationSummaryClient_cfi.params
params
Definition:
CalibrationSummaryClient_cfi.py:14
EBEECutValues
EBEECutValuesT< double > EBEECutValues
Definition:
EBEECutValues.h:30
EBEECutValuesT::barrelCutOff_
const double barrelCutOff_
Definition:
EBEECutValues.h:13
EBEECutValuesInt
EBEECutValuesT< int > EBEECutValuesInt
Definition:
EBEECutValues.h:31
EBEECutValuesT::operator()
T operator()(const edm::Ptr< CandType > &cand) const
Definition:
EBEECutValues.h:19
edm::ParameterSet
Definition:
ParameterSet.h:47
cand
Definition:
decayParser.h:32
Ptr.h
EBEECutValuesT::endcap_
T endcap_
Definition:
EBEECutValues.h:11
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::Ptr
Definition:
AssociationVector.h:31
T
long double T
Definition:
Basic3DVectorLD.h:48
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
EBEECutValuesT
Definition:
EBEECutValues.h:8
EBEECutValuesT::isBarrel
const bool isBarrel(const edm::Ptr< CandType > &cand) const
Definition:
EBEECutValues.h:25
funct::abs
Abs< T >::type abs(const T &t)
Definition:
Abs.h:22
ParameterSet.h
EBEECutValuesT::barrel_
T barrel_
Definition:
EBEECutValues.h:10
Generated for CMSSW Reference Manual by
1.8.16