CMS 3D CMS Logo

HcalFrontEndMapPopConAnalyzer.cc
Go to the documentation of this file.
4 
5 class HcalFrontEndMapPopConAnalyzer : public popcon::PopConAnalyzer<HcalFrontEndMapHandler> {
6 public:
8 
12  m_source(pset.getParameter<edm::ParameterSet>("Source")) {}
13 
14 private:
15  void endJob() override {
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<HcalFrontEndMap> objecthandle;
24  esetup.get<HcalFrontEndMapRcd>().get(objecthandle);
25  myDBObject = new HcalFrontEndMap(*objecthandle.product());
26  }
27 
29 
30 private:
33 
35 };
36 
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
HcalFrontEndMapPopConAnalyzer
Definition: HcalFrontEndMapPopConAnalyzer.cc:5
edm
HLT enums.
Definition: AlignableModifier.h:19
HcalFrontEndMapPopConAnalyzer::myDBObject
HcalFrontEndMap * myDBObject
Definition: HcalFrontEndMapPopConAnalyzer.cc:34
MakerMacros.h
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
HcalFrontEndMapHandler.h
HcalFrontEndMapPopConAnalyzer::SourceHandler
HcalFrontEndMapHandler SourceHandler
Definition: HcalFrontEndMapPopConAnalyzer.cc:7
edm::ESHandle
Definition: DTSurvey.h:22
edm::ParameterSet
Definition: ParameterSet.h:36
popcon::PopCon::write
void write(Source const &source)
Definition: PopCon.h:108
ParameterSet
Definition: Functions.h:16
HcalFrontEndMapPopConAnalyzer::analyze
void analyze(const edm::Event &ev, const edm::EventSetup &esetup) override
Definition: HcalFrontEndMapPopConAnalyzer.cc:20
HcalFrontEndMapPopConAnalyzer::HcalFrontEndMapPopConAnalyzer
HcalFrontEndMapPopConAnalyzer(const edm::ParameterSet &pset)
Definition: HcalFrontEndMapPopConAnalyzer.cc:9
HcalFrontEndMapHandler::initObject
void initObject(HcalFrontEndMap *)
Definition: HcalFrontEndMapHandler.cc:36
HcalFrontEndMapRcd
Definition: HcalFrontEndMapRcd.h:7
edm::EventSetup
Definition: EventSetup.h:57
get
#define get
HcalFrontEndMapPopConAnalyzer::endJob
void endJob() override
Definition: HcalFrontEndMapPopConAnalyzer.cc:15
popcon
Definition: Exception.h:6
HcalFrontEndMapPopConAnalyzer::write
void write()
Definition: HcalFrontEndMapPopConAnalyzer.cc:28
ev
bool ev
Definition: Hydjet2Hadronizer.cc:95
HcalFrontEndMapPopConAnalyzer::m_populator
popcon::PopCon m_populator
Definition: HcalFrontEndMapPopConAnalyzer.cc:31
HcalFrontEndMap
Definition: HcalFrontEndMap.h:23
popcon::PopCon
Definition: PopCon.h:30
edm::Event
Definition: Event.h:73
PopConAnalyzer.h
HcalFrontEndMapPopConAnalyzer::m_source
SourceHandler m_source
Definition: HcalFrontEndMapPopConAnalyzer.cc:32
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
HcalFrontEndMapHandler
Definition: HcalFrontEndMapHandler.h:21
popcon::PopConAnalyzer< HcalFrontEndMapHandler >::PopConAnalyzer
PopConAnalyzer(const edm::ParameterSet &pset)
Definition: PopConAnalyzer.h:21
popcon::PopConAnalyzer
Definition: PopConAnalyzer.h:17