We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14781d4 commit 675583dCopy full SHA for 675583d
1 file changed
Detectors/ITSMFT/common/reconstruction/include/ITSMFTReconstruction/ClustererParam.h
@@ -47,17 +47,7 @@ struct ClustererParam : public o2::conf::ConfigurableParamHelper<ClustererParam<
47
int maxBCDiffToSquashBiasLayer[getNLayers()] = {}; ///< squash mask per layer
48
int getMaxBCDiffToSquashBias(int layer) const noexcept
49
{
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;
+ return maxBCDiffToSquashBiasLayer[layer] ? maxBCDiffToSquashBiasLayer[layer] : maxBCDiffToSquashBias;
61
}
62
63
O2ParamDef(ClustererParam, getParamName().data());
0 commit comments