CMS 3D CMS Logo

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