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/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::EDAnalyzer
{
18
public
:
19
explicit
SiStripMonitorCondData
(
const
edm::ParameterSet
&);
20
21
~SiStripMonitorCondData
()
override
;
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
SiStripMonitorCondData::~SiStripMonitorCondData
() {}
35
36
void
SiStripMonitorCondData::beginRun
(
edm::Run
const
&
run
,
edm::EventSetup
const
&eSetup) {
37
moni_
.
beginRun
(
run
.run(), eSetup);
38
}
39
40
void
SiStripMonitorCondData::analyze
(
edm::Event
const
&
iEvent
,
edm::EventSetup
const
&eSetup) {
41
moni_
.
analyseCondData
(eSetup);
42
}
43
44
void
SiStripMonitorCondData::endRun
(
edm::Run
const
&
run
,
edm::EventSetup
const
&eSetup) {
45
moni_
.
end
();
46
moni_
.
save
();
47
}
48
49
#include "
FWCore/Framework/interface/MakerMacros.h
"
50
DEFINE_FWK_MODULE
(
SiStripMonitorCondData
);
SiStripClassToMonitorCondData::beginRun
void beginRun(edm::RunNumber_t iRun, edm::EventSetup const &eSetup)
Definition:
SiStripClassToMonitorCondData.cc:101
SiStripMonitorCondData::SiStripMonitorCondData
SiStripMonitorCondData(const edm::ParameterSet &)
Definition:
SiStripMonitorCondData.cc:31
ESHandle.h
edm::Run
Definition:
Run.h:45
EDAnalyzer.h
edm::EDAnalyzer
Definition:
EDAnalyzer.h:28
SiStripClassToMonitorCondData
Definition:
SiStripClassToMonitorCondData.h:54
MakerMacros.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
SiStripMonitorCondData
Definition:
SiStripMonitorCondData.cc:17
SiStripMonitorCondData::moni_
SiStripClassToMonitorCondData moni_
Definition:
SiStripMonitorCondData.cc:28
SiStripClassToMonitorCondData::save
void save()
Definition:
SiStripClassToMonitorCondData.cc:297
SiStripMonitorCondData::endRun
void endRun(edm::Run const &run, edm::EventSetup const &eSetup) override
Definition:
SiStripMonitorCondData.cc:44
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
SiStripMonitorCondData::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition:
SiStripMonitorCondData.cc:40
iEvent
int iEvent
Definition:
GenABIO.cc:224
SiStripClassToMonitorCondData::end
void end()
Definition:
SiStripClassToMonitorCondData.cc:267
edm::EventSetup
Definition:
EventSetup.h:58
writedatasetfile.run
run
Definition:
writedatasetfile.py:27
Frameworkfwd.h
SiStripClassToMonitorCondData::analyseCondData
void analyseCondData(const edm::EventSetup &)
Definition:
SiStripClassToMonitorCondData.cc:234
SiStripClassToMonitorCondData.h
ParameterSet.h
edm::Event
Definition:
Event.h:73
SiStripMonitorCondData::beginRun
void beginRun(edm::Run const &run, edm::EventSetup const &eSetup) override
Definition:
SiStripMonitorCondData.cc:36
SiStripMonitorCondData::~SiStripMonitorCondData
~SiStripMonitorCondData() override
Definition:
SiStripMonitorCondData.cc:34
Generated for CMSSW Reference Manual by
1.8.16