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 ()
 
- 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 &)
 
std::string const & 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 ()(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 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

ecaldqm::CertificationClient::CertificationClient ( )

Definition at line 8 of file CertificationClient.cc.

References ecaldqm::DQWorkerClient::qualitySummaries_.

8  :
10  {
11  qualitySummaries_.insert("CertificationMap");
12  qualitySummaries_.insert("CertificationContents");
13  qualitySummaries_.insert("Certification");
14  }
std::set< std::string > qualitySummaries_
ecaldqm::CertificationClient::~CertificationClient ( )
inline

Definition at line 11 of file CertificationClient.h.

References producePlots().

11 {}

Member Function Documentation

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

Implements ecaldqm::DQWorkerClient.

Definition at line 17 of file CertificationClient.cc.

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

Referenced by ~CertificationClient().

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  }
unsigned nCrystals(unsigned)
MESetCollection sources_
MESetCollection MEs_
Definition: DQWorker.h:75