Skip to content

Commit

Permalink
MFT: patch for code errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Edingrast committed Aug 22, 2024
1 parent 3ce4ee2 commit fc4b3b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions Modules/MFT/src/QcMFTClusterCheck.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ Quality QcMFTClusterCheck::check(std::map<std::string, std::shared_ptr<MonitorOb
if (mAdjacentLadders) {
result = Quality::Bad;
}
mEmptyCount = 0;
}
}
return result;
Expand Down
9 changes: 4 additions & 5 deletions Modules/MFT/src/QcMFTDigitCheck.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ Quality QcMFTDigitCheck::check(std::map<std::string, std::shared_ptr<MonitorObje
mAdjacentCount = 0;
}
// set bool for adjacent ladders
if (mAdjacentCount >= 2) {
if (mAdjacentCount >= mLadderThresholdBad) {
if (!mAdjacentLadders) {
mAdjacentLadders = true;
}
Expand All @@ -165,20 +165,20 @@ Quality QcMFTDigitCheck::check(std::map<std::string, std::shared_ptr<MonitorObje
return Quality::Null;
}

if (!mAdjacentLadders && mEmptyCount < 1) {
if (!mAdjacentLadders && mEmptyCount < mLadderThresholdMedium) {
result = Quality::Good;
}
if (!mAdjacentLadders && mEmptyCount >= 1) {
if (!mAdjacentLadders && mEmptyCount >= mLadderThresholdMedium) {
result = Quality::Medium;
}
if (mAdjacentLadders) {
result = Quality::Bad;
}
mEmptyCount = 0;
}
}
return result;
}

std::string QcMFTDigitCheck::getAcceptedType() { return "TH1"; }

void QcMFTDigitCheck::readMaskedChips(std::shared_ptr<MonitorObject> mo)
Expand Down Expand Up @@ -387,5 +387,4 @@ void QcMFTDigitCheck::beautify(std::shared_ptr<MonitorObject> mo, Quality checkR
}
}
}

} // namespace o2::quality_control_modules::mft

0 comments on commit fc4b3b7

Please sign in to comment.