DQM
EcalPreshowerMonitorModule
src
ESDataCertificationTask.cc
Go to the documentation of this file.
1
#include <iostream>
2
3
#include "
FWCore/ServiceRegistry/interface/Service.h
"
4
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
5
#include "
FWCore/Framework/interface/MakerMacros.h
"
6
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
7
8
#include "
FWCore/Framework/interface/ESHandle.h
"
9
#include "
FWCore/Framework/interface/EventSetup.h
"
10
11
#include "
DataFormats/EcalDetId/interface/ESDetId.h
"
12
13
#include "
CondFormats/DataRecord/interface/RunSummaryRcd.h
"
14
#include "
CondFormats/RunInfo/interface/RunSummary.h
"
15
#include "
CondFormats/RunInfo/interface/RunInfo.h
"
16
17
#include "
DQMServices/Core/interface/DQMStore.h
"
18
19
#include "
DQM/EcalPreshowerMonitorModule/interface/ESDataCertificationTask.h
"
20
21
using namespace
cms
;
22
using namespace
edm
;
23
using namespace
std
;
24
25
ESDataCertificationTask::ESDataCertificationTask
(
const
ParameterSet
& ps) {
26
dqmStore_ =
Service<DQMStore>
().operator->();
27
28
prefixME_ = ps.
getUntrackedParameter
<
string
>(
"prefixME"
,
""
);
29
30
mergeRuns_ = ps.
getUntrackedParameter
<
bool
>(
"mergeRuns"
,
false
);
31
32
meESDataCertificationSummary_ =
nullptr
;
33
meESDataCertificationSummaryMap_ =
nullptr
;
34
}
35
36
ESDataCertificationTask::~ESDataCertificationTask
() {}
37
38
void
ESDataCertificationTask::beginJob
(
void
) {
39
char
histo
[200];
40
41
if
(dqmStore_) {
42
dqmStore_->setCurrentFolder(prefixME_ +
"/EventInfo"
);
43
44
sprintf(
histo
,
"CertificationSummary"
);
45
meESDataCertificationSummary_ = dqmStore_->bookFloat(
histo
);
46
meESDataCertificationSummary_->Fill(0.0);
47
48
sprintf(
histo
,
"CertificationSummaryMap"
);
49
meESDataCertificationSummaryMap_ = dqmStore_->book2D(
histo
,
histo
, 40, 0., 40., 40, 0., 40.);
50
meESDataCertificationSummaryMap_->setAxisTitle(
"X"
, 1);
51
meESDataCertificationSummaryMap_->setAxisTitle(
"Y"
, 2);
52
}
53
}
54
55
void
ESDataCertificationTask::endJob
(
void
) {}
56
57
void
ESDataCertificationTask::beginLuminosityBlock
(
const
edm::LuminosityBlock
& lumiBlock,
58
const
edm::EventSetup
& iSetup) {
59
this->
reset
();
60
}
61
62
void
ESDataCertificationTask::reset
(
void
) {
63
if
(meESDataCertificationSummary_)
64
meESDataCertificationSummary_->Reset();
65
66
if
(meESDataCertificationSummaryMap_)
67
meESDataCertificationSummaryMap_->Reset();
68
}
69
70
void
ESDataCertificationTask::analyze
(
const
Event
&
e
,
const
EventSetup
&
c
) {}
71
72
DEFINE_FWK_MODULE
(
ESDataCertificationTask
);
ESDataCertificationTask.h
ESDataCertificationTask::beginLuminosityBlock
void beginLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup) override
Definition:
ESDataCertificationTask.cc:57
MessageLogger.h
RunSummaryRcd.h
ESHandle.h
edm::LuminosityBlock
Definition:
LuminosityBlock.h:50
edm
HLT enums.
Definition:
AlignableModifier.h:19
ESDataCertificationTask
Definition:
ESDataCertificationTask.h:9
timingPdfMaker.histo
histo
Definition:
timingPdfMaker.py:279
DQMStore.h
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
ESDetId.h
ESDataCertificationTask::analyze
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Definition:
ESDataCertificationTask.cc:70
ESDataCertificationTask::reset
void reset(void)
Definition:
ESDataCertificationTask.cc:62
ESDataCertificationTask::~ESDataCertificationTask
~ESDataCertificationTask() override
Definition:
ESDataCertificationTask.cc:36
MakerMacros.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
Service.h
edm::ParameterSet
Definition:
ParameterSet.h:47
edm::Service
Definition:
Service.h:30
edm::EventSetup
Definition:
EventSetup.h:57
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:31
RunSummary.h
RunInfo.h
std
Definition:
JetResolutionObject.h:76
Frameworkfwd.h
EventSetup.h
reset
void reset(double vett[256])
Definition:
TPedValues.cc:11
ESDataCertificationTask::endJob
void endJob(void) override
Definition:
ESDataCertificationTask.cc:55
ESDataCertificationTask::beginJob
void beginJob(void) override
Definition:
ESDataCertificationTask.cc:38
edm::Event
Definition:
Event.h:73
ESDataCertificationTask::ESDataCertificationTask
ESDataCertificationTask(const edm::ParameterSet &ps)
Definition:
ESDataCertificationTask.cc:25
cms
Namespace of DDCMS conversion namespace.
Definition:
ProducerAnalyzer.cc:21
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
Generated for CMSSW Reference Manual by
1.8.16