CMS 3D CMS Logo

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