CMS 3D CMS Logo

HcalZDCLowGainFractionsPopConAnalyzer.cc
Go to the documentation of this file.
4 
5 //typedef popcon::PopConAnalyzer<HcalZDCLowGainFractionsHandler> HcalZDCLowGainFractionsPopConAnalyzer;
6 
7 class HcalZDCLowGainFractionsPopConAnalyzer : public popcon::PopConAnalyzer<HcalZDCLowGainFractionsHandler> {
8 public:
10 
14  m_source(pset.getParameter<edm::ParameterSet>("Source")) {}
15 
16 private:
17  void endJob() override {
19  write();
20  delete myDBObject;
21  }
22 
23  void analyze(const edm::Event& ev, const edm::EventSetup& esetup) override {
24  //Using ES to get the data:
25 
27  esetup.get<HcalZDCLowGainFractionsRcd>().get(objecthandle);
28 
29  myDBObject = new HcalZDCLowGainFractions(*objecthandle.product());
30  }
31 
33 
34 private:
37 
39 };
40 
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
HcalZDCLowGainFractionsHandler.h
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
HcalZDCLowGainFractionsPopConAnalyzer
Definition: HcalZDCLowGainFractionsPopConAnalyzer.cc:7
edm::ESHandle
Definition: DTSurvey.h:22
HcalZDCLowGainFractionsRcd
Definition: HcalZDCLowGainFractionsRcd.h:25
edm::ParameterSet
Definition: ParameterSet.h:47
popcon::PopCon::write
void write(Source const &source)
Definition: PopCon.h:107
ParameterSet
Definition: Functions.h:16
HcalZDCLowGainFractionsHandler
Definition: HcalZDCLowGainFractionsHandler.h:21
HcalZDCLowGainFractionsHandler::initObject
void initObject(HcalZDCLowGainFractions *)
Definition: HcalZDCLowGainFractionsHandler.cc:35
HcalZDCLowGainFractionsPopConAnalyzer::SourceHandler
HcalZDCLowGainFractionsHandler SourceHandler
Definition: HcalZDCLowGainFractionsPopConAnalyzer.cc:9
edm::EventSetup
Definition: EventSetup.h:57
get
#define get
HcalZDCLowGainFractionsPopConAnalyzer::write
void write()
Definition: HcalZDCLowGainFractionsPopConAnalyzer.cc:32
HcalZDCLowGainFractionsPopConAnalyzer::m_populator
popcon::PopCon m_populator
Definition: HcalZDCLowGainFractionsPopConAnalyzer.cc:35
popcon
Definition: Exception.h:6
HcalZDCLowGainFractionsPopConAnalyzer::m_source
SourceHandler m_source
Definition: HcalZDCLowGainFractionsPopConAnalyzer.cc:36
HcalZDCLowGainFractionsPopConAnalyzer::analyze
void analyze(const edm::Event &ev, const edm::EventSetup &esetup) override
Definition: HcalZDCLowGainFractionsPopConAnalyzer.cc:23
HcalZDCLowGainFractions
Definition: HcalZDCLowGainFractions.h:9
ev
bool ev
Definition: Hydjet2Hadronizer.cc:95
popcon::PopCon
Definition: PopCon.h:29
edm::Event
Definition: Event.h:73
HcalZDCLowGainFractionsPopConAnalyzer::myDBObject
HcalZDCLowGainFractions * myDBObject
Definition: HcalZDCLowGainFractionsPopConAnalyzer.cc:38
HcalZDCLowGainFractionsPopConAnalyzer::HcalZDCLowGainFractionsPopConAnalyzer
HcalZDCLowGainFractionsPopConAnalyzer(const edm::ParameterSet &pset)
Definition: HcalZDCLowGainFractionsPopConAnalyzer.cc:11
PopConAnalyzer.h
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
popcon::PopConAnalyzer< HcalZDCLowGainFractionsHandler >::PopConAnalyzer
PopConAnalyzer(const edm::ParameterSet &pset)
Definition: PopConAnalyzer.h:21
popcon::PopConAnalyzer
Definition: PopConAnalyzer.h:17
HcalZDCLowGainFractionsPopConAnalyzer::endJob
void endJob() override
Definition: HcalZDCLowGainFractionsPopConAnalyzer.cc:17