Skip to content
Snippets Groups Projects
Commit 621a76f2 authored by Gerhard Raven's avatar Gerhard Raven
Browse files

add check for UT rawbank size consistency

parent 1c996bbd
No related branches found
No related tags found
1 merge request!3063add check for UT rawbank size consistency
Pipeline #2614340 passed
......@@ -54,6 +54,10 @@ public:
explicit UTDecoder( const LHCb::RawBank& bank )
: m_bank{bank.range<uint16_t>().subspan( 4 )}, m_nDigits{make_digiVec( bank.range<uint32_t>().first<2>() )} {
assert( UTDAQ::version{bank.version()} == UTDAQ::version::v5 );
if ( bank.size() / sizeof( unsigned int ) != ( ( nClusters() + 1 ) / 2 ) * 8 ) {
// TODO: add a dedicated UT DAQ StatusCode category, and throw a GaudiException with a value inside that category
throw std::runtime_error{"Error: unexpected UT RawBank size"};
}
}
class pos_range final {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment