DQM
SiStripMonitorSummary
plugins
SiStripMonitorCondData.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: SiStripMonitorSummary
4
// Class : SiStripMonitorCondData
5
//
6
// Original Author: Evelyne Delmeire
7
//
8
9
#include "
FWCore/Framework/interface/one/EDAnalyzer.h
"
10
#include "
FWCore/Framework/interface/ESHandle.h
"
11
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
12
#include "
FWCore/Framework/interface/Event.h
"
13
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
14
15
#include "
DQM/SiStripMonitorSummary/interface/SiStripClassToMonitorCondData.h
"
16
17
class
SiStripMonitorCondData
:
public
edm::one::EDAnalyzer
<edm::one::WatchRuns> {
18
public
:
19
explicit
SiStripMonitorCondData
(
const
edm::ParameterSet
&);
20
21
~SiStripMonitorCondData
()
override
=
default
;
22
23
void
beginRun
(
edm::Run
const
&
run
,
edm::EventSetup
const
&eSetup)
override
;
24
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
&)
override
;
25
void
endRun
(
edm::Run
const
&
run
,
edm::EventSetup
const
&eSetup)
override
;
26
27
private
:
28
SiStripClassToMonitorCondData
moni_
;
29
};
30
31
SiStripMonitorCondData::SiStripMonitorCondData
(
edm::ParameterSet
const
&iConfig)
32
: moni_(iConfig, consumesCollector()) {}
33
34
void
SiStripMonitorCondData::beginRun
(
edm::Run
const
&
run
,
edm::EventSetup
const
&eSetup) {
35
moni_
.
beginRun
(
run
.run(), eSetup);
36
}
37
38
void
SiStripMonitorCondData::analyze
(
edm::Event
const
&
iEvent
,
edm::EventSetup
const
&eSetup) {
39
moni_
.
analyseCondData
(eSetup);
40
}
41
42
void
SiStripMonitorCondData::endRun
(
edm::Run
const
&
run
,
edm::EventSetup
const
&eSetup) {
43
moni_
.
end
();
44
moni_
.
save
();
45
}
46
47
#include "
FWCore/Framework/interface/MakerMacros.h
"
48
DEFINE_FWK_MODULE
(
SiStripMonitorCondData
);
SiStripClassToMonitorCondData::beginRun
void beginRun(edm::RunNumber_t iRun, edm::EventSetup const &eSetup)
Definition:
SiStripClassToMonitorCondData.cc:103
SiStripMonitorCondData::endRun
void endRun(edm::Run const &run, edm::EventSetup const &eSetup) override
Definition:
SiStripMonitorCondData.cc:42
SiStripMonitorCondData::moni_
SiStripClassToMonitorCondData moni_
Definition:
SiStripMonitorCondData.cc:28
SiStripMonitorCondData::~SiStripMonitorCondData
~SiStripMonitorCondData() override=default
Event.h
SiStripMonitorCondData
Definition:
SiStripMonitorCondData.cc:17
SiStripClassToMonitorCondData
Definition:
SiStripClassToMonitorCondData.h:54
Frameworkfwd.h
writedatasetfile.run
run
Definition:
writedatasetfile.py:27
SiStripMonitorCondData::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition:
SiStripMonitorCondData.cc:38
ParameterSet.h
SiStripClassToMonitorCondData::save
void save()
Definition:
SiStripClassToMonitorCondData.cc:299
iEvent
int iEvent
Definition:
GenABIO.cc:224
ESHandle.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
edm::EventSetup
Definition:
EventSetup.h:59
SiStripMonitorCondData::beginRun
void beginRun(edm::Run const &run, edm::EventSetup const &eSetup) override
Definition:
SiStripMonitorCondData.cc:34
SiStripMonitorCondData::SiStripMonitorCondData
SiStripMonitorCondData(const edm::ParameterSet &)
Definition:
SiStripMonitorCondData.cc:31
EDAnalyzer.h
SiStripClassToMonitorCondData.h
SiStripClassToMonitorCondData::end
void end()
Definition:
SiStripClassToMonitorCondData.cc:269
edm::ParameterSet
Definition:
ParameterSet.h:47
SiStripClassToMonitorCondData::analyseCondData
void analyseCondData(const edm::EventSetup &)
Definition:
SiStripClassToMonitorCondData.cc:236
edm::Event
Definition:
Event.h:73
MakerMacros.h
edm::one::EDAnalyzer
Definition:
EDAnalyzer.h:30
edm::Run
Definition:
Run.h:45
Generated for CMSSW Reference Manual by
1.8.14