File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Detectors/TRD/base/include/TRDBase Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff 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); }
You can’t perform that action at this time.
0 commit comments