CMS 3D CMS Logo

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