CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CertificationClient.cc
Go to the documentation of this file.
1 #include "../interface/CertificationClient.h"
2 
4 
5 namespace ecaldqm
6 {
7 
10  {
11  qualitySummaries_.insert("CertificationMap");
12  qualitySummaries_.insert("CertificationContents");
13  qualitySummaries_.insert("Certification");
14  }
15 
16  void
18  {
19  MESet& meCertificationContents(MEs_.at("CertificationContents"));
20  MESet& meCertificationMap(MEs_.at("CertificationMap"));
21  MESet& meCertification(MEs_.at("Certification"));
22 
23  MESet const& sDAQ(sources_.at("DAQ"));
24  MESet const& sDCS(sources_.at("DCS"));
25  MESet const& sDQM(sources_.at("DQM"));
26 
27  double meanValue(0.);
28  for(int iDCC(0); iDCC < nDCC; ++iDCC){
29  double certValue(sDAQ.getBinContent(iDCC + 1) *
30  sDCS.getBinContent(iDCC + 1) *
31  sDQM.getBinContent(iDCC + 1));
32 
33  meCertificationContents.fill(iDCC + 1, certValue);
34  meCertificationMap.setBinContent(iDCC + 1, certValue);
35 
36  meanValue += certValue * nCrystals(iDCC + 1);
37  }
38 
39  meCertification.fill(meanValue / nChannels);
40  }
41 
43 }
44 
45 
#define DEFINE_ECALDQM_WORKER(TYPE)
Definition: DQWorker.h:108
void producePlots(ProcessType) override
unsigned nCrystals(unsigned)
std::set< std::string > qualitySummaries_
MESetCollection sources_
MESetCollection MEs_
Definition: DQWorker.h:75