CondTools
Hcal
plugins
HcalTPParametersPopConAnalyzer.cc
Go to the documentation of this file.
1
#include "
CondCore/PopCon/interface/PopConAnalyzer.h
"
2
#include "
CondTools/Hcal/interface/HcalTPParametersHandler.h
"
3
#include "
FWCore/Framework/interface/MakerMacros.h
"
4
5
class
HcalTPParametersPopConAnalyzer
:
public
popcon::PopConAnalyzer
<HcalTPParametersHandler> {
6
public
:
7
typedef
HcalTPParametersHandler
SourceHandler
;
8
9
HcalTPParametersPopConAnalyzer
(
const
edm::ParameterSet
&
pset
)
10
:
popcon
::
PopConAnalyzer
<
HcalTPParametersHandler
>(
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<HcalTPParameters>
objecthandle;
24
esetup.
get
<
HcalTPParametersRcd
>().
get
(objecthandle);
25
myDBObject
=
new
HcalTPParameters
(*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
HcalTPParameters
*
myDBObject
;
35
};
36
37
DEFINE_FWK_MODULE
(
HcalTPParametersPopConAnalyzer
);
edm::ESHandle::product
T const * product() const
Definition:
ESHandle.h:86
HcalTPParametersPopConAnalyzer::endJob
void endJob() override
Definition:
HcalTPParametersPopConAnalyzer.cc:15
HcalTPParameters
Definition:
HcalTPParameters.h:10
edm
HLT enums.
Definition:
AlignableModifier.h:19
HcalTPParametersPopConAnalyzer::m_populator
popcon::PopCon m_populator
Definition:
HcalTPParametersPopConAnalyzer.cc:31
MakerMacros.h
HcalTPParametersHandler.h
edm::EventSetup::get
T get() const
Definition:
EventSetup.h:73
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
HcalTPParametersPopConAnalyzer::myDBObject
HcalTPParameters * myDBObject
Definition:
HcalTPParametersPopConAnalyzer.cc:34
HcalTPParametersPopConAnalyzer
Definition:
HcalTPParametersPopConAnalyzer.cc:5
edm::ESHandle
Definition:
DTSurvey.h:22
HcalTPParametersRcd
Definition:
HcalTPParametersRcd.h:4
edm::ParameterSet
Definition:
ParameterSet.h:36
popcon::PopCon::write
void write(Source const &source)
Definition:
PopCon.h:108
ParameterSet
Definition:
Functions.h:16
HcalTPParametersPopConAnalyzer::m_source
SourceHandler m_source
Definition:
HcalTPParametersPopConAnalyzer.cc:32
HcalTPParametersPopConAnalyzer::write
void write()
Definition:
HcalTPParametersPopConAnalyzer.cc:28
edm::EventSetup
Definition:
EventSetup.h:57
get
#define get
HcalTPParametersPopConAnalyzer::SourceHandler
HcalTPParametersHandler SourceHandler
Definition:
HcalTPParametersPopConAnalyzer.cc:7
HcalTPParametersPopConAnalyzer::analyze
void analyze(const edm::Event &ev, const edm::EventSetup &esetup) override
Definition:
HcalTPParametersPopConAnalyzer.cc:20
popcon
Definition:
Exception.h:6
HcalTPParametersHandler::initObject
void initObject(HcalTPParameters *)
Definition:
HcalTPParametersHandler.cc:33
ev
bool ev
Definition:
Hydjet2Hadronizer.cc:95
HcalTPParametersHandler
Definition:
HcalTPParametersHandler.h:21
HcalTPParametersPopConAnalyzer::HcalTPParametersPopConAnalyzer
HcalTPParametersPopConAnalyzer(const edm::ParameterSet &pset)
Definition:
HcalTPParametersPopConAnalyzer.cc:9
popcon::PopCon
Definition:
PopCon.h:30
edm::Event
Definition:
Event.h:73
PopConAnalyzer.h
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
popcon::PopConAnalyzer< HcalTPParametersHandler >::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