CMS 3D CMS Logo

List of all members | Public Member Functions
ecaldqm::CertificationClient Class Reference

#include <CertificationClient.h>

Inheritance diagram for ecaldqm::CertificationClient:
ecaldqm::DQWorkerClient ecaldqm::DQWorker

Public Member Functions

 CertificationClient ()
 
void producePlots (ProcessType) override
 
 ~CertificationClient () override
 
- Public Member Functions inherited from ecaldqm::DQWorkerClient
void bookMEs (DQMStore::IBooker &) override
 
 DQWorkerClient ()
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override
 
void releaseMEs () override
 
void releaseSource ()
 
virtual void resetMEs ()
 
void resetPerLumi ()
 
bool retrieveSource (DQMStore::IGetter &, ProcessType)
 
bool runsOn (ProcessType _type) const
 
void setStatusManager (StatusManager const &_manager)
 
 ~DQWorkerClient () override
 
- Public Member Functions inherited from ecaldqm::DQWorker
virtual void beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void beginRun (edm::Run const &, edm::EventSetup const &)
 
 DQWorker ()
 
virtual void endRun (edm::Run const &, edm::EventSetup const &)
 
const EcalDQMSetupObjects getEcalDQMSetupObjects ()
 
const EcalElectronicsMappingGetElectronicsMap ()
 
const CaloGeometryGetGeometry ()
 
const std::string & getName () const
 
const CaloTopologyGetTopology ()
 
const EcalTrigTowerConstituentsMapGetTrigTowerMap ()
 
bool onlineMode () const
 
void setEventNumber (edm::EventNumber_t _e)
 
void setLumiNumber (edm::LuminosityBlockNumber_t _l)
 
void setRunNumber (edm::RunNumber_t _r)
 
void setSetupObjects (edm::EventSetup const &)
 
void setTime (time_t _t)
 
virtual ~DQWorker () noexcept(false)
 

Additional Inherited Members

- Public Types inherited from ecaldqm::DQWorkerClient
enum  ProcessType { kLumi, kJob, nProcessType }
 
enum  Quality {
  kBad = 0, kGood = 1, kUnknown = 2, kMBad = 3,
  kMGood = 4, kMUnknown = 5
}
 
- Static Public Member Functions inherited from ecaldqm::DQWorkerClient
static void fillDescriptions (edm::ParameterSetDescription &)
 
- Static Public Member Functions inherited from ecaldqm::DQWorker
static void fillDescriptions (edm::ParameterSetDescription &_desc)
 
- Protected Types inherited from ecaldqm::DQWorker
typedef dqm::legacy::DQMStore DQMStore
 
typedef dqm::legacy::MonitorElement MonitorElement
 
- Protected Member Functions inherited from ecaldqm::DQWorkerClient
void setME (edm::ParameterSet const &_ps) final
 
void setSource (edm::ParameterSet const &) override
 
void towerAverage_ (MESet &, MESet const &, float)
 
bool using_ (std::string const &_name, ProcessType _type=kJob) const
 
- Protected Member Functions inherited from ecaldqm::DQWorker
void initialize (std::string const &_name, edm::ParameterSet const &)
 
void print_ (std::string const &, int=0) const
 
virtual void setParams (edm::ParameterSet const &)
 
void setVerbosity (int _verbosity)
 
- Protected Attributes inherited from ecaldqm::DQWorkerClient
bool hasLumiPlots_
 
std::set< std::string > qualitySummaries_
 
MESetCollection sources_
 
StatusManager const * statusManager_
 
- Protected Attributes inherited from ecaldqm::DQWorker
bool booked_
 
MESetCollection MEs_
 
std::string name_
 
bool onlineMode_
 
Timestamp timestamp_
 
int verbosity_
 
bool willConvertToEDM_
 

Detailed Description

Definition at line 8 of file CertificationClient.h.

Constructor & Destructor Documentation

◆ CertificationClient()

ecaldqm::CertificationClient::CertificationClient ( )

Definition at line 7 of file CertificationClient.cc.

7  : DQWorkerClient() {
8  qualitySummaries_.insert("CertificationMap");
9  qualitySummaries_.insert("CertificationContents");
10  qualitySummaries_.insert("Certification");
11  }

References ecaldqm::DQWorkerClient::qualitySummaries_.

◆ ~CertificationClient()

ecaldqm::CertificationClient::~CertificationClient ( )
inlineoverride

Definition at line 11 of file CertificationClient.h.

11 {}

Member Function Documentation

◆ producePlots()

void ecaldqm::CertificationClient::producePlots ( ProcessType  )
overridevirtual

Implements ecaldqm::DQWorkerClient.

Definition at line 13 of file CertificationClient.cc.

13  {
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  }

References ecaldqm::MESetCollection::at(), ecaldqm::DQWorker::getEcalDQMSetupObjects(), ecaldqm::DQWorker::MEs_, ecaldqm::nChannels, ecaldqm::nCrystals(), ecaldqm::nDCC, and ecaldqm::DQWorkerClient::sources_.

ecaldqm::nChannels
Definition: EcalDQMCommonUtils.h:113
ecaldqm::DQWorkerClient::qualitySummaries_
std::set< std::string > qualitySummaries_
Definition: DQWorkerClient.h:56
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::DQWorkerClient
DQWorkerClient()
Definition: DQWorkerClient.cc:17
ecaldqm::DQWorker::getEcalDQMSetupObjects
const EcalDQMSetupObjects getEcalDQMSetupObjects()
Definition: DQWorker.cc:128
ecaldqm::nDCC
Definition: EcalDQMCommonUtils.h:91