CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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(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 
38 } // namespace ecaldqm
#define DEFINE_ECALDQM_WORKER(TYPE)
Definition: DQWorker.h:162
MESet & at(const std::string &key)
Definition: MESet.h:399
void producePlots(ProcessType) override
unsigned nCrystals(unsigned)
std::set< std::string > qualitySummaries_
MESetCollection sources_
EcalDQMSetupObjects const getEcalDQMSetupObjects()
Definition: DQWorker.cc:142
MESetCollection MEs_
Definition: DQWorker.h:125