From 9cd3ddf51c3ce26186262caef55fdc30c6a003be Mon Sep 17 00:00:00 2001 From: shahoian Date: Mon, 18 Aug 2025 16:21:51 +0200 Subject: [PATCH] Revert "Fix in TRD sector getter" This reverts commit 7262c36703fb88bab6bcd1e76484aef06b2c1727. The correction of https://github.com/AliceO2Group/AliceO2/pull/14589 was actually not needed, just the name of the method is misleading. --- Detectors/TRD/base/include/TRDBase/GeometryBase.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Detectors/TRD/base/include/TRDBase/GeometryBase.h b/Detectors/TRD/base/include/TRDBase/GeometryBase.h index 6627e70406b2b..c817d21cb7c48 100644 --- a/Detectors/TRD/base/include/TRDBase/GeometryBase.h +++ b/Detectors/TRD/base/include/TRDBase/GeometryBase.h @@ -38,7 +38,7 @@ class GeometryBase } } GPUd() bool getSMstatus(int sm) const { return (mSMStatus & (0x1 << sm)) != 0; } - GPUd() static int getDetectorSec(int det) { return (det / (constants::NLAYER * constants::NSTACK)); } + GPUd() static int getDetectorSec(int det) { return (det % (constants::NLAYER * constants::NSTACK)); } GPUd() static int getDetectorSec(int layer, int stack) { return (layer + stack * constants::NLAYER); } GPUd() static int getDetector(int layer, int stack, int sector) { return (layer + stack * constants::NLAYER + sector * constants::NLAYER * constants::NSTACK); } GPUd() static int getLayer(int det) { return (det % constants::NLAYER); }