CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CertificationClient.cc
Go to the documentation of this file.
1 #include "../interface/CertificationClient.h"
2 
7 
10 
11 namespace ecaldqm {
12 
14  DQWorkerClient(_params, _paths, "CertificationClient")
15  {
16  edm::ParameterSet const& sources(_params.getUntrackedParameterSet("sources"));
17  source_(sIntegrity, "IntegrityTask", IntegrityTask::kByLumi, sources);
18  source_(sFEStatus, "RawDataTask", RawDataTask::kFEStatus, sources);
19  source_(sDesync, "RawDataTask", RawDataTask::kDesyncByLumi, sources);
20  source_(sDAQ, "TowerStatusTask", TowerStatusTask::kDAQSummaryMap, sources);
21  source_(sDCS, "TowerStatusTask", TowerStatusTask::kDCSSummaryMap, sources);
22  }
23 
24  void
26  {
28  for(unsigned iME(0); iME < sizeof(iMEs) / sizeof(unsigned); iME++)
29  MEs_[iMEs[iME]]->book();
30 
31  MEs_[kReportSummaryMap]->retrieve();
32  MEs_[kReportSummaryContents]->retrieve();
33  MEs_[kReportSummary]->retrieve();
34  }
35 
36  void
38  {
39  MEs_[kCertificationMap]->resetAll(-1.);
40  MEs_[kCertificationMap]->reset(1.);
41  MEs_[kCertificationContents]->reset(1.);
42  MEs_[kCertification]->reset(1.);
43  }
44 
45  void
47  {
48  MEs_[kCertificationMap]->reset(1.);
49  for(unsigned dccid(1); dccid <= 54; dccid++)
50  MEs_[kCertificationContents]->fill(dccid, 1.);
51 
52  float cert(1.);
53  MEs_[kCertification]->fill(cert);
54  }
55 
56  /*static*/
57  void
58  CertificationClient::setMEData(std::vector<MEData>& _data)
59  {
66  }
67 
69 }
70 
string fill
Definition: lumiContext.py:319
void beginRun(const edm::Run &, const edm::EventSetup &)
void source_(unsigned, std::string const &, unsigned, edm::ParameterSet const &)
ParameterSet const & getUntrackedParameterSet(std::string const &name, ParameterSet const &defaultValue) const
std::vector< MESet * > MEs_
Definition: DQWorker.h:56
static void setMEData(std::vector< MEData > &)
DEFINE_ECALDQM_WORKER(CertificationClient)
CertificationClient(const edm::ParameterSet &, const edm::ParameterSet &)
Definition: Run.h:33