Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
()
19
{
20
m_source
.
initObject
(
myDBObject
);
21
write
();
22
}
23
24
virtual
void
analyze
(
const
edm::Event
& ev,
const
edm::EventSetup
& esetup)
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
HcalLutMetadataPopConAnalyzer::m_populator
popcon::PopCon m_populator
Definition:
HcalLutMetadataPopConAnalyzer.cc:36
popcon::PopCon::write
void write(Source const &source)
Definition:
PopCon.h:125
popcon::PopCon
Definition:
PopCon.h:43
HcalLutMetadataPopConAnalyzer::analyze
virtual void analyze(const edm::Event &ev, const edm::EventSetup &esetup)
Definition:
HcalLutMetadataPopConAnalyzer.cc:24
HcalLutMetadataPopConAnalyzer::SourceHandler
HcalLutMetadataHandler SourceHandler
Definition:
HcalLutMetadataPopConAnalyzer.cc:10
edm::ESHandle< HcalLutMetadata >
HcalLutMetadataPopConAnalyzer::myDBObject
HcalLutMetadata * myDBObject
Definition:
HcalLutMetadataPopConAnalyzer.cc:39
HcalLutMetadataPopConAnalyzer::endJob
virtual void endJob()
Definition:
HcalLutMetadataPopConAnalyzer.cc:18
edm::EventSetup
Definition:
EventSetup.h:44
CrabTask.pset
tuple pset
Definition:
CrabTask.py:85
HcalLutMetadataPopConAnalyzer::write
void write()
Definition:
HcalLutMetadataPopConAnalyzer.cc:33
HcalLutMetadata
Definition:
HcalLutMetadata.h:13
edm::EventSetup::get
const T & get() const
Definition:
EventSetup.h:55
edm::ESHandle::product
T const * product() const
Definition:
ESHandle.h:62
HcalLutMetadataHandler.h
HcalLutMetadataRcd
Definition:
HcalLutMetadataRcd.h:24
HcalLutMetadataHandler::initObject
void initObject(HcalLutMetadata *)
Definition:
HcalLutMetadataHandler.cc:45
HcalLutMetadataPopConAnalyzer::m_source
SourceHandler m_source
Definition:
HcalLutMetadataPopConAnalyzer.cc:37
edm::ParameterSet
Definition:
ParameterSet.h:31
popcon::PopConAnalyzer< HcalLutMetadataHandler >::PopConAnalyzer
PopConAnalyzer(const edm::ParameterSet &pset)
Definition:
PopConAnalyzer.h:23
edm::Event
Definition:
Event.h:49
Generated for CMSSW Reference Manual by
1.8.5