CMS 3D CMS Logo

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