CMS 3D CMS Logo

HcalSiPMCharacteristicsPopConAnalyzer.cc
Go to the documentation of this file.
4 
5 class HcalSiPMCharacteristicsPopConAnalyzer : public popcon::PopConAnalyzer<HcalSiPMCharacteristicsHandler> {
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<HcalSiPMCharacteristicsRcd>().get(objecthandle);
25  myDBObject = new HcalSiPMCharacteristics(*objecthandle.product());
26  }
27 
29 
30 private:
33 
35 };
36 
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
HcalSiPMCharacteristicsPopConAnalyzer::SourceHandler
HcalSiPMCharacteristicsHandler SourceHandler
Definition: HcalSiPMCharacteristicsPopConAnalyzer.cc:7
HcalSiPMCharacteristicsPopConAnalyzer
Definition: HcalSiPMCharacteristicsPopConAnalyzer.cc:5
HcalSiPMCharacteristicsRcd
Definition: HcalSiPMCharacteristicsRcd.h:4
HcalSiPMCharacteristicsPopConAnalyzer::myDBObject
HcalSiPMCharacteristics * myDBObject
Definition: HcalSiPMCharacteristicsPopConAnalyzer.cc:34
HcalSiPMCharacteristicsPopConAnalyzer::HcalSiPMCharacteristicsPopConAnalyzer
HcalSiPMCharacteristicsPopConAnalyzer(const edm::ParameterSet &pset)
Definition: HcalSiPMCharacteristicsPopConAnalyzer.cc:9
HcalSiPMCharacteristicsHandler.h
HcalSiPMCharacteristicsHandler::initObject
void initObject(HcalSiPMCharacteristics *)
Definition: HcalSiPMCharacteristicsHandler.cc:34
HcalSiPMCharacteristicsPopConAnalyzer::write
void write()
Definition: HcalSiPMCharacteristicsPopConAnalyzer.cc:28
edm
HLT enums.
Definition: AlignableModifier.h:19
HcalSiPMCharacteristicsPopConAnalyzer::m_populator
popcon::PopCon m_populator
Definition: HcalSiPMCharacteristicsPopConAnalyzer.cc:31
HcalSiPMCharacteristicsPopConAnalyzer::analyze
void analyze(const edm::Event &ev, const edm::EventSetup &esetup) override
Definition: HcalSiPMCharacteristicsPopConAnalyzer.cc:20
MakerMacros.h
HcalSiPMCharacteristicsPopConAnalyzer::endJob
void endJob() override
Definition: HcalSiPMCharacteristicsPopConAnalyzer.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
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
popcon
Definition: Exception.h:6
ev
bool ev
Definition: Hydjet2Hadronizer.cc:95
popcon::PopCon
Definition: PopCon.h:29
HcalSiPMCharacteristicsPopConAnalyzer::m_source
SourceHandler m_source
Definition: HcalSiPMCharacteristicsPopConAnalyzer.cc:32
edm::Event
Definition: Event.h:73
PopConAnalyzer.h
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
HcalSiPMCharacteristicsHandler
Definition: HcalSiPMCharacteristicsHandler.h:21
popcon::PopConAnalyzer< HcalSiPMCharacteristicsHandler >::PopConAnalyzer
PopConAnalyzer(const edm::ParameterSet &pset)
Definition: PopConAnalyzer.h:21
popcon::PopConAnalyzer
Definition: PopConAnalyzer.h:17
HcalSiPMCharacteristics
Definition: HcalSiPMCharacteristics.h:18