Skip to content

Commit

Permalink
Disabled ROCs for Online DQM Pixel Summary
Browse files Browse the repository at this point in the history
alaperto committed May 23, 2024
1 parent 32dc277 commit 0f3e711
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion DQM/SiPixelPhase1Summary/src/SiPixelPhase1Summary.cc
Original file line number Diff line number Diff line change
@@ -272,6 +272,7 @@ void SiPixelPhase1Summary::fillSummaries(DQMStore::IBooker& iBooker, DQMStore::I
//Fill the dead ROC summary
std::vector<trendPlots> trendOrder = {layer1, layer2, layer3, layer4, ring1, ring2};
std::vector<int> nRocsPerTrend = {1536, 3584, 5632, 8192, 4224, 6528};
std::vector<int> 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);

0 comments on commit 0f3e711

Please sign in to comment.