Skip to content

Commit 675583d

Browse files
authored
Simplify getMaxBCDiffToSquashBias function
1 parent 14781d4 commit 675583d

File tree

1 file changed

+1
-11
lines changed
  • Detectors/ITSMFT/common/reconstruction/include/ITSMFTReconstruction

1 file changed

+1
-11
lines changed

Detectors/ITSMFT/common/reconstruction/include/ITSMFTReconstruction/ClustererParam.h

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,7 @@ struct ClustererParam : public o2::conf::ConfigurableParamHelper<ClustererParam<
4747
int maxBCDiffToSquashBiasLayer[getNLayers()] = {}; ///< squash mask per layer
4848
int getMaxBCDiffToSquashBias(int layer) const noexcept
4949
{
50-
bool stag{false};
51-
for (int i{0}; i < getNLayers(); ++i) {
52-
if (maxBCDiffToSquashBiasLayer[i] != 0) {
53-
stag = true;
54-
break;
55-
}
56-
}
57-
if (stag) {
58-
return maxBCDiffToSquashBiasLayer[layer];
59-
}
60-
return maxBCDiffToSquashBias;
50+
return maxBCDiffToSquashBiasLayer[layer] ? maxBCDiffToSquashBiasLayer[layer] : maxBCDiffToSquashBias;
6151
}
6252

6353
O2ParamDef(ClustererParam, getParamName().data());

0 commit comments

Comments
 (0)