CMS 3D CMS Logo

ESDataCertificationTask.cc
Go to the documentation of this file.
1 #include <iostream>
2 
7 
10 
12 
16 
18 
20 
21 using namespace cms;
22 using namespace edm;
23 using namespace std;
24 
26  usesResource("DQMStore");
27  dqmStore_ = Service<DQMStore>().operator->();
28 
29  prefixME_ = ps.getUntrackedParameter<string>("prefixME", "");
30 
31  mergeRuns_ = ps.getUntrackedParameter<bool>("mergeRuns", false);
32 
33  meESDataCertificationSummary_ = nullptr;
34  meESDataCertificationSummaryMap_ = nullptr;
35 }
36 
38 
40  char histo[200];
41 
42  if (dqmStore_) {
43  dqmStore_->setCurrentFolder(prefixME_ + "/EventInfo");
44 
45  sprintf(histo, "CertificationSummary");
46  meESDataCertificationSummary_ = dqmStore_->bookFloat(histo);
47  meESDataCertificationSummary_->Fill(0.0);
48 
49  sprintf(histo, "CertificationSummaryMap");
50  meESDataCertificationSummaryMap_ = dqmStore_->book2D(histo, histo, 40, 0., 40., 40, 0., 40.);
51  meESDataCertificationSummaryMap_->setAxisTitle("X", 1);
52  meESDataCertificationSummaryMap_->setAxisTitle("Y", 2);
53  }
54 }
55 
57 
59  const edm::EventSetup& iSetup) {
60  this->reset();
61 }
62 
64 
66  if (meESDataCertificationSummary_)
67  meESDataCertificationSummary_->Reset();
68 
69  if (meESDataCertificationSummaryMap_)
70  meESDataCertificationSummaryMap_->Reset();
71 }
72 
74 
void analyze(const edm::Event &e, const edm::EventSetup &c) override
void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
T getUntrackedParameter(std::string const &, T const &) const
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
Namespace of DDCMS conversion namespace.
HLT enums.
void reset(double vett[256])
Definition: TPedValues.cc:11
void beginLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup) override
ESDataCertificationTask(const edm::ParameterSet &ps)