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