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
14
private
:
15
void
endJob
()
override
{
16
m_source
.
initObject
(
myDBObject
);
17
write
();
18
}
19
20
void
analyze
(
const
edm::Event
&
ev
,
const
edm::EventSetup
& esetup)
override
{
21
//Using ES to get the data:
22
23
edm::ESHandle<HcalSiPMParameters>
objecthandle;
24
esetup.
get
<
HcalSiPMParametersRcd
>().
get
(objecthandle);
25
myDBObject
=
new
HcalSiPMParameters
(*objecthandle.
product
());
26
}
27
28
void
write
() {
m_populator
.
write
(
m_source
); }
29
30
private
:
31
popcon::PopCon
m_populator
;
32
SourceHandler
m_source
;
33
34
HcalSiPMParameters
*
myDBObject
;
35
};
36
37
DEFINE_FWK_MODULE
(
HcalSiPMParametersPopConAnalyzer
);
HcalSiPMParametersPopConAnalyzer::SourceHandler
HcalSiPMParametersHandler SourceHandler
Definition:
HcalSiPMParametersPopConAnalyzer.cc:7
edm::ESHandle::product
T const * product() const
Definition:
ESHandle.h:86
HcalSiPMParametersHandler.h
edm
HLT enums.
Definition:
AlignableModifier.h:19
HcalSiPMParametersPopConAnalyzer::myDBObject
HcalSiPMParameters * myDBObject
Definition:
HcalSiPMParametersPopConAnalyzer.cc:34
HcalSiPMParametersHandler
Definition:
HcalSiPMParametersHandler.h:21
HcalSiPMParametersPopConAnalyzer::analyze
void analyze(const edm::Event &ev, const edm::EventSetup &esetup) override
Definition:
HcalSiPMParametersPopConAnalyzer.cc:20
HcalSiPMParametersPopConAnalyzer::write
void write()
Definition:
HcalSiPMParametersPopConAnalyzer.cc:28
MakerMacros.h
HcalSiPMParametersRcd
Definition:
HcalSiPMParametersRcd.h:7
edm::EventSetup::get
T get() const
Definition:
EventSetup.h:73
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
HcalSiPMParametersPopConAnalyzer::endJob
void endJob() override
Definition:
HcalSiPMParametersPopConAnalyzer.cc:15
edm::ESHandle
Definition:
DTSurvey.h:22
edm::ParameterSet
Definition:
ParameterSet.h:36
popcon::PopCon::write
void write(Source const &source)
Definition:
PopCon.h:108
HcalSiPMParametersPopConAnalyzer::HcalSiPMParametersPopConAnalyzer
HcalSiPMParametersPopConAnalyzer(const edm::ParameterSet &pset)
Definition:
HcalSiPMParametersPopConAnalyzer.cc:9
ParameterSet
Definition:
Functions.h:16
edm::EventSetup
Definition:
EventSetup.h:57
HcalSiPMParametersPopConAnalyzer
Definition:
HcalSiPMParametersPopConAnalyzer.cc:5
get
#define get
popcon
Definition:
Exception.h:6
ev
bool ev
Definition:
Hydjet2Hadronizer.cc:95
HcalSiPMParametersPopConAnalyzer::m_populator
popcon::PopCon m_populator
Definition:
HcalSiPMParametersPopConAnalyzer.cc:31
popcon::PopCon
Definition:
PopCon.h:30
HcalSiPMParametersPopConAnalyzer::m_source
SourceHandler m_source
Definition:
HcalSiPMParametersPopConAnalyzer.cc:32
HcalSiPMParametersHandler::initObject
void initObject(HcalSiPMParameters *)
Definition:
HcalSiPMParametersHandler.cc:34
edm::Event
Definition:
Event.h:73
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