CMS 3D CMS Logo

HcalSiPMParametersPopConAnalyzer.cc
Go to the documentation of this file.
4 
5 class HcalSiPMParametersPopConAnalyzer : public popcon::PopConAnalyzer<HcalSiPMParametersHandler> {
6 public:
8 
12  m_source(pset.getParameter<edm::ParameterSet>("Source")) {}
13 
14 private:
15  void endJob() override {
17  write();
18  }
19 
20  void analyze(const edm::Event& ev, const edm::EventSetup& esetup) override {
21  //Using ES to get the data:
22 
24  esetup.get<HcalSiPMParametersRcd>().get(objecthandle);
25  myDBObject = new HcalSiPMParameters(*objecthandle.product());
26  }
27 
29 
30 private:
33 
35 };
36 
HcalSiPMParametersPopConAnalyzer::SourceHandler
HcalSiPMParametersHandler SourceHandler
Definition: HcalSiPMParametersPopConAnalyzer.cc:7
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
HcalSiPMParametersHandler.h
edm
HLT enums.
Definition: AlignableModifier.h:19
HcalSiPMParametersPopConAnalyzer::myDBObject
HcalSiPMParameters * myDBObject
Definition: HcalSiPMParametersPopConAnalyzer.cc:34
HcalSiPMParametersHandler
Definition: HcalSiPMParametersHandler.h:21
HcalSiPMParametersPopConAnalyzer::analyze
void analyze(const edm::Event &ev, const edm::EventSetup &esetup) override
Definition: HcalSiPMParametersPopConAnalyzer.cc:20
HcalSiPMParametersPopConAnalyzer::write
void write()
Definition: HcalSiPMParametersPopConAnalyzer.cc:28
MakerMacros.h
HcalSiPMParametersRcd
Definition: HcalSiPMParametersRcd.h:7
edm::EventSetup::get
T get() const
Definition: EventSetup.h:80
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
HcalSiPMParametersPopConAnalyzer::endJob
void endJob() override
Definition: HcalSiPMParametersPopConAnalyzer.cc:15
edm::ESHandle
Definition: DTSurvey.h:22
edm::ParameterSet
Definition: ParameterSet.h:47
popcon::PopCon::write
void write(Source const &source)
Definition: PopCon.h:107
HcalSiPMParametersPopConAnalyzer::HcalSiPMParametersPopConAnalyzer
HcalSiPMParametersPopConAnalyzer(const edm::ParameterSet &pset)
Definition: HcalSiPMParametersPopConAnalyzer.cc:9
ParameterSet
Definition: Functions.h:16
edm::EventSetup
Definition: EventSetup.h:57
HcalSiPMParametersPopConAnalyzer
Definition: HcalSiPMParametersPopConAnalyzer.cc:5
get
#define get
popcon
Definition: Exception.h:6
ev
bool ev
Definition: Hydjet2Hadronizer.cc:95
HcalSiPMParametersPopConAnalyzer::m_populator
popcon::PopCon m_populator
Definition: HcalSiPMParametersPopConAnalyzer.cc:31
popcon::PopCon
Definition: PopCon.h:29
HcalSiPMParametersPopConAnalyzer::m_source
SourceHandler m_source
Definition: HcalSiPMParametersPopConAnalyzer.cc:32
HcalSiPMParametersHandler::initObject
void initObject(HcalSiPMParameters *)
Definition: HcalSiPMParametersHandler.cc:34
edm::Event
Definition: Event.h:73
HcalSiPMParameters
Definition: HcalSiPMParameters.h:8
PopConAnalyzer.h
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
popcon::PopConAnalyzer< HcalSiPMParametersHandler >::PopConAnalyzer
PopConAnalyzer(const edm::ParameterSet &pset)
Definition: PopConAnalyzer.h:21
popcon::PopConAnalyzer
Definition: PopConAnalyzer.h:17