From 36ff9be5d7dd9dc26a7e2f895aa81ea7b7d8b75a Mon Sep 17 00:00:00 2001 From: Felix Schlepper Date: Fri, 22 May 2026 20:15:05 +0200 Subject: [PATCH] ITS: Remove redundant 'const' from getter methods the redunant const from #15406 qualifiers lead to warnings: ``` O2/GPU/GPUTracking/Standalone/../../../DataFormats/Detectors/ITSMFT/ITS/include/DataFormatsITS/TrackITS.h:195:12: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] 195 | GPUhdi() const int getClusterIndex(int lr) const { return mIndex[lr]; } | ^~~~~ /O2/GPU/GPUTracking/Standalone/../../../DataFormats/Detectors/ITSMFT/ITS/include/DataFormatsITS/TrackITS.h:197:10: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] 197 | GPUh() const int getFirstLayerClusterIndex() const | ^~~~~ ``` --- .../Detectors/ITSMFT/ITS/include/DataFormatsITS/TrackITS.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/DataFormats/Detectors/ITSMFT/ITS/include/DataFormatsITS/TrackITS.h b/DataFormats/Detectors/ITSMFT/ITS/include/DataFormatsITS/TrackITS.h index 89f6416c6e177..20fb7c63ebacd 100644 --- a/DataFormats/Detectors/ITSMFT/ITS/include/DataFormatsITS/TrackITS.h +++ b/DataFormats/Detectors/ITSMFT/ITS/include/DataFormatsITS/TrackITS.h @@ -192,12 +192,11 @@ class TrackITSExt : public TrackITS getClusterRefs().setEntries(ncl); } - GPUhdi() const int getClusterIndex(int lr) const { return mIndex[lr]; } + GPUhdi() int getClusterIndex(int lr) const { return mIndex[lr]; } - GPUh() const int getFirstLayerClusterIndex() const + GPUh() int getFirstLayerClusterIndex() const { - int firstLayer = getFirstClusterLayer(); - return getClusterIndex(firstLayer); + return getClusterIndex(getFirstClusterLayer()); } GPUhdi() void setExternalClusterIndex(int layer, int idx, bool newCluster = false)