41 if (! igetter.
get(
"CertificationSummary")) {
42 totalCertFraction = ibooker.
bookFloat(
"CertificationSummary");
43 totalCertFraction->
Fill(-1);
46 certMap = ibooker.
book2D(
"CertificationSummaryMap",
"DT Certification Summary Map",12,1,13,5,-2,3);
48 certMap->setAxisTitle(
"wheel",2);
54 streams <<
"DT_Wheel" <<
wheel;
74 MonitorElement* effSummary = igetter.
get(
"DT/05-ChamberEff/EfficiencyGlbSummary");
79 if(effSummary ==
nullptr || resSummary ==
nullptr || segQualSummary ==
nullptr) {
80 LogWarning(
"DQM|DTMonitorClient|DTCertificationSummary") <<
"*** Warning: not all needed summaries are present!" << endl;
85 totalCertFraction->Fill(0.);
86 certFractions[-2]->Fill(0.);
87 certFractions[-1]->Fill(0.);
88 certFractions[-0]->Fill(0.);
89 certFractions[1]->Fill(0.);
90 certFractions[2]->Fill(0.);
95 for(
int sector = 1; sector != 13; ++sector) {
102 total =
min(res,eff);
107 certMap->Fill(sector,
wheel,total);
110 certFractions[
wheel]->Fill(certFractions[
wheel]->getFloatValue() + weight*total);
111 double totalWeight = 1./60.;
112 totalCertFraction->Fill(totalCertFraction->getFloatValue() + totalWeight*
total);
void beginRun(const edm::Run &run, const edm::EventSetup &setup) override
def setup(process, global_tag, zero_tesla=False)
DTCertificationSummary(const edm::ParameterSet &pset)
Constructor.
void endRun(const edm::Run &run, const edm::EventSetup &setup) override
void setCurrentFolder(std::string const &fullpath)
MonitorElement * get(std::string const &path)
MonitorElement * book2D(Args &&...args)
double getBinContent(int binx) const
get content of bin (1-D)
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
DQM Client Diagnostic in offline mode.
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
DQM Client Diagnostic in online mode.
~DTCertificationSummary() override
Destructor.
MonitorElement * bookFloat(Args &&...args)
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)