CMS 3D CMS Logo

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