CMS 3D CMS Logo

TestEcalChannelStatusAnalyzer.cc
Go to the documentation of this file.
4 
5 class ExTestEcalChannelStatusAnalyzer: public popcon::PopConAnalyzer<popcon::EcalChannelStatusHandler>
6 {
7 public:
8 
10 
13  m_populator(pset),
14  m_source(pset.getParameter<edm::ParameterSet>("Source")) {}
15 
16 private:
17 
18  void analyze(const edm::Event& ev, const edm::EventSetup& iSetup) override {
19 
21  iSetup.get< EcalMappingRcd >().get(eleMap);
22  ecalElectronicsMap = eleMap.product();
23  }
24 
25  void endJob() override {
26 
28  write();
29  }
30 
32 
33 
34 private:
35 
37  SourceHandler m_source;
39 };
40 
41 
42 
43 //define this as a plug-in
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
const EcalElectronicsMapping * ecalElectronicsMap
ExTestEcalChannelStatusAnalyzer(const edm::ParameterSet &pset)
bool ev
void write(Source const &source)
Definition: PopCon.h:123
void analyze(const edm::Event &ev, const edm::EventSetup &iSetup) override
popcon::EcalChannelStatusHandler SourceHandler
HLT enums.
T get() const
Definition: EventSetup.h:62
void setElectronicsMap(const EcalElectronicsMapping *)
T const * product() const
Definition: ESHandle.h:86