CMS 3D CMS Logo

HcalTPParametersPopConAnalyzer.cc
Go to the documentation of this file.
4 
5 class HcalTPParametersPopConAnalyzer : public popcon::PopConAnalyzer<HcalTPParametersHandler> {
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<HcalTPParametersRcd>().get(objecthandle);
25  myDBObject = new HcalTPParameters(*objecthandle.product());
26  }
27 
29 
30 private:
32  SourceHandler m_source;
33 
35 };
36 
bool ev
void analyze(const edm::Event &ev, const edm::EventSetup &esetup) override
void write(Source const &source)
Definition: PopCon.h:108
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
void initObject(HcalTPParameters *)
HLT enums.
T get() const
Definition: EventSetup.h:73
HcalTPParametersPopConAnalyzer(const edm::ParameterSet &pset)
PopConAnalyzer(const edm::ParameterSet &pset)
T const * product() const
Definition: ESHandle.h:86