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 std::string & getName () const
 
bool onlineMode () const
 
void setEventNumber (edm::EventNumber_t _e)
 
void setLumiNumber (edm::LuminosityBlockNumber_t _l)
 
void setRunNumber (edm::RunNumber_t _r)
 
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(iDCC + 1) * sDCS.getBinContent(iDCC + 1) * sDQM.getBinContent(iDCC + 1));
25 
26  meCertificationContents.fill(iDCC + 1, certValue);
27  meCertificationMap.setBinContent(iDCC + 1, certValue);
28 
29  meanValue += certValue * nCrystals(iDCC + 1);
30  }
31 
32  meCertification.fill(meanValue / nChannels);
33  }

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

ecaldqm::nChannels
Definition: EcalDQMCommonUtils.h:114
ecaldqm::DQWorkerClient::qualitySummaries_
std::set< std::string > qualitySummaries_
Definition: DQWorkerClient.h:56
ecaldqm::DQWorker::MEs_
MESetCollection MEs_
Definition: DQWorker.h:78
ecaldqm::DQWorkerClient::sources_
MESetCollection sources_
Definition: DQWorkerClient.h:55
ecaldqm::nCrystals
unsigned nCrystals(unsigned)
Definition: EcalDQMCommonUtils.cc:334
ecaldqm::DQWorkerClient::DQWorkerClient
DQWorkerClient()
Definition: DQWorkerClient.cc:17
ecaldqm::nDCC
Definition: EcalDQMCommonUtils.h:92