From 9ef345f6ed954a88d0ad166e0ed2e265b4040d67 Mon Sep 17 00:00:00 2001 From: Felix Schlepper Date: Sat, 5 Oct 2024 09:22:12 +0200 Subject: [PATCH] ITS: TrackerTraits getBinsRect mark as const Signed-off-by: Felix Schlepper --- .../tracking/include/ITStracking/TrackerTraits.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Detectors/ITSMFT/ITS/tracking/include/ITStracking/TrackerTraits.h b/Detectors/ITSMFT/ITS/tracking/include/ITStracking/TrackerTraits.h index 207dd5d3d50f5..11a092c87ca8e 100644 --- a/Detectors/ITSMFT/ITS/tracking/include/ITStracking/TrackerTraits.h +++ b/Detectors/ITSMFT/ITS/tracking/include/ITStracking/TrackerTraits.h @@ -79,9 +79,12 @@ class TrackerTraits // Others GPUhd() static constexpr int4 getEmptyBinsRect() { return int4{0, 0, 0, 0}; } - const int4 getBinsRect(const Cluster&, int layer, float z1, float z2, float maxdeltaz, float maxdeltaphi); - const int4 getBinsRect(int layer, float phi, float maxdeltaphi, float z, float maxdeltaz); - const int4 getBinsRect(int layer, float phi, float maxdeltaphi, float z1, float z2, float maxdeltaz); + const int4 getBinsRect(const Cluster&, int layer, float z1, float z2, float maxdeltaz, float maxdeltaphi) const; + const int4 getBinsRect(int layer, float phi, float maxdeltaphi, float z, float maxdeltaz) const; + const int4 getBinsRect(int layer, float phi, float maxdeltaphi, float z1, float z2, float maxdeltaz) const; + const int4 getBinsRect(const Cluster&, int layer, float z1, float z2, float maxdeltaz, float maxdeltaphi) const noexcept; + const int4 getBinsRect(int layer, float phi, float maxdeltaphi, float z, float maxdeltaz) const noexcept; + const int4 getBinsRect(int layer, float phi, float maxdeltaphi, float z1, float z2, float maxdeltaz) const noexcept; void SetRecoChain(o2::gpu::GPUChainITS* chain) { mChain = chain; } void setSmoothing(bool v) { mApplySmoothing = v; } bool getSmoothing() const { return mApplySmoothing; } @@ -122,12 +125,12 @@ inline void TrackerTraits::UpdateTrackingParameters(const std::vector constants::math::Pi) ? 0.f : phi - maxdeltaphi;