Skip to content

Commit

Permalink
[13_1_X] backport. CSC Unpacker fix for handling of rare data corrupt…
Browse files Browse the repository at this point in the history
…ion, related to invalid CSC DMB header/trailer data
  • Loading branch information
barvic committed Jun 13, 2023
1 parent 67fd0a5 commit 9d7583a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion EventFilter/CSCRawToDigi/src/CSCDDUEventData.cc
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,18 @@ void CSCDDUEventData::unpack_data(const uint16_t* buf, CSCDCCExaminer* examiner)
if (cscid != -1) {
const uint16_t* pos = (const uint16_t*)csc_itr->second;

if (pos == nullptr) {
if (debug)
LogTrace("CSCDDUEventData|CSCRawToDigi")
<< "skip unpacking of CSC " << cscid << " due to format errors (NULL pointer to chamber data)";
continue;
}

ExaminerStatusType errors = examiner->errorsForChamber(cscid);
if ((errors & examiner->getMask()) > 0) {
if (debug)
LogTrace("CSCDDUEventData|CSCRawToDigi")
<< "skip unpacking of CSC " << cscid << " due format errors: 0x" << std::hex << errors << std::dec;
<< "skip unpacking of CSC " << cscid << " due to format errors: 0x" << std::hex << errors << std::dec;
continue;
}

Expand Down

0 comments on commit 9d7583a

Please sign in to comment.