Skip to content

Commit

Permalink
Merge pull request #41948 from barvic/csc_unpacker_fix_for_rare_dmb_d…
Browse files Browse the repository at this point in the history
…ata_corruption_CMSSW_13_1_X

[13_1_X] backport. CSC Unpacker fix for handling of rare CSC data corruption
  • Loading branch information
cmsbuild authored Jun 15, 2023
2 parents c4867e9 + 9d7583a commit 31f6747
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 31f6747

Please sign in to comment.