CMS 3D CMS Logo

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