We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26f187a commit c7643cfCopy full SHA for c7643cf
1 file changed
Detectors/ITSMFT/ITS/tracking/include/ITStracking/TrackingTopology.h
@@ -82,7 +82,7 @@ class TrackingTopology
82
void init(int maxLayers, int maxHoles, Mask holeLayerMask)
83
{
84
clear();
85
- mMaxLayers = o2::gpu::CAMath::Clamp(maxLayers, 0, NLayers);
+ mMaxLayers = o2::gpu::CAMath::Max(0, o2::gpu::CAMath::Min(maxLayers, NLayers));
86
mMaxHoles = o2::gpu::CAMath::Max(maxHoles, 0);
87
mHoleLayerMask = holeLayerMask;
88
for (int fromLayer = 0; fromLayer < mMaxLayers; ++fromLayer) {
0 commit comments