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
CondTools
Hcal
plugins
HcalSiPMParametersPopConAnalyzer.cc
Go to the documentation of this file.
1
#include "
CondCore/PopCon/interface/PopConAnalyzer.h
"
2
#include "
CondTools/Hcal/interface/HcalSiPMParametersHandler.h
"
3
#include "
FWCore/Framework/interface/MakerMacros.h
"
4
5
class
HcalSiPMParametersPopConAnalyzer
:
public
popcon::PopConAnalyzer
<HcalSiPMParametersHandler> {
6
public
:
7
typedef
HcalSiPMParametersHandler
SourceHandler
;
8
9
HcalSiPMParametersPopConAnalyzer
(
const
edm::ParameterSet
&
pset
)
10
:
popcon
::
PopConAnalyzer
<
HcalSiPMParametersHandler
>(
pset
),
11
m_populator
(
pset
),
12
m_source
(
pset
.getParameter<
edm
::
ParameterSet
>(
"Source"
)),
13
m_tok
(
esConsumes
<
HcalSiPMParameters
,
HcalSiPMParametersRcd
>()) {}
14
15
private
:
16
void
endJob
()
override
{
17
m_source
.
initObject
(
myDBObject
);
18
write
();
19
}
20
21
void
analyze
(
const
edm::Event
&
ev
,
const
edm::EventSetup
& esetup)
override
{
22
//Using ES to get the data:
23
24
myDBObject
=
new
HcalSiPMParameters
(esetup.
getData
(
m_tok
));
25
}
26
27
void
write
() {
m_populator
.
write
(
m_source
); }
28
29
private
:
30
popcon::PopCon
m_populator
;
31
SourceHandler
m_source
;
32
edm::ESGetToken<HcalSiPMParameters, HcalSiPMParametersRcd>
m_tok
;
33
34
HcalSiPMParameters
*
myDBObject
;
35
};
36
37
DEFINE_FWK_MODULE
(
HcalSiPMParametersPopConAnalyzer
);
HcalSiPMParametersPopConAnalyzer::SourceHandler
HcalSiPMParametersHandler SourceHandler
Definition:
HcalSiPMParametersPopConAnalyzer.cc:7
HcalSiPMParametersHandler.h
edm
HLT enums.
Definition:
AlignableModifier.h:19
HcalSiPMParametersPopConAnalyzer::myDBObject
HcalSiPMParameters * myDBObject
Definition:
HcalSiPMParametersPopConAnalyzer.cc:34
HcalSiPMParametersHandler
Definition:
HcalSiPMParametersHandler.h:20
HcalSiPMParametersPopConAnalyzer::analyze
void analyze(const edm::Event &ev, const edm::EventSetup &esetup) override
Definition:
HcalSiPMParametersPopConAnalyzer.cc:21
HcalSiPMParametersPopConAnalyzer::write
void write()
Definition:
HcalSiPMParametersPopConAnalyzer.cc:27
MakerMacros.h
HcalSiPMParametersRcd
Definition:
HcalSiPMParametersRcd.h:7
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
HcalSiPMParametersPopConAnalyzer::endJob
void endJob() override
Definition:
HcalSiPMParametersPopConAnalyzer.cc:16
edm::ParameterSet
Definition:
ParameterSet.h:47
popcon::PopCon::write
void write(Source const &source)
Definition:
PopCon.h:107
HcalSiPMParametersPopConAnalyzer::HcalSiPMParametersPopConAnalyzer
HcalSiPMParametersPopConAnalyzer(const edm::ParameterSet &pset)
Definition:
HcalSiPMParametersPopConAnalyzer.cc:9
ParameterSet
Definition:
Functions.h:16
edm::EventSetup
Definition:
EventSetup.h:58
HcalSiPMParametersPopConAnalyzer
Definition:
HcalSiPMParametersPopConAnalyzer.cc:5
edm::ESGetToken< HcalSiPMParameters, HcalSiPMParametersRcd >
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition:
EventSetup.h:127
popcon
Definition:
Exception.h:6
ev
bool ev
Definition:
Hydjet2Hadronizer.cc:97
HcalSiPMParametersPopConAnalyzer::m_populator
popcon::PopCon m_populator
Definition:
HcalSiPMParametersPopConAnalyzer.cc:30
edm::EDConsumerBase::esConsumes
auto esConsumes()
Definition:
EDConsumerBase.h:206
popcon::PopCon
Definition:
PopCon.h:29
HcalSiPMParametersPopConAnalyzer::m_source
SourceHandler m_source
Definition:
HcalSiPMParametersPopConAnalyzer.cc:31
HcalSiPMParametersHandler::initObject
void initObject(HcalSiPMParameters *)
Definition:
HcalSiPMParametersHandler.cc:34
edm::Event
Definition:
Event.h:73
HcalSiPMParametersPopConAnalyzer::m_tok
edm::ESGetToken< HcalSiPMParameters, HcalSiPMParametersRcd > m_tok
Definition:
HcalSiPMParametersPopConAnalyzer.cc:32
HcalSiPMParameters
Definition:
HcalSiPMParameters.h:8
PopConAnalyzer.h
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
popcon::PopConAnalyzer< HcalSiPMParametersHandler >::PopConAnalyzer
PopConAnalyzer(const edm::ParameterSet &pset)
Definition:
PopConAnalyzer.h:21
popcon::PopConAnalyzer
Definition:
PopConAnalyzer.h:17
Generated for CMSSW Reference Manual by
1.8.16