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  virtual void endJob() override {
18  write();
19  }
20 
21  virtual 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 
virtual void analyze(const edm::Event &ev, const edm::EventSetup &esetup) override
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
bool ev
void write(Source const &source)
Definition: PopCon.h:123
void initObject(HcalSiPMCharacteristics *)
const T & get() const
Definition: EventSetup.h:55
HLT enums.
HcalSiPMCharacteristicsPopConAnalyzer(const edm::ParameterSet &pset)
T const * product() const
Definition: ESHandle.h:86