Skip to content

Commit 7262c36

Browse files
committed
Fix in TRD sector getter
1 parent 3912592 commit 7262c36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Detectors/TRD/base/include/TRDBase/GeometryBase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class GeometryBase
3838
}
3939
}
4040
GPUd() bool getSMstatus(int sm) const { return (mSMStatus & (0x1 << sm)) != 0; }
41-
GPUd() static int getDetectorSec(int det) { return (det % (constants::NLAYER * constants::NSTACK)); }
41+
GPUd() static int getDetectorSec(int det) { return (det / (constants::NLAYER * constants::NSTACK)); }
4242
GPUd() static int getDetectorSec(int layer, int stack) { return (layer + stack * constants::NLAYER); }
4343
GPUd() static int getDetector(int layer, int stack, int sector) { return (layer + stack * constants::NLAYER + sector * constants::NLAYER * constants::NSTACK); }
4444
GPUd() static int getLayer(int det) { return (det % constants::NLAYER); }

0 commit comments

Comments
 (0)