CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CastorGainsPopConAnalyzer.cc
Go to the documentation of this file.
4 
5 //typedef popcon::PopConAnalyzer<CastorGainsHandler> CastorGainsPopConAnalyzer;
6 
7 class CastorGainsPopConAnalyzer : public popcon::PopConAnalyzer<CastorGainsHandler> {
8 public:
10 
12  : popcon::PopConAnalyzer<CastorGainsHandler>(pset),
13  m_populator(pset),
14  m_source(pset.getParameter<edm::ParameterSet>("Source")),
16 
17 private:
18  void endJob() override {
20  write();
21  }
22 
23  void analyze(const edm::Event& ev, const edm::EventSetup& esetup) override {
24  //Using ES to get the data:
25 
26  myDBObject = new CastorGains(esetup.getData(m_tok));
27  }
28 
30 
31 private:
36 };
37 
void analyze(const edm::Event &ev, const edm::EventSetup &esetup) override
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
CastorGainsPopConAnalyzer(const edm::ParameterSet &pset)
bool ev
void write(Source const &source)
Definition: PopCon.h:75
bool getData(T &iHolder) const
Definition: EventSetup.h:128
void initObject(CastorGains *)
PopConAnalyzer(const edm::ParameterSet &pset)
edm::ESGetToken< CastorGains, CastorGainsRcd > m_tok