CMS 3D CMS Logo

CastorQIEDataPopConAnalyzer.cc
Go to the documentation of this file.
4 
5 //typedef popcon::PopConAnalyzer<CastorQIEDataHandler> CastorQIEDataPopConAnalyzer;
6 
7 class CastorQIEDataPopConAnalyzer: public popcon::PopConAnalyzer<CastorQIEDataHandler>
8 {
9 public:
11 
14  m_populator(pset),
15  m_source(pset.getParameter<edm::ParameterSet>("Source")) {}
16 
17 private:
18  void endJob() override
19  {
21  write();
22  }
23 
24  void analyze(const edm::Event& ev, const edm::EventSetup& esetup) override
25  {
26  //Using ES to get the data:
27 
28  edm::ESHandle<CastorQIEData> objecthandle;
29  esetup.get<CastorQIEDataRcd>().get(objecthandle);
30  myDBObject = new CastorQIEData(*objecthandle.product() );
31  }
32 
34 
35 private:
37  SourceHandler m_source;
38 
40 };
41 
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
bool ev
void write(Source const &source)
Definition: PopCon.h:123
CastorQIEDataPopConAnalyzer(const edm::ParameterSet &pset)
void analyze(const edm::Event &ev, const edm::EventSetup &esetup) override
void initObject(CastorQIEData *)
const T & get() const
Definition: EventSetup.h:55
HLT enums.
PopConAnalyzer(const edm::ParameterSet &pset)
T const * product() const
Definition: ESHandle.h:86