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_0_X] Update GlobalAlgBlkUnpacker to throw error in the case of headers received in the wrong order #41402

Merged
merged 1 commit into from
Apr 26, 2023
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
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ namespace l1t {
GlobalAlgBlk talg = GlobalAlgBlk();
res_->push_back(bx, talg);
}
//If this is not the first block, but the vector is empty, something has gone wrong (corrupted data)
else if (res_->isEmpty(bx))
throw cms::Exception("InvalidGlobalAlgBlkBxCollection")
<< "The GlobalAlgBlk unpacker result vector is empty, but is not receiving the first expected header "
"ID! This may be due to corrupted, or poorly formatted events.\n"
<< "uGTBoard: " << uGTBoard << "\nBX: " << bx << "\nFirst expected block: " << initialBlkID
<< "\nReceived block: " << block.header().getID();

//fetch
GlobalAlgBlk alg = res_->at(bx, 0);
Expand Down