CMS 3D CMS Logo

CertificationClient.cc
Go to the documentation of this file.
2 
4 
5 namespace ecaldqm {
6 
8  qualitySummaries_.insert("CertificationMap");
9  qualitySummaries_.insert("CertificationContents");
10  qualitySummaries_.insert("Certification");
11  }
12 
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(iDCC + 1) * sDCS.getBinContent(iDCC + 1) * sDQM.getBinContent(iDCC + 1));
25 
26  meCertificationContents.fill(iDCC + 1, certValue);
27  meCertificationMap.setBinContent(iDCC + 1, certValue);
28 
29  meanValue += certValue * nCrystals(iDCC + 1);
30  }
31 
32  meCertification.fill(meanValue / nChannels);
33  }
34 
36 } // namespace ecaldqm
ecaldqm
Definition: DQWorker.h:24
ecaldqm::nChannels
Definition: EcalDQMCommonUtils.h:114
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:78
ecaldqm::DQWorkerClient::sources_
MESetCollection sources_
Definition: DQWorkerClient.h:55
ecaldqm::nCrystals
unsigned nCrystals(unsigned)
Definition: EcalDQMCommonUtils.cc:334
ecaldqm::DQWorkerClient
Definition: DQWorkerClient.h:13
ecaldqm::nDCC
Definition: EcalDQMCommonUtils.h:92
ecaldqm::CertificationClient::producePlots
void producePlots(ProcessType) override
Definition: CertificationClient.cc:13
DEFINE_ECALDQM_WORKER
#define DEFINE_ECALDQM_WORKER(TYPE)
Definition: DQWorker.h:112
CertificationClient.h
ecaldqm::CertificationClient
Definition: CertificationClient.h:8
EcalDQMCommonUtils.h
ecaldqm::MESet
Definition: MESet.h:27