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 
ESDataCertificationTask.h
ESDataCertificationTask::beginLuminosityBlock
void beginLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup) override
Definition: ESDataCertificationTask.cc:57
MessageLogger.h
RunSummaryRcd.h
ESHandle.h
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm
HLT enums.
Definition: AlignableModifier.h:19
ESDataCertificationTask
Definition: ESDataCertificationTask.h:9
timingPdfMaker.histo
histo
Definition: timingPdfMaker.py:279
DQMStore.h
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
ESDetId.h
ESDataCertificationTask::analyze
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Definition: ESDataCertificationTask.cc:70
ESDataCertificationTask::reset
void reset(void)
Definition: ESDataCertificationTask.cc:62
ESDataCertificationTask::~ESDataCertificationTask
~ESDataCertificationTask() override
Definition: ESDataCertificationTask.cc:36
MakerMacros.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
Service.h
edm::ParameterSet
Definition: ParameterSet.h:47
edm::Service
Definition: Service.h:30
edm::EventSetup
Definition: EventSetup.h:57
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
RunSummary.h
RunInfo.h
std
Definition: JetResolutionObject.h:76
Frameworkfwd.h
EventSetup.h
reset
void reset(double vett[256])
Definition: TPedValues.cc:11
ESDataCertificationTask::endJob
void endJob(void) override
Definition: ESDataCertificationTask.cc:55
ESDataCertificationTask::beginJob
void beginJob(void) override
Definition: ESDataCertificationTask.cc:38
edm::Event
Definition: Event.h:73
ESDataCertificationTask::ESDataCertificationTask
ESDataCertificationTask(const edm::ParameterSet &ps)
Definition: ESDataCertificationTask.cc:25
cms
Namespace of DDCMS conversion namespace.
Definition: ProducerAnalyzer.cc:21
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37