CMS 3D CMS Logo

HcalFrontEndMapPopConAnalyzer.cc
Go to the documentation of this file.
4 
5 class HcalFrontEndMapPopConAnalyzer : public popcon::PopConAnalyzer<HcalFrontEndMapHandler> {
6 public:
8 
12  m_source(pset.getParameter<edm::ParameterSet>("Source")),
14 
15 private:
16  void endJob() override {
18  write();
19  }
20 
21  void analyze(const edm::Event& ev, const edm::EventSetup& esetup) override {
22  //Using ES to get the data:
23 
24  myDBObject = new HcalFrontEndMap(esetup.getData(m_tok));
25  }
26 
28 
29 private:
33 
35 };
36 
HcalFrontEndMapPopConAnalyzer
Definition: HcalFrontEndMapPopConAnalyzer.cc:5
edm
HLT enums.
Definition: AlignableModifier.h:19
HcalFrontEndMapPopConAnalyzer::myDBObject
HcalFrontEndMap * myDBObject
Definition: HcalFrontEndMapPopConAnalyzer.cc:34
MakerMacros.h
HcalFrontEndMapPopConAnalyzer::m_tok
edm::ESGetToken< HcalFrontEndMap, HcalFrontEndMapRcd > m_tok
Definition: HcalFrontEndMapPopConAnalyzer.cc:32
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
HcalFrontEndMapHandler.h
HcalFrontEndMapPopConAnalyzer::SourceHandler
HcalFrontEndMapHandler SourceHandler
Definition: HcalFrontEndMapPopConAnalyzer.cc:7
edm::ParameterSet
Definition: ParameterSet.h:47
popcon::PopCon::write
void write(Source const &source)
Definition: PopCon.h:107
ParameterSet
Definition: Functions.h:16
HcalFrontEndMapPopConAnalyzer::analyze
void analyze(const edm::Event &ev, const edm::EventSetup &esetup) override
Definition: HcalFrontEndMapPopConAnalyzer.cc:21
HcalFrontEndMapPopConAnalyzer::HcalFrontEndMapPopConAnalyzer
HcalFrontEndMapPopConAnalyzer(const edm::ParameterSet &pset)
Definition: HcalFrontEndMapPopConAnalyzer.cc:9
HcalFrontEndMapHandler::initObject
void initObject(HcalFrontEndMap *)
Definition: HcalFrontEndMapHandler.cc:36
HcalFrontEndMapRcd
Definition: HcalFrontEndMapRcd.h:7
edm::EventSetup
Definition: EventSetup.h:58
edm::ESGetToken< HcalFrontEndMap, HcalFrontEndMapRcd >
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:127
HcalFrontEndMapPopConAnalyzer::endJob
void endJob() override
Definition: HcalFrontEndMapPopConAnalyzer.cc:16
popcon
Definition: Exception.h:6
HcalFrontEndMapPopConAnalyzer::write
void write()
Definition: HcalFrontEndMapPopConAnalyzer.cc:27
ev
bool ev
Definition: Hydjet2Hadronizer.cc:95
HcalFrontEndMapPopConAnalyzer::m_populator
popcon::PopCon m_populator
Definition: HcalFrontEndMapPopConAnalyzer.cc:30
HcalFrontEndMap
Definition: HcalFrontEndMap.h:23
edm::EDConsumerBase::esConsumes
auto esConsumes()
Definition: EDConsumerBase.h:202
popcon::PopCon
Definition: PopCon.h:29
edm::Event
Definition: Event.h:73
PopConAnalyzer.h
HcalFrontEndMapPopConAnalyzer::m_source
SourceHandler m_source
Definition: HcalFrontEndMapPopConAnalyzer.cc:31
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
HcalFrontEndMapHandler
Definition: HcalFrontEndMapHandler.h:20
popcon::PopConAnalyzer< HcalFrontEndMapHandler >::PopConAnalyzer
PopConAnalyzer(const edm::ParameterSet &pset)
Definition: PopConAnalyzer.h:21
popcon::PopConAnalyzer
Definition: PopConAnalyzer.h:17