Skip to content

Commit

Permalink
MFT: check for empty FLP (#2419)
Browse files Browse the repository at this point in the history
* MFT: check for empty FLP

* MFT: comments and parameters name change
  • Loading branch information
Edingrast authored Sep 17, 2024
1 parent 4d3b576 commit 379cbe3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Modules/MFT/src/QcMFTDigitCheck.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,18 @@ Quality QcMFTDigitCheck::check(std::map<std::string, std::shared_ptr<MonitorObje
ILOG(Error, Support) << "Could not cast mDigitOccupancySummary to TH2F." << ENDM;
return Quality::Null;
}
// check if all FLPs are sending data
// with a missing FLP, the corresponding zones remain empty in the summary histogram
bool mEmptyZone = false;
for (int iBinX = 0; iBinX < hDigitOccupancySummary->GetNbinsX(); iBinX++) {
for (int iBinY = 0; iBinY < hDigitOccupancySummary->GetNbinsY(); iBinY++) {
if ((hDigitOccupancySummary->GetBinContent(iBinX + 1, iBinY + 1)) == 0) {
mEmptyZone = true;
}
}
}

if (mAdjacentLaddersEmpty) {
if (mAdjacentLaddersEmpty || mEmptyZone) {
result = Quality::Bad;
} else if (mEmptyCount >= mLadderThresholdMedium) {
result = Quality::Medium;
Expand Down

0 comments on commit 379cbe3

Please sign in to comment.