Skip to content

Commit 186e914

Browse files
lietavaRoman Lietava
andauthored
ctpdev: consistency checker fixes (#14202)
* fix * clang --------- Co-authored-by: Roman Lietava <rl@192.168.1.25>
1 parent 6963217 commit 186e914

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)