Skip to content

Commit 618b455

Browse files
authored
Fixed calculcatuion of MaxFraction of bad lanes (#1568)
1 parent 0d795df commit 618b455

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/ITS/src/ITSFeeCheck.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,15 @@ Quality ITSFeeCheck::check(std::map<std::string, std::shared_ptr<MonitorObject>>
6969
} else if (ibin <= StaveBoundary[5]) {
7070
// Check if there are staves in the MLs with at least 4 lanes in Bad (bins are filled with %)
7171
maxbadlanesML = o2::quality_control_modules::common::getFromConfig<int>(mCustomParameters, "maxbadlanesML", maxbadlanesML);
72-
if (hp->GetBinContent(ibin) > maxbadlanesML / NLanePerStaveLayer[ilayer]) {
72+
if (hp->GetBinContent(ibin) > maxbadlanesML / (1. * NLanePerStaveLayer[ilayer])) {
7373
badStaveML = true;
7474
result.updateMetadata("ML", "medium");
7575
countStave++;
7676
}
7777
} else if (ibin <= StaveBoundary[7]) {
7878
// Check if there are staves in the OLs with at least 7 lanes in Bad (bins are filled with %)
7979
maxbadlanesOL = o2::quality_control_modules::common::getFromConfig<int>(mCustomParameters, "maxbadlanesOL", maxbadlanesOL);
80-
if (hp->GetBinContent(ibin) > maxbadlanesOL / NLanePerStaveLayer[ilayer]) {
80+
if (hp->GetBinContent(ibin) > maxbadlanesOL / (1. * NLanePerStaveLayer[ilayer])) {
8181
badStaveOL = true;
8282
result.updateMetadata("OL", "medium");
8383
countStave++;

0 commit comments

Comments
 (0)