CMS 3D CMS Logo

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 {
17 public:
19  m_populator(pset),
20  m_source(pset.getParameter<edm::ParameterSet>("Source")) {}
21 
23 
24 private:
25  void beginRun(const edm::Run&, const edm::EventSetup& setup) override
26  {
27  m_source.initES(setup);
28  }
29 
30  void dqmEndJob(DQMStore::IBooker& booker, DQMStore::IGetter& getter) override {
31  m_source.dqmEndJob(booker, getter);
33  }
34 
35 private:
37  SourceHandler m_source;
38 };
39 
40 #endif // DQMOffline_CalibTracker_SiStripPopConDQMEDHarvester_H
void dqmEndJob(DQMStore::IBooker &booker, DQMStore::IGetter &getter) override
SiStripPopConDQMEDHarvester(const edm::ParameterSet &pset)
def setup(process, global_tag, zero_tesla=False)
Definition: GeneralSetup.py:2
void write(Source const &source)
Definition: PopCon.h:123
HLT enums.
void beginRun(const edm::Run &, const edm::EventSetup &setup) override
Definition: Run.h:44