diff --git a/DQM/SiPixelPhase1Summary/src/SiPixelPhase1Summary.cc b/DQM/SiPixelPhase1Summary/src/SiPixelPhase1Summary.cc index 9a80f5c832e78..22259f69eea25 100644 --- a/DQM/SiPixelPhase1Summary/src/SiPixelPhase1Summary.cc +++ b/DQM/SiPixelPhase1Summary/src/SiPixelPhase1Summary.cc @@ -272,6 +272,7 @@ void SiPixelPhase1Summary::fillSummaries(DQMStore::IBooker& iBooker, DQMStore::I //Fill the dead ROC summary std::vector trendOrder = {layer1, layer2, layer3, layer4, ring1, ring2}; std::vector nRocsPerTrend = {1536, 3584, 5632, 8192, 4224, 6528}; + std::vector nDisabledRocs = {12, 128, 240, 320, 96, 120}; for (unsigned int i = 0; i < trendOrder.size(); i++) { int xBin = i < 4 ? 1 : 2; int yBin = i % 4 + 1; @@ -321,7 +322,9 @@ void SiPixelPhase1Summary::fillSummaries(DQMStore::IBooker& iBooker, DQMStore::I // Filled ROCs = Total number - dead ROCs numFilledROCs = nRocsPerTrend[i] - numDeadROCs; //Fill with fraction of filled ROCs (with digis) - fracFilledROCs = numFilledROCs / nRocsPerTrend[i]; + fracFilledROCs = numFilledROCs / (nRocsPerTrend[i] - nDisabledRocs[i]); + if (fracFilledROCs > 1) + fracFilledROCs = 1; deadROCSummary->setBinContent(xBin, yBin, fracFilledROCs); deadROCSummary->setBinContent(2, 3, -1); deadROCSummary->setBinContent(2, 4, -1);