CMS 3D CMS Logo

HcalFrontEndMapPopConAnalyzer.cc
Go to the documentation of this file.
4 
5 
6 class HcalFrontEndMapPopConAnalyzer: public popcon::PopConAnalyzer<HcalFrontEndMapHandler>
7 {
8 public:
10 
13  m_populator(pset),
14  m_source(pset.getParameter<edm::ParameterSet>("Source")) {}
15 
16 private:
17  void endJob() override
18  {
20  write();
21  }
22 
23  void analyze(const edm::Event& ev, const edm::EventSetup& esetup) override
24  {
25  //Using ES to get the data:
26 
27  edm::ESHandle<HcalFrontEndMap> objecthandle;
28  esetup.get<HcalFrontEndMapRcd>().get(objecthandle);
29  myDBObject = new HcalFrontEndMap(*objecthandle.product() );
30  }
31 
33 
34 private:
36  SourceHandler m_source;
37 
39 };
40 
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
HcalFrontEndMapPopConAnalyzer(const edm::ParameterSet &pset)
bool ev
void write(Source const &source)
Definition: PopCon.h:123
void analyze(const edm::Event &ev, const edm::EventSetup &esetup) override
void initObject(HcalFrontEndMap *)
HLT enums.
T get() const
Definition: EventSetup.h:68
PopConAnalyzer(const edm::ParameterSet &pset)
T const * product() const
Definition: ESHandle.h:84