CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HcalFrontEndMapPopConAnalyzer.cc
Go to the documentation of this file.
4 
5 class HcalFrontEndMapPopConAnalyzer : public popcon::PopConAnalyzer<HcalFrontEndMapHandler> {
6 public:
8 
10  : popcon::PopConAnalyzer<HcalFrontEndMapHandler>(pset),
11  m_populator(pset),
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 
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
HcalFrontEndMapPopConAnalyzer(const edm::ParameterSet &pset)
void write(Source const &source)
Definition: PopCon.h:75
bool getData(T &iHolder) const
Definition: EventSetup.h:122
void analyze(const edm::Event &ev, const edm::EventSetup &esetup) override
edm::ESGetToken< HcalFrontEndMap, HcalFrontEndMapRcd > m_tok
void initObject(HcalFrontEndMap *)
PopConAnalyzer(const edm::ParameterSet &pset)