CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SiStripPopConDQMEDHarvester.h
Go to the documentation of this file.
1 #ifndef DQMOffline_CalibTracker_SiStripPopConDQMEDHarvester_H
2 #define DQMOffline_CalibTracker_SiStripPopConDQMEDHarvester_H
3 
7 
8 // copied from popCon::PopConAnalyzer
9 // modified to pass an edm::EventSetup reference at begin run
10 // and inherit from DQMEDHarvester
11 // Compared to popCon::SourceHandler, the concrete types should additionally implement
12 // the `void initES(const edm::EventSetup&)` and
13 // `void dqmEndJob(DQMStore::IBooker&, DQMStore::IGetter&)` methods
14 template <class SourceHandler>
16 public:
18  : m_populator(pset), m_source(pset.getParameter<edm::ParameterSet>("Source"), consumesCollector()) {}
19 
21 
22 private:
23  void beginRun(const edm::Run&, const edm::EventSetup& setup) override { m_source.initES(setup); }
24 
25  void dqmEndJob(DQMStore::IBooker& booker, DQMStore::IGetter& getter) override {
26  m_source.dqmEndJob(booker, getter);
28  }
29 
30 private:
32  SourceHandler m_source;
33 };
34 
35 #endif // DQMOffline_CalibTracker_SiStripPopConDQMEDHarvester_H
void dqmEndJob(DQMStore::IBooker &booker, DQMStore::IGetter &getter) override
SiStripPopConDQMEDHarvester(const edm::ParameterSet &pset)
void write(Source const &source)
Definition: PopCon.h:75
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
void beginRun(const edm::Run &, const edm::EventSetup &setup) override
Definition: Run.h:45