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
PhysicsTools
PatAlgos
interface
KinResolutionsLoader.h
Go to the documentation of this file.
1
#ifndef PhysicsTools_PatAlgos_KinResolutionsLoader_h
2
#define PhysicsTools_PatAlgos_KinResolutionsLoader_h
3
4
#include "
DataFormats/PatCandidates/interface/PATObject.h
"
5
6
#include "
FWCore/Framework/interface/Event.h
"
7
#include "
FWCore/Framework/interface/EventSetup.h
"
8
#include "
FWCore/Framework/interface/ESHandle.h
"
9
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
10
11
#include "
FWCore/ParameterSet/interface/ConfigurationDescriptions.h
"
12
#include "
FWCore/ParameterSet/interface/ParameterSetDescription.h
"
13
14
#include "
PhysicsTools/PatAlgos/interface/KinematicResolutionProvider.h
"
15
16
namespace
pat
{
17
namespace
helper
{
18
class
KinResolutionsLoader
{
19
public
:
21
KinResolutionsLoader
() {}
22
24
KinResolutionsLoader
(
const
edm::ParameterSet
&iConfig);
25
27
bool
enabled
()
const
{
return
!
patlabels_
.empty(); }
28
30
void
newEvent
(
const
edm::Event
&
event
,
const
edm::EventSetup
&
setup
);
31
33
template
<
typename
T>
34
void
setResolutions
(
pat::PATObject<T>
&
obj
)
const
;
35
37
static
void
fillDescription
(
edm::ParameterSetDescription
&iDesc);
38
39
private
:
41
std::vector<std::string>
patlabels_
;
43
std::vector<std::string>
eslabels_
;
45
std::vector<edm::ESHandle<KinematicResolutionProvider> >
handles_
;
46
};
// class
47
48
template
<
typename
T>
49
void
KinResolutionsLoader::setResolutions
(
pat::PATObject<T>
&
obj
)
const
{
50
for
(
size_t
i
= 0,
n
=
patlabels_
.size();
i
<
n
; ++
i
) {
51
obj
.setKinResolution(
handles_
[
i
]->getResolution(
obj
),
patlabels_
[
i
]);
52
}
53
}
54
55
}
// namespace helper
56
}
// namespace pat
57
58
#endif
ConfigurationDescriptions.h
mps_fire.i
i
Definition:
mps_fire.py:428
dqmiodumpmetadata.n
n
Definition:
dqmiodumpmetadata.py:28
pat::helper::KinResolutionsLoader::KinResolutionsLoader
KinResolutionsLoader()
Empty constructor.
Definition:
KinResolutionsLoader.h:21
ESHandle.h
edm::ParameterSetDescription
Definition:
ParameterSetDescription.h:52
pat::helper::KinResolutionsLoader::eslabels_
std::vector< std::string > eslabels_
Labels of the KinematicResolutionProvider in the EventSetup.
Definition:
KinResolutionsLoader.h:43
pat::helper::KinResolutionsLoader::patlabels_
std::vector< std::string > patlabels_
Labels of the resolutions in PAT.
Definition:
KinResolutionsLoader.h:41
singleTopDQM_cfi.setup
setup
Definition:
singleTopDQM_cfi.py:37
pat::helper::KinResolutionsLoader::enabled
bool enabled() const
'true' if this there is at least one efficiency configured
Definition:
KinResolutionsLoader.h:27
pat::PATObject
Templated PAT object container.
Definition:
PATObject.h:43
pat::helper::KinResolutionsLoader
Definition:
KinResolutionsLoader.h:18
pat::helper::KinResolutionsLoader::handles_
std::vector< edm::ESHandle< KinematicResolutionProvider > > handles_
Handles to the EventSetup.
Definition:
KinResolutionsLoader.h:45
ParameterSetDescription.h
KinematicResolutionProvider.h
getGTfromDQMFile.obj
obj
Definition:
getGTfromDQMFile.py:32
pat::helper::KinResolutionsLoader::setResolutions
void setResolutions(pat::PATObject< T > &obj) const
Sets the efficiencies for this object, using the reference to the original objects.
Definition:
KinResolutionsLoader.h:49
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
pat::helper::KinResolutionsLoader::fillDescription
static void fillDescription(edm::ParameterSetDescription &iDesc)
Method for documentation and validation of PSet.
Definition:
KinResolutionsLoader.cc:34
helper
Definition:
helper.py:1
edm::EventSetup
Definition:
EventSetup.h:58
pat
Definition:
HeavyIon.h:7
pat::helper::KinResolutionsLoader::newEvent
void newEvent(const edm::Event &event, const edm::EventSetup &setup)
To be called for each new event, reads in the EventSetup object.
Definition:
KinResolutionsLoader.cc:27
EventSetup.h
ParameterSet.h
event
Definition:
event.py:1
edm::Event
Definition:
Event.h:73
PATObject.h
Generated for CMSSW Reference Manual by
1.8.16