Skip to content

Commit fb50fc7

Browse files
committed
one more fix: there are two magic numbers
1 parent 25a8b56 commit fb50fc7

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Detectors/CTP/reconstruction/src/RawDataDecoder.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,8 @@ int RawDataDecoder::checkReadoutConsistentncy(o2::pmr::vector<CTPDigit>& digits,
625625
uint64_t clsinpmask = cls->descriptor->getInputsMask();
626626
uint64_t diginpmask = digit.CTPInputMask.to_ullong();
627627
if (!((clsinpmask & diginpmask) == clsinpmask)) {
628-
if (!((digit.intRecord.bc == magicBC) && (clsinpmask & L1MASKInputs.to_ullong()))) {
628+
bool e = !(((digit.intRecord.bc == magicBC) || (digit.intRecord.bc == (magicBC + 1))) && (clsinpmask & L1MASKInputs.to_ullong()));
629+
if (e) {
629630
if (nerror < mErrorMax) {
630631
LOG(error) << "Cls=>Inps: CTP class:" << cls->name << " inpmask:" << clsinpmask << " not compatible with inputs mask:" << diginpmask << " " << digit.intRecord;
631632
nerror++;

Detectors/CTP/workflow/src/RawDecoderSpec.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ void RawDecoderSpec::endOfStream(framework::EndOfStreamContext& ec)
9191
}
9292
if (mCheckConsistency) {
9393
LOG(info) << "Lost due to the shift Consistency Checker:" << mDecoder.getLostDueToShiftCls();
94-
LOG(info) << "Toatl classes:" << totClasses;
94+
LOG(info) << "Total classes:" << totClasses;
9595
auto ctpcfg = mDecoder.getCTPConfig();
9696
for (int i = 0; i < o2::ctp::CTP_NCLASSES; i++) {
9797
std::string name = ctpcfg.getClassNameFromIndex(i);

0 commit comments

Comments
 (0)