DQM
EcalMonitorClient
src
CertificationClient.cc
Go to the documentation of this file.
1
#include "
DQM/EcalMonitorClient/interface/CertificationClient.h
"
2
3
#include "
DQM/EcalCommon/interface/EcalDQMCommonUtils.h
"
4
5
namespace
ecaldqm
{
6
7
CertificationClient::CertificationClient
() :
DQWorkerClient
() {
8
qualitySummaries_
.insert(
"CertificationMap"
);
9
qualitySummaries_
.insert(
"CertificationContents"
);
10
qualitySummaries_
.insert(
"Certification"
);
11
}
12
13
void
CertificationClient::producePlots
(
ProcessType
) {
14
MESet
& meCertificationContents(
MEs_
.
at
(
"CertificationContents"
));
15
MESet
& meCertificationMap(
MEs_
.
at
(
"CertificationMap"
));
16
MESet
& meCertification(
MEs_
.
at
(
"Certification"
));
17
18
MESet
const
& sDAQ(
sources_
.
at
(
"DAQ"
));
19
MESet
const
& sDCS(
sources_
.
at
(
"DCS"
));
20
MESet
const
& sDQM(
sources_
.
at
(
"DQM"
));
21
22
double
meanValue(0.);
23
for
(
int
iDCC(0); iDCC <
nDCC
; ++iDCC) {
24
double
certValue(sDAQ.getBinContent(
getEcalDQMSetupObjects
(), iDCC + 1) *
25
sDCS.getBinContent(
getEcalDQMSetupObjects
(), iDCC + 1) *
26
sDQM.getBinContent(
getEcalDQMSetupObjects
(), iDCC + 1));
27
28
meCertificationContents.fill(
getEcalDQMSetupObjects
(), iDCC + 1, certValue);
29
meCertificationMap.setBinContent(
getEcalDQMSetupObjects
(), iDCC + 1, certValue);
30
31
meanValue += certValue *
nCrystals
(iDCC + 1);
32
}
33
34
meCertification.fill(
getEcalDQMSetupObjects
(), meanValue /
nChannels
);
35
}
36
37
DEFINE_ECALDQM_WORKER
(
CertificationClient
);
38
}
// namespace ecaldqm
ecaldqm
Definition:
DQWorker.h:29
ecaldqm::nChannels
Definition:
EcalDQMCommonUtils.h:113
ecaldqm::DQWorkerClient::qualitySummaries_
std::set< std::string > qualitySummaries_
Definition:
DQWorkerClient.h:56
ecaldqm::DQWorkerClient::ProcessType
ProcessType
Definition:
DQWorkerClient.h:15
ecaldqm::CertificationClient::CertificationClient
CertificationClient()
Definition:
CertificationClient.cc:7
ecaldqm::DQWorker::MEs_
MESetCollection MEs_
Definition:
DQWorker.h:104
ecaldqm::DQWorkerClient::sources_
MESetCollection sources_
Definition:
DQWorkerClient.h:55
ecaldqm::nCrystals
unsigned nCrystals(unsigned)
Definition:
EcalDQMCommonUtils.cc:334
ecaldqm::MESetCollection::at
MESet & at(const std::string &key)
Definition:
MESet.h:399
ecaldqm::DQWorkerClient
Definition:
DQWorkerClient.h:13
ecaldqm::DQWorker::getEcalDQMSetupObjects
const EcalDQMSetupObjects getEcalDQMSetupObjects()
Definition:
DQWorker.cc:128
ecaldqm::nDCC
Definition:
EcalDQMCommonUtils.h:91
ecaldqm::CertificationClient::producePlots
void producePlots(ProcessType) override
Definition:
CertificationClient.cc:13
DEFINE_ECALDQM_WORKER
#define DEFINE_ECALDQM_WORKER(TYPE)
Definition:
DQWorker.h:141
CertificationClient.h
ecaldqm::CertificationClient
Definition:
CertificationClient.h:8
EcalDQMCommonUtils.h
ecaldqm::MESet
Definition:
MESet.h:42
Generated for CMSSW Reference Manual by
1.8.16