CondTools
Hcal
plugins
CastorGainWidthsPopConAnalyzer.cc
Go to the documentation of this file.
1
#include "
CondCore/PopCon/interface/PopConAnalyzer.h
"
2
#include "
CondTools/Hcal/interface/CastorGainWidthsHandler.h
"
3
#include "
FWCore/Framework/interface/MakerMacros.h
"
4
5
//typedef popcon::PopConAnalyzer<CastorGainWidthsHandler> CastorGainWidthsPopConAnalyzer;
6
7
class
CastorGainWidthsPopConAnalyzer
:
public
popcon::PopConAnalyzer
<CastorGainWidthsHandler> {
8
public
:
9
typedef
CastorGainWidthsHandler
SourceHandler
;
10
11
CastorGainWidthsPopConAnalyzer
(
const
edm::ParameterSet
&
pset
)
12
:
popcon
::
PopConAnalyzer
<
CastorGainWidthsHandler
>(
pset
),
13
m_populator
(
pset
),
14
m_source
(
pset
.getParameter<
edm
::
ParameterSet
>(
"Source"
)) {}
15
16
private
:
17
void
endJob
()
override
{
18
m_source
.
initObject
(
myDBObject
);
19
write
();
20
}
21
22
void
analyze
(
const
edm::Event
&
ev
,
const
edm::EventSetup
& esetup)
override
{
23
//Using ES to get the data:
24
25
edm::ESHandle<CastorGainWidths>
objecthandle;
26
esetup.
get
<
CastorGainWidthsRcd
>().
get
(objecthandle);
27
myDBObject
=
new
CastorGainWidths
(*objecthandle.
product
());
28
}
29
30
void
write
() {
m_populator
.
write
(
m_source
); }
31
32
private
:
33
popcon::PopCon
m_populator
;
34
SourceHandler
m_source
;
35
36
CastorGainWidths
*
myDBObject
;
37
};
38
39
DEFINE_FWK_MODULE
(
CastorGainWidthsPopConAnalyzer
);
CastorGainWidthsPopConAnalyzer::write
void write()
Definition:
CastorGainWidthsPopConAnalyzer.cc:30
edm::ESHandle::product
T const * product() const
Definition:
ESHandle.h:86
CastorGainWidthsPopConAnalyzer::m_populator
popcon::PopCon m_populator
Definition:
CastorGainWidthsPopConAnalyzer.cc:33
CastorGainWidths
Definition:
CastorGainWidths.h:18
CastorGainWidthsHandler.h
CastorGainWidthsPopConAnalyzer::analyze
void analyze(const edm::Event &ev, const edm::EventSetup &esetup) override
Definition:
CastorGainWidthsPopConAnalyzer.cc:22
edm
HLT enums.
Definition:
AlignableModifier.h:19
MakerMacros.h
edm::EventSetup::get
T get() const
Definition:
EventSetup.h:80
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
CastorGainWidthsPopConAnalyzer::myDBObject
CastorGainWidths * myDBObject
Definition:
CastorGainWidthsPopConAnalyzer.cc:36
CastorGainWidthsPopConAnalyzer::CastorGainWidthsPopConAnalyzer
CastorGainWidthsPopConAnalyzer(const edm::ParameterSet &pset)
Definition:
CastorGainWidthsPopConAnalyzer.cc:11
edm::ESHandle
Definition:
DTSurvey.h:22
edm::ParameterSet
Definition:
ParameterSet.h:47
CastorGainWidthsPopConAnalyzer::m_source
SourceHandler m_source
Definition:
CastorGainWidthsPopConAnalyzer.cc:34
popcon::PopCon::write
void write(Source const &source)
Definition:
PopCon.h:107
ParameterSet
Definition:
Functions.h:16
edm::EventSetup
Definition:
EventSetup.h:57
CastorGainWidthsPopConAnalyzer::endJob
void endJob() override
Definition:
CastorGainWidthsPopConAnalyzer.cc:17
get
#define get
popcon
Definition:
Exception.h:6
CastorGainWidthsHandler
Definition:
CastorGainWidthsHandler.h:24
ev
bool ev
Definition:
Hydjet2Hadronizer.cc:95
popcon::PopCon
Definition:
PopCon.h:29
CastorGainWidthsHandler::initObject
void initObject(CastorGainWidths *)
Definition:
CastorGainWidthsHandler.cc:36
edm::Event
Definition:
Event.h:73
PopConAnalyzer.h
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
CastorGainWidthsRcd
Definition:
CastorGainWidthsRcd.h:24
CastorGainWidthsPopConAnalyzer::SourceHandler
CastorGainWidthsHandler SourceHandler
Definition:
CastorGainWidthsPopConAnalyzer.cc:9
popcon::PopConAnalyzer< CastorGainWidthsHandler >::PopConAnalyzer
PopConAnalyzer(const edm::ParameterSet &pset)
Definition:
PopConAnalyzer.h:21
CastorGainWidthsPopConAnalyzer
Definition:
CastorGainWidthsPopConAnalyzer.cc:7
popcon::PopConAnalyzer
Definition:
PopConAnalyzer.h:17
Generated for CMSSW Reference Manual by
1.8.16