Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:07:16

0001 #include "DQM/EcalMonitorClient/interface/CertificationClient.h"
0002 
0003 #include "DQM/EcalCommon/interface/EcalDQMCommonUtils.h"
0004 
0005 namespace ecaldqm {
0006 
0007   CertificationClient::CertificationClient() : DQWorkerClient() {
0008     qualitySummaries_.insert("CertificationMap");
0009     qualitySummaries_.insert("CertificationContents");
0010     qualitySummaries_.insert("Certification");
0011   }
0012 
0013   void CertificationClient::producePlots(ProcessType) {
0014     MESet& meCertificationContents(MEs_.at("CertificationContents"));
0015     MESet& meCertificationMap(MEs_.at("CertificationMap"));
0016     MESet& meCertification(MEs_.at("Certification"));
0017 
0018     MESet const& sDAQ(sources_.at("DAQ"));
0019     MESet const& sDCS(sources_.at("DCS"));
0020     MESet const& sDQM(sources_.at("DQM"));
0021 
0022     double meanValue(0.);
0023     for (int iDCC(0); iDCC < nDCC; ++iDCC) {
0024       double certValue(sDAQ.getBinContent(getEcalDQMSetupObjects(), iDCC + 1) *
0025                        sDCS.getBinContent(getEcalDQMSetupObjects(), iDCC + 1) *
0026                        sDQM.getBinContent(getEcalDQMSetupObjects(), iDCC + 1));
0027 
0028       meCertificationContents.fill(getEcalDQMSetupObjects(), iDCC + 1, certValue);
0029       meCertificationMap.setBinContent(getEcalDQMSetupObjects(), iDCC + 1, certValue);
0030 
0031       meanValue += certValue * nCrystals(iDCC + 1);
0032     }
0033 
0034     meCertification.fill(getEcalDQMSetupObjects(), meanValue / nChannels);
0035   }
0036 
0037   DEFINE_ECALDQM_WORKER(CertificationClient);
0038 }  // namespace ecaldqm