CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalRespCorrsPopConAnalyzer.cc
Go to the documentation of this file.
4 
5 //typedef popcon::PopConAnalyzer<HcalRespCorrsHandler> HcalRespCorrsPopConAnalyzer;
6 
7 class HcalRespCorrsPopConAnalyzer: public popcon::PopConAnalyzer<HcalRespCorrsHandler>
8 {
9 public:
11 
13  popcon::PopConAnalyzer<HcalRespCorrsHandler>(pset),
14  m_populator(pset),
15  m_source(pset.getParameter<edm::ParameterSet>("Source")) {}
16 
17 private:
18  virtual void endJob()
19  {
21  write();
22  }
23 
24  virtual void analyze(const edm::Event& ev, const edm::EventSetup& esetup)
25  {
26  //Using ES to get the data:
27 
28  edm::ESHandle<HcalRespCorrs> objecthandle;
29  esetup.get<HcalRespCorrsRcd>().get(objecthandle);
30  myDBObject = new HcalRespCorrs(*objecthandle.product() );
31  }
32 
34 
35 private:
38 
40 };
41 
HcalRespCorrsPopConAnalyzer(const edm::ParameterSet &pset)
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
virtual void analyze(const edm::Event &ev, const edm::EventSetup &esetup)
void write(Source const &source)
Definition: PopCon.h:125
void initObject(HcalRespCorrs *)
const T & get() const
Definition: EventSetup.h:55
T const * product() const
Definition: ESHandle.h:62
PopConAnalyzer(const edm::ParameterSet &pset)