CMS 3D CMS Logo

HcalSiPMParametersPopConAnalyzer.cc
Go to the documentation of this file.
4 
5 class HcalSiPMParametersPopConAnalyzer: public popcon::PopConAnalyzer<HcalSiPMParametersHandler> {
6 public:
8 
11  m_populator(pset),
12  m_source(pset.getParameter<edm::ParameterSet>("Source")) {}
13 
14 private:
15  void endJob() override {
17  write();
18  }
19 
20  void analyze(const edm::Event& ev, const edm::EventSetup& esetup) override {
21  //Using ES to get the data:
22 
24  esetup.get<HcalSiPMParametersRcd>().get(objecthandle);
25  myDBObject = new HcalSiPMParameters(*objecthandle.product() );
26  }
27 
29 
30 private:
32  SourceHandler m_source;
33 
35 };
36 
bool ev
void initObject(HcalSiPMParameters *)
void write(Source const &source)
Definition: PopCon.h:123
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
void analyze(const edm::Event &ev, const edm::EventSetup &esetup) override
HcalSiPMParametersPopConAnalyzer(const edm::ParameterSet &pset)
HLT enums.
T get() const
Definition: EventSetup.h:71
T const * product() const
Definition: ESHandle.h:86