CMS 3D CMS Logo

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