CMS 3D CMS Logo

HcalDcsValuesPopConAnalyzer.cc
Go to the documentation of this file.
4 
5 //typedef popcon::PopConAnalyzer<HcalDcsValuesHandler> HcalDcsValuesPopConAnalyzer;
6 
7 class HcalDcsValuesPopConAnalyzer : public popcon::PopConAnalyzer<HcalDcsValuesHandler> {
8 public:
10 
14  m_source(pset.getParameter<edm::ParameterSet>("Source")),
16 
17 private:
18  void endJob() override {
20  write();
21  }
22 
23  void analyze(const edm::Event& ev, const edm::EventSetup& esetup) override {
24  //Using ES to get the data:
25 
26  myDBObject = new HcalDcsValues(esetup.getData(m_tok));
27  }
28 
30 
31 private:
35 
37 };
38 
void analyze(const edm::Event &ev, const edm::EventSetup &esetup) override
void write(Source const &source)
Definition: PopCon.h:75
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
bool getData(T &iHolder) const
Definition: EventSetup.h:122
HcalDcsValuesPopConAnalyzer(const edm::ParameterSet &pset)
void initObject(HcalDcsValues *)
HLT enums.
PopConAnalyzer(const edm::ParameterSet &pset)
edm::ESGetToken< HcalDcsValues, HcalDcsRcd > m_tok