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);
52 for(
int wheel = -2; wheel != 3; ++wheel) {
54 streams <<
"DT_Wheel" << wheel;
55 certFractions[wheel] = ibooker.
bookFloat(streams.str());
56 certFractions[wheel]->
Fill(-1);
74 MonitorElement* effSummary = igetter.
get(
"DT/05-ChamberEff/EfficiencyGlbSummary");
79 if(effSummary == 0 || resSummary == 0 || segQualSummary == 0) {
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.);
94 for(
int wheel = -2; wheel != 3; ++wheel) {
95 for(
int sector = 1; sector != 13; ++sector) {
98 double segQual = segQualSummary->
getBinContent(sector, wheel+3);
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 dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &)
DQM Client Diagnostic in offline mode.
MonitorElement * get(const std::string &path)
DTCertificationSummary(const edm::ParameterSet &pset)
Constructor.
void endRun(const edm::Run &run, const edm::EventSetup &setup)
void beginRun(const edm::Run &run, const edm::EventSetup &setup)
virtual ~DTCertificationSummary()
Destructor.
void setCurrentFolder(const std::string &fullpath)
MonitorElement * book2D(Args &&...args)
double getBinContent(int binx) const
get content of bin (1-D)
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)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &)
DQM Client Diagnostic in online mode.