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)