Skip to content

Commit

Permalink
A cosmetic bug for the summary plot has been fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
quark2 committed Jul 23, 2024
1 parent 4241872 commit c9b766a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DQM/GEM/plugins/GEMDQMHarvester.cc
Original file line number Diff line number Diff line change
Expand Up @@ -349,12 +349,13 @@ void GEMDQMHarvester::getGeometryInfo(edm::Service<DQMStore> &store, MonitorElem
if (h2Src != nullptr) { // For online and offline
Int_t nBinY = h2Src->getNbinsY();
listLayer_.push_back("");
Int_t nNumMerge = std::max((Int_t)(h2Src->getBinContent(0, 0) + 0.5), 1);

for (Int_t i = 1; i <= nBinY; i++) {
std::string strLabelFull = h2Src->getTH2F()->GetYaxis()->GetBinLabel(i);
auto nPos = strLabelFull.find(';');
auto strLayer = strLabelFull.substr(nPos + 1);
Int_t nBinXActual = (Int_t)(h2Src->getBinContent(0, i) + 0.5);
Int_t nBinXActual = ((Int_t)(h2Src->getBinContent(0, i) + 0.5)) / nNumMerge;
if (nBinXActual > 108) { // When the number seems wrong
if (strLayer.find("GE11") != std::string::npos) {
nBinXActual = 36;
Expand Down
2 changes: 2 additions & 0 deletions DQM/GEM/src/GEMDQMBase.cc
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ dqm::impl::MonitorElement* GEMDQMBase::CreateSummaryHist(DQMStore::IBooker& iboo
h2Res->setBinContent(0, i, nNumCh);
}

h2Res->setBinContent(0, 0, 1.0);

return h2Res;
}

Expand Down

0 comments on commit c9b766a

Please sign in to comment.