Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Detectors/TRD/base/include/TRDBase/GeometryBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -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); }
Expand Down