Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
DQM
EcalBarrelMonitorClient
src
CertificationClient.cc
Go to the documentation of this file.
1
#include "../interface/CertificationClient.h"
2
3
#include "
DQM/EcalBarrelMonitorTasks/interface/IntegrityTask.h
"
4
#include "
DQM/EcalBarrelMonitorTasks/interface/RawDataTask.h
"
5
#include "
DQM/EcalBarrelMonitorTasks/interface/TowerStatusTask.h
"
6
#include "
DQM/EcalBarrelMonitorClient/interface/SummaryClient.h
"
7
8
#include "
DQMServices/Core/interface/MonitorElement.h
"
9
#include "
DQM/EcalCommon/interface/EcalDQMCommonUtils.h
"
10
11
namespace
ecaldqm {
12
13
CertificationClient::CertificationClient
(
const
edm::ParameterSet
& _params,
const
edm::ParameterSet
& _paths) :
14
DQWorkerClient
(_params, _paths,
"CertificationClient"
)
15
{
16
edm::ParameterSet
const
& sources(_params.
getUntrackedParameterSet
(
"sources"
));
17
source_
(
sIntegrity
,
"IntegrityTask"
,
IntegrityTask::kByLumi
, sources);
18
source_
(
sFEStatus
,
"RawDataTask"
,
RawDataTask::kFEStatus
, sources);
19
source_
(
sDesync
,
"RawDataTask"
,
RawDataTask::kDesyncByLumi
, sources);
20
source_
(
sDAQ
,
"TowerStatusTask"
,
TowerStatusTask::kDAQSummaryMap
, sources);
21
source_
(
sDCS
,
"TowerStatusTask"
,
TowerStatusTask::kDCSSummaryMap
, sources);
22
}
23
24
void
25
CertificationClient::bookMEs
()
26
{
27
unsigned
iMEs[] = {
kCertificationMap
,
kCertificationContents
,
kCertification
};
28
for
(
unsigned
iME(0); iME <
sizeof
(iMEs) /
sizeof
(
unsigned
); iME++)
29
MEs_
[iMEs[iME]]->book();
30
31
MEs_
[
kReportSummaryMap
]->retrieve();
32
MEs_
[
kReportSummaryContents
]->retrieve();
33
MEs_
[
kReportSummary
]->retrieve();
34
}
35
36
void
37
CertificationClient::beginRun
(
const
edm::Run
&,
const
edm::EventSetup
&)
38
{
39
MEs_
[
kCertificationMap
]->resetAll(-1.);
40
MEs_
[
kCertificationMap
]->reset(1.);
41
MEs_
[
kCertificationContents
]->reset(1.);
42
MEs_
[
kCertification
]->reset(1.);
43
}
44
45
void
46
CertificationClient::producePlots
()
47
{
48
MEs_
[
kCertificationMap
]->reset(1.);
49
for
(
unsigned
dccid(1); dccid <= 54; dccid++)
50
MEs_
[
kCertificationContents
]->
fill
(dccid, 1.);
51
52
float
cert(1.);
53
MEs_
[
kCertification
]->fill(cert);
54
}
55
56
/*static*/
57
void
58
CertificationClient::setMEData
(std::vector<MEData>& _data)
59
{
60
_data[
kCertificationMap
] =
MEData
(
"CertificationMap"
,
BinService::kEcal
,
BinService::kSuperCrystal
,
MonitorElement::DQM_KIND_TH2F
);
61
_data[
kCertificationContents
] =
MEData
(
"CertificationContents"
,
BinService::kSM
,
BinService::kReport
,
MonitorElement::DQM_KIND_REAL
);
62
_data[
kCertification
] =
MEData
(
"Certification"
,
BinService::kEcal
,
BinService::kReport
,
MonitorElement::DQM_KIND_REAL
);
63
_data[
kReportSummaryMap
] =
MEData
(
"ReportSummaryMap"
,
BinService::kEcal
,
BinService::kSuperCrystal
,
MonitorElement::DQM_KIND_TH2F
);
64
_data[
kReportSummaryContents
] =
MEData
(
"ReportSummaryContents"
,
BinService::kSM
,
BinService::kReport
,
MonitorElement::DQM_KIND_REAL
);
65
_data[
kReportSummary
] =
MEData
(
"ReportSummary"
,
BinService::kEcal
,
BinService::kReport
,
MonitorElement::DQM_KIND_REAL
);
66
}
67
68
DEFINE_ECALDQM_WORKER
(
CertificationClient
);
69
}
70
ecaldqm::TowerStatusTask::kDAQSummaryMap
Definition:
TowerStatusTask.h:24
EcalDQMBinningService::kReport
Definition:
EcalDQMBinningService.h:54
lumiContext.fill
string fill
Definition:
lumiContext.py:319
ecaldqm::CertificationClient::sDAQ
Definition:
CertificationClient.h:35
ecaldqm::DQWorkerClient
Definition:
DQWorkerClient.h:13
ecaldqm::CertificationClient::bookMEs
void bookMEs()
Definition:
CertificationClient.cc:25
SummaryClient.h
ecaldqm::RawDataTask::kFEStatus
Definition:
RawDataTask.h:45
ecaldqm::CertificationClient::beginRun
void beginRun(const edm::Run &, const edm::EventSetup &)
Definition:
CertificationClient.cc:37
ecaldqm::CertificationClient::kReportSummaryMap
Definition:
CertificationClient.h:23
ecaldqm::IntegrityTask::kByLumi
Definition:
IntegrityTask.h:26
ecaldqm::CertificationClient::sIntegrity
Definition:
CertificationClient.h:32
ecaldqm::CertificationClient::kReportSummaryContents
Definition:
CertificationClient.h:24
ecaldqm::DQWorkerClient::source_
void source_(unsigned, std::string const &, unsigned, edm::ParameterSet const &)
Definition:
DQWorkerClient.cc:45
ecaldqm::CertificationClient::kCertification
Definition:
CertificationClient.h:22
ecaldqm::CertificationClient
Definition:
CertificationClient.h:8
ecaldqm::CertificationClient::sDesync
Definition:
CertificationClient.h:34
ecaldqm::CertificationClient::sFEStatus
Definition:
CertificationClient.h:33
TowerStatusTask.h
edm::ParameterSet::getUntrackedParameterSet
ParameterSet const & getUntrackedParameterSet(std::string const &name, ParameterSet const &defaultValue) const
Definition:
ParameterSet.cc:2347
EcalDQMBinningService::kEcal
Definition:
EcalDQMBinningService.h:37
RawDataTask.h
MonitorElement::DQM_KIND_REAL
Definition:
MonitorElement.h:50
IntegrityTask.h
edm::EventSetup
Definition:
EventSetup.h:44
EcalDQMBinningService::kSuperCrystal
Definition:
EcalDQMBinningService.h:48
ecaldqm::CertificationClient::kCertificationMap
Definition:
CertificationClient.h:20
EcalDQMCommonUtils.h
ecaldqm::DQWorker::MEs_
std::vector< MESet * > MEs_
Definition:
DQWorker.h:56
EcalDQMBinningService::kSM
Definition:
EcalDQMBinningService.h:35
ecaldqm::CertificationClient::setMEData
static void setMEData(std::vector< MEData > &)
Definition:
CertificationClient.cc:58
ecaldqm::CertificationClient::sDCS
Definition:
CertificationClient.h:36
MonitorElement.h
ecaldqm::MEData
Definition:
MESet.h:20
ecaldqm::CertificationClient::producePlots
void producePlots()
Definition:
CertificationClient.cc:46
edm::ParameterSet
Definition:
ParameterSet.h:35
ecaldqm::CertificationClient::kReportSummary
Definition:
CertificationClient.h:25
ecaldqm::DEFINE_ECALDQM_WORKER
DEFINE_ECALDQM_WORKER(CertificationClient)
ecaldqm::TowerStatusTask::kDCSSummaryMap
Definition:
TowerStatusTask.h:27
MonitorElement::DQM_KIND_TH2F
Definition:
MonitorElement.h:55
ecaldqm::CertificationClient::CertificationClient
CertificationClient(const edm::ParameterSet &, const edm::ParameterSet &)
Definition:
CertificationClient.cc:13
ecaldqm::RawDataTask::kDesyncByLumi
Definition:
RawDataTask.h:43
ecaldqm::CertificationClient::kCertificationContents
Definition:
CertificationClient.h:21
edm::Run
Definition:
Run.h:33
Generated for CMSSW Reference Manual by
1.8.5