CMS 3D CMS Logo

HcalSiPMCharacteristicsPopConAnalyzer.cc
Go to the documentation of this file.
4 
5 
6 class HcalSiPMCharacteristicsPopConAnalyzer: public popcon::PopConAnalyzer<HcalSiPMCharacteristicsHandler> {
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<HcalSiPMCharacteristicsRcd>().get(objecthandle);
26  myDBObject = new HcalSiPMCharacteristics(*objecthandle.product() );
27  }
28 
30 
31 private:
33  SourceHandler m_source;
34 
36 };
37 
bool ev
void write(Source const &source)
Definition: PopCon.h:123
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
void initObject(HcalSiPMCharacteristics *)
HLT enums.
T get() const
Definition: EventSetup.h:71
HcalSiPMCharacteristicsPopConAnalyzer(const edm::ParameterSet &pset)
T const * product() const
Definition: ESHandle.h:86
void analyze(const edm::Event &ev, const edm::EventSetup &esetup) override