Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
virtual
void
endJob
()
override
19
{
20
m_source
.
initObject
(
myDBObject
);
21
write
();
22
}
23
24
virtual
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
HcalLutMetadataPopConAnalyzer::analyze
virtual void analyze(const edm::Event &ev, const edm::EventSetup &esetup) override
Definition:
HcalLutMetadataPopConAnalyzer.cc:24
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
TrackValidation_cff.pset
tuple pset
Definition:
TrackValidation_cff.py:374
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:124
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
edm::EventSetup
Definition:
EventSetup.h:45
HcalLutMetadataPopConAnalyzer::endJob
virtual void endJob() override
Definition:
HcalLutMetadataPopConAnalyzer.cc:18
HcalLutMetadataPopConAnalyzer::write
void write()
Definition:
HcalLutMetadataPopConAnalyzer.cc:33
HcalLutMetadata
Definition:
HcalLutMetadata.h:15
edm::EventSetup::get
const T & get() const
Definition:
EventSetup.h:56
edm::ESHandle::product
T const * product() const
Definition:
ESHandle.h:86
HcalLutMetadataHandler.h
HcalLutMetadataRcd
Definition:
HcalLutMetadataRcd.h:25
HcalLutMetadataHandler::initObject
void initObject(HcalLutMetadata *)
Definition:
HcalLutMetadataHandler.cc:45
HcalLutMetadataPopConAnalyzer::m_source
SourceHandler m_source
Definition:
HcalLutMetadataPopConAnalyzer.cc:37
edm::ParameterSet
Definition:
ParameterSet.h:36
popcon::PopConAnalyzer< HcalLutMetadataHandler >::PopConAnalyzer
PopConAnalyzer(const edm::ParameterSet &pset)
Definition:
PopConAnalyzer.h:23
edm::Event
Definition:
Event.h:65
Generated for CMSSW Reference Manual by
1.8.5