File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Detectors/ITSMFT/common/reconstruction/include/ITSMFTReconstruction Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ class ChipMappingMFT
127127 uint8_t cableHW2Pos (uint8_t ruType, uint8_t hwid) const { return mCableHW2Pos [ruType][hwid]; }
128128
129129 // /< 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]; }
130+ uint8_t cableHW2SW (uint8_t ruType, uint8_t hwid) const { return hwid < mCableHW2SW [ruType]. size () ? mCableHW2SW [ruType][ hwid] : 0xff ; }
131131
132132 // /< convert cable iterator ID to its position on the ActiveLanes word in the GBT.header for given RU type
133133 uint8_t cablePos (uint8_t ruType, uint8_t id) const { return mCablePos [ruType][id]; }
You can’t perform that action at this time.
0 commit comments