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 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
DQMEDHarvester.h
SiStripPopConDQMEDHarvester::m_source
SourceHandler m_source
Definition: SiStripPopConDQMEDHarvester.h:32
edm::Run
Definition: Run.h:45
SiStripPopConDQMEDHarvester::beginRun
void beginRun(const edm::Run &, const edm::EventSetup &setup) override
Definition: SiStripPopConDQMEDHarvester.h:23
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::EDConsumerBase::consumesCollector
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
Definition: EDConsumerBase.cc:47
SiStripPopConDQMEDHarvester::dqmEndJob
void dqmEndJob(DQMStore::IBooker &booker, DQMStore::IGetter &getter) override
Definition: SiStripPopConDQMEDHarvester.h:25
SiStripPopConDQMEDHarvester::m_populator
popcon::PopCon m_populator
Definition: SiStripPopConDQMEDHarvester.h:31
SiStripPopConDQMEDHarvester::~SiStripPopConDQMEDHarvester
~SiStripPopConDQMEDHarvester() override
Definition: SiStripPopConDQMEDHarvester.h:20
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
PopCon.h
edm::ParameterSet
Definition: ParameterSet.h:47
popcon::PopCon::write
void write(Source const &source)
Definition: PopCon.h:107
ParameterSet
Definition: Functions.h:16
edm::EventSetup
Definition: EventSetup.h:58
DQMEDHarvester
Definition: DQMEDHarvester.py:1
dqm::implementation::IGetter
Definition: DQMStore.h:484
SiStripPopConDQMEDHarvester
Definition: SiStripPopConDQMEDHarvester.h:15
EventSetup.h
dqm::implementation::IBooker
Definition: DQMStore.h:43
SiStripPopConDQMEDHarvester::SiStripPopConDQMEDHarvester
SiStripPopConDQMEDHarvester(const edm::ParameterSet &pset)
Definition: SiStripPopConDQMEDHarvester.h:17
popcon::PopCon
Definition: PopCon.h:29
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27