@@ -272,6 +272,7 @@ void SiPixelPhase1Summary::fillSummaries(DQMStore::IBooker& iBooker, DQMStore::I
272272 // Fill the dead ROC summary
273273 std::vector<trendPlots> trendOrder = {layer1, layer2, layer3, layer4, ring1, ring2};
274274 std::vector<int > nRocsPerTrend = {1536 , 3584 , 5632 , 8192 , 4224 , 6528 };
275+ std::vector<int > nDisabledRocs = {12 , 128 , 240 , 320 , 96 , 120 };
275276 for (unsigned int i = 0 ; i < trendOrder.size (); i++) {
276277 int xBin = i < 4 ? 1 : 2 ;
277278 int yBin = i % 4 + 1 ;
@@ -321,7 +322,9 @@ void SiPixelPhase1Summary::fillSummaries(DQMStore::IBooker& iBooker, DQMStore::I
321322 // Filled ROCs = Total number - dead ROCs
322323 numFilledROCs = nRocsPerTrend[i] - numDeadROCs;
323324 // Fill with fraction of filled ROCs (with digis)
324- fracFilledROCs = numFilledROCs / nRocsPerTrend[i];
325+ fracFilledROCs = numFilledROCs / (nRocsPerTrend[i] - nDisabledRocs[i]);
326+ if (fracFilledROCs > 1 )
327+ fracFilledROCs = 1 ;
325328 deadROCSummary->setBinContent (xBin, yBin, fracFilledROCs);
326329 deadROCSummary->setBinContent (2 , 3 , -1 );
327330 deadROCSummary->setBinContent (2 , 4 , -1 );
0 commit comments