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

MRRTF-154: MCH raw data decoder now catches exceptions #8664

Merged

Conversation

aphecetche
Copy link
Collaborator

@aferrero2707 here's a proposal for the added protection to data decoder to avoid crashes. If there is an exception it is now "swallowed" and an error appended to the error vector. The error is associated to an invalid SolarId (=0) so QC could later on detect it's a global error.

For the record : to test I've locally changed Detectors/MUON/MCH/Raw/Common/src/SampaCluster.cxx assertion on clusterSize to test 9 bits instead of 10 :

clusterSize(impl::assertIsInRange("clusterSize", clusterSize, 0, 0x1FF)), // FIXME: for debug, to trigger an exception

@davidrohr davidrohr merged commit 8cfc790 into AliceO2Group:dev Apr 27, 2022
@aphecetche aphecetche deleted the mrrtf-154-avoid-raw-decoder-crash branch May 2, 2022 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants