CMS 3D CMS Logo

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