test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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_ = 0;
37  meESDataCertificationSummaryMap_ = 0;
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 
79 
80 }
81 
83 
84  if ( meESDataCertificationSummary_ ) meESDataCertificationSummary_->Reset();
85 
86  if ( meESDataCertificationSummaryMap_ ) meESDataCertificationSummaryMap_->Reset();
87 
88 }
89 
90 
92 
93  if ( dqmStore_ ) {
94 
95  dqmStore_->setCurrentFolder(prefixME_ + "/EventInfo");
96 
97  if ( meESDataCertificationSummary_ ) dqmStore_->removeElement( meESDataCertificationSummary_->getName() );
98 
99  if ( meESDataCertificationSummaryMap_ ) dqmStore_->removeElement( meESDataCertificationSummaryMap_->getName() );
100 
101  }
102 
103 }
104 
106 
107 }
108 
T getUntrackedParameter(std::string const &, T const &) const
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
static void cleanup(const Factory::MakerMap::value_type &v)
Definition: Factory.cc:12
void endLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup)
void analyze(const edm::Event &e, const edm::EventSetup &c)
void beginLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup)
void reset(double vett[256])
Definition: TPedValues.cc:11
ESDataCertificationTask(const edm::ParameterSet &ps)