CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
HcalPFCutsPopConAnalyzer.cc
Go to the documentation of this file.
5 
6 class HcalPFCutsPopConAnalyzer : public popcon::PopConAnalyzer<HcalPFCutsHandler> {
7 public:
9 
13  m_source(pset.getParameter<edm::ParameterSet>("Source")),
15 
16 private:
17  void endJob() override {
19  write();
20  }
21 
22  void analyze(const edm::Event& ev, const edm::EventSetup& esetup) override {
23  //Using ES to get the data:
24 
25  myDBObject = new HcalPFCuts(esetup.getData(m_tok));
26  }
27 
29 
30 private:
34 
36 };
37 
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
Definition: EventSetup.h:119
void write(Source const &source)
Definition: PopCon.h:75
void initObject(HcalPFCuts *)
void analyze(const edm::Event &ev, const edm::EventSetup &esetup) override
edm::ESGetToken< HcalPFCuts, HcalPFCutsRcd > m_tok
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
HLT enums.
PopConAnalyzer(const edm::ParameterSet &pset)
HcalPFCutsPopConAnalyzer(const edm::ParameterSet &pset)