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")),
14 
15 private:
16  void endJob() override {
18  write();
19  }
20 
21  void analyze(const edm::Event& ev, const edm::EventSetup& esetup) override {
22  //Using ES to get the data:
23 
24  myDBObject = new HcalFrontEndMap(esetup.getData(m_tok));
25  }
26 
28 
29 private:
33 
35 };
36 
HcalFrontEndMapPopConAnalyzer(const edm::ParameterSet &pset)
void write(Source const &source)
Definition: PopCon.h:75
void analyze(const edm::Event &ev, const edm::EventSetup &esetup) override
edm::ESGetToken< HcalFrontEndMap, HcalFrontEndMapRcd > m_tok
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
bool getData(T &iHolder) const
Definition: EventSetup.h:122
void initObject(HcalFrontEndMap *)
HLT enums.
PopConAnalyzer(const edm::ParameterSet &pset)