CMS 3D CMS Logo

ESDataCertificationTask.cc
Go to the documentation of this file.
1 #include <iostream>
2 
7 
10 
12 
16 
19 
21 
22 using namespace cms;
23 using namespace edm;
24 using namespace std;
25 
27 
28  dqmStore_ = Service<DQMStore>().operator->();
29 
30  prefixME_ = ps.getUntrackedParameter<string>("prefixME", "");
31 
32  enableCleanup_ = ps.getUntrackedParameter<bool>("enableCleanup", false);
33 
34  mergeRuns_ = ps.getUntrackedParameter<bool>("mergeRuns", false);
35 
36  meESDataCertificationSummary_ = nullptr;
37  meESDataCertificationSummaryMap_ = nullptr;
38 
39 }
40 
42 
43 }
44 
46 
47  char histo[200];
48 
49  if ( dqmStore_ ) {
50 
51  dqmStore_->setCurrentFolder(prefixME_ + "/EventInfo");
52 
53  sprintf(histo, "CertificationSummary");
54  meESDataCertificationSummary_ = dqmStore_->bookFloat(histo);
55  meESDataCertificationSummary_->Fill(0.0);
56 
57  sprintf(histo, "CertificationSummaryMap");
58  meESDataCertificationSummaryMap_ = dqmStore_->book2D(histo,histo, 40, 0., 40., 40, 0., 40.);
59  meESDataCertificationSummaryMap_->setAxisTitle("X", 1);
60  meESDataCertificationSummaryMap_->setAxisTitle("Y", 2);
61 
62  }
63 
64 }
65 
67 
68  if ( enableCleanup_ ) this->cleanup();
69 
70 }
71 
73 
74  this->reset();
75 
76 }
77 
78 
80 
81  if ( meESDataCertificationSummary_ ) meESDataCertificationSummary_->Reset();
82 
83  if ( meESDataCertificationSummaryMap_ ) meESDataCertificationSummaryMap_->Reset();
84 
85 }
86 
87 
89 
90  if ( dqmStore_ ) {
91 
92  dqmStore_->setCurrentFolder(prefixME_ + "/EventInfo");
93 
94  if ( meESDataCertificationSummary_ ) dqmStore_->removeElement( meESDataCertificationSummary_->getName() );
95 
96  if ( meESDataCertificationSummaryMap_ ) dqmStore_->removeElement( meESDataCertificationSummaryMap_->getName() );
97 
98  }
99 
100 }
101 
103 
104 }
105 
T getUntrackedParameter(std::string const &, T const &) const
void analyze(const edm::Event &e, const edm::EventSetup &c) override
static void cleanup(const Factory::MakerMap::value_type &v)
Definition: Factory.cc:12
#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)