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  dqmStore_ = Service<DQMStore>().operator->();
27 
28  prefixME_ = ps.getUntrackedParameter<string>("prefixME", "");
29 
30  mergeRuns_ = ps.getUntrackedParameter<bool>("mergeRuns", false);
31 
32  meESDataCertificationSummary_ = nullptr;
33  meESDataCertificationSummaryMap_ = nullptr;
34 }
35 
37 
39  char histo[200];
40 
41  if (dqmStore_) {
42  dqmStore_->setCurrentFolder(prefixME_ + "/EventInfo");
43 
44  sprintf(histo, "CertificationSummary");
45  meESDataCertificationSummary_ = dqmStore_->bookFloat(histo);
46  meESDataCertificationSummary_->Fill(0.0);
47 
48  sprintf(histo, "CertificationSummaryMap");
49  meESDataCertificationSummaryMap_ = dqmStore_->book2D(histo, histo, 40, 0., 40., 40, 0., 40.);
50  meESDataCertificationSummaryMap_->setAxisTitle("X", 1);
51  meESDataCertificationSummaryMap_->setAxisTitle("Y", 2);
52  }
53 }
54 
56 
58  const edm::EventSetup& iSetup) {
59  this->reset();
60 }
61 
63  if (meESDataCertificationSummary_)
64  meESDataCertificationSummary_->Reset();
65 
66  if (meESDataCertificationSummaryMap_)
67  meESDataCertificationSummaryMap_->Reset();
68 }
69 
71 
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
void analyze(const edm::Event &e, const edm::EventSetup &c) override
T getUntrackedParameter(std::string const &, T const &) const
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)