We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e311d14 commit 2dd3745Copy full SHA for 2dd3745
1 file changed
Detectors/ITSMFT/common/reconstruction/include/ITSMFTReconstruction/ChipMappingMFT.h
@@ -127,7 +127,7 @@ class ChipMappingMFT
127
uint8_t cableHW2Pos(uint8_t ruType, uint8_t hwid) const { return mCableHW2Pos[ruType][hwid]; }
128
129
///< convert HW cable ID to SW ID for give RU type
130
- uint8_t cableHW2SW(uint8_t ruType, uint8_t hwid) const { return mCableHW2SW[ruType][hwid]; }
+ uint8_t cableHW2SW(uint8_t ruType, uint8_t hwid) const { return hwid < mCableHW2SW[ruType].size() ? mCableHW2SW[ruType][hwid] : 0xff; }
131
132
///< convert cable iterator ID to its position on the ActiveLanes word in the GBT.header for given RU type
133
uint8_t cablePos(uint8_t ruType, uint8_t id) const { return mCablePos[ruType][id]; }
0 commit comments