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)
 
virtual void setTokens (edm::ConsumesCollector &)
 
 ~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 &)
 
bool checkElectronicsMap (bool=true)
 
bool checkGeometry (bool=true)
 
bool checkTopology (bool=true)
 
bool checkTrigTowerMap (bool=true)
 
 DQWorker ()
 
virtual void endRun (edm::Run const &, edm::EventSetup const &)
 
EcalDQMSetupObjects const getEcalDQMSetupObjects ()
 
EcalElectronicsMapping const * GetElectronicsMap ()
 
CaloGeometry const * GetGeometry ()
 
std::string const & getName () const
 
CaloTopology const * GetTopology ()
 
EcalTrigTowerConstituentsMap const * GetTrigTowerMap ()
 
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 setSetupObjectsEndLumi (edm::EventSetup const &)
 
void setTime (time_t _t)
 
void setTokens (edm::ConsumesCollector &)
 
virtual ~DQWorker () noexcept(false)
 

Additional Inherited Members

- Public Types inherited from ecaldqm::DQWorkerClient
enum  ProcessType { kLumi, kJob, nProcessType }
 
- 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)
 
- Public Attributes inherited from ecaldqm::DQWorker
edm::ESGetToken< EcalElectronicsMapping, EcalMappingRcdelecMapHandle
 
edm::ESGetToken< EcalElectronicsMapping, EcalMappingRcdelecMapHandleEndLumi
 
edm::ESGetToken< CaloGeometry, CaloGeometryRecordgeomHandle
 
edm::ESGetToken< CaloGeometry, CaloGeometryRecordgeomHandleEndLumi
 
edm::ESGetToken< CaloTopology, CaloTopologyRecordtopoHandle
 
edm::ESGetToken< CaloTopology, CaloTopologyRecordtopoHandleEndLumi
 
edm::ESGetToken< EcalTrigTowerConstituentsMap, IdealGeometryRecordttMapHandle
 
edm::ESGetToken< EcalTrigTowerConstituentsMap, IdealGeometryRecordttMapHandleEndLumi
 
- Static Public Attributes inherited from ecaldqm::DQWorkerClient
static constexpr int kBad = 0
 
static constexpr int kGood = 1
 
static constexpr int kMBad = 3
 
static constexpr int kMGood = 4
 
static constexpr int kMUnknown = 5
 
static constexpr int kUnknown = 2
 
- 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.

References ecaldqm::DQWorkerClient::qualitySummaries_.

7  : DQWorkerClient() {
8  qualitySummaries_.insert("CertificationMap");
9  qualitySummaries_.insert("CertificationContents");
10  qualitySummaries_.insert("Certification");
11  }
std::set< std::string > 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.

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

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  }
MESet & at(const std::string &key)
Definition: MESet.h:399
unsigned nCrystals(unsigned)
static constexpr int nChannels
MESetCollection sources_
EcalDQMSetupObjects const getEcalDQMSetupObjects()
Definition: DQWorker.cc:170
static constexpr int nDCC
MESetCollection MEs_
Definition: DQWorker.h:131