Skip to content

Commit ec38f9c

Browse files
author
Roman Lietava
committed
fix
1 parent 455f7df commit ec38f9c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Detectors/CTP/reconstruction/src/RawDataDecoder.cxx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,8 +636,13 @@ int RawDataDecoder::checkReadoutConsistentncy(o2::pmr::vector<CTPDigit>& digits,
636636
for (auto const& digit : digits) {
637637
// if class mask => inps
638638
for (int i = 0; i < digit.CTPClassMask.size(); i++) {
639-
if (digit.CTPClassMask[i]) {
639+
if (digit.CTPClassMask[i] & trgclassmask) {
640640
const CTPClass* cls = mCTPConfig.getCTPClassFromHWIndex(i);
641+
if(cls == nullptr) {
642+
LOG(error) << "Class mask index not found in CTP config:" << i;
643+
ret = 128;
644+
continue;
645+
}
641646
uint64_t clsinpmask = cls->descriptor->getInputsMask();
642647
uint64_t diginpmask = digit.CTPInputMask.to_ullong();
643648
if (!((clsinpmask & diginpmask) == clsinpmask)) {

0 commit comments

Comments
 (0)