Skip to content

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

Merged
davidrohr merged 1 commit intoAliceO2Group:devfrom
aphecetche:mrrtf-154-avoid-raw-decoder-crash
Apr 27, 2022
Merged

MRRTF-154: MCH raw data decoder now catches exceptions#8664
davidrohr merged 1 commit intoAliceO2Group:devfrom
aphecetche:mrrtf-154-avoid-raw-decoder-crash

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