CMS 3D CMS Logo

HcalRecoParamsPopConAnalyzer.cc
Go to the documentation of this file.
4 
5 //typedef popcon::PopConAnalyzer<HcalRecoParamsHandler> HcalRecoParamsPopConAnalyzer;
6 
7 class HcalRecoParamsPopConAnalyzer : public popcon::PopConAnalyzer<HcalRecoParamsHandler> {
8 public:
10 
13  m_populator(pset),
14  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  edm::ESHandle<HcalRecoParams> objecthandle;
26  esetup.get<HcalRecoParamsRcd>().get(objecthandle);
27  myDBObject = new HcalRecoParams(*objecthandle.product());
28  }
29 
31 
32 private:
34  SourceHandler m_source;
35 
37 };
38 
bool ev
void write(Source const &source)
Definition: PopCon.h:108
HcalRecoParamsPopConAnalyzer(const edm::ParameterSet &pset)
void analyze(const edm::Event &ev, const edm::EventSetup &esetup) override
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
HLT enums.
T get() const
Definition: EventSetup.h:73
void initObject(HcalRecoParams *)
PopConAnalyzer(const edm::ParameterSet &pset)
T const * product() const
Definition: ESHandle.h:86