Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[13_1_X] backport. CSC Unpacker fix for handling of rare CSC data corruption #41948

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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