CMS 3D CMS Logo

HcalTPParametersPopConAnalyzer.cc
Go to the documentation of this file.
4 
5 
6 class HcalTPParametersPopConAnalyzer: public popcon::PopConAnalyzer<HcalTPParametersHandler> {
7 public:
9 
12  m_populator(pset),
13  m_source(pset.getParameter<edm::ParameterSet>("Source")) {}
14 
15 private:
16  void endJob() override {
18  write();
19  }
20 
21  void analyze(const edm::Event& ev, const edm::EventSetup& esetup) override {
22  //Using ES to get the data:
23 
25  esetup.get<HcalTPParametersRcd>().get(objecthandle);
26  myDBObject = new HcalTPParameters(*objecthandle.product() );
27  }
28 
30 
31 private:
33  SourceHandler m_source;
34 
36 };
37 
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
bool ev
void analyze(const edm::Event &ev, const edm::EventSetup &esetup) override
void write(Source const &source)
Definition: PopCon.h:123
void initObject(HcalTPParameters *)
const T & get() const
Definition: EventSetup.h:58
HLT enums.
HcalTPParametersPopConAnalyzer(const edm::ParameterSet &pset)
PopConAnalyzer(const edm::ParameterSet &pset)
T const * product() const
Definition: ESHandle.h:86