We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd8e576 commit 9cd3ddfCopy full SHA for 9cd3ddf
1 file changed
Detectors/TRD/base/include/TRDBase/GeometryBase.h
@@ -38,7 +38,7 @@ class GeometryBase
38
}
39
40
GPUd() bool getSMstatus(int sm) const { return (mSMStatus & (0x1 << sm)) != 0; }
41
- GPUd() static int getDetectorSec(int det) { return (det / (constants::NLAYER * constants::NSTACK)); }
+ GPUd() static int getDetectorSec(int det) { return (det % (constants::NLAYER * constants::NSTACK)); }
42
GPUd() static int getDetectorSec(int layer, int stack) { return (layer + stack * constants::NLAYER); }
43
GPUd() static int getDetector(int layer, int stack, int sector) { return (layer + stack * constants::NLAYER + sector * constants::NLAYER * constants::NSTACK); }
44
GPUd() static int getLayer(int det) { return (det % constants::NLAYER); }
0 commit comments