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 public:
10 
13  m_populator(pset),
14  m_source(pset.getParameter<edm::ParameterSet>("Source")) {}
15 
16 private:
17  void endJob() override {
19  write();
20  delete myDBObject;
21  }
22 
23  void analyze(const edm::Event& ev, const edm::EventSetup& esetup) override {
24  //Using ES to get the data:
25 
27  esetup.get<HcalZDCLowGainFractionsRcd>().get(objecthandle);
28 
29  myDBObject = new HcalZDCLowGainFractions(*objecthandle.product());
30  }
31 
33 
34 private:
36  SourceHandler m_source;
37 
39 };
40 
bool ev
void write(Source const &source)
Definition: PopCon.h:108
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
HcalZDCLowGainFractionsPopConAnalyzer(const edm::ParameterSet &pset)
void analyze(const edm::Event &ev, const edm::EventSetup &esetup) override
HLT enums.
T get() const
Definition: EventSetup.h:73
void initObject(HcalZDCLowGainFractions *)
T const * product() const
Definition: ESHandle.h:86