Skip to content
Snippets Groups Projects
Commit fca28612 authored by Alessia Satta's avatar Alessia Satta Committed by Rosen Matev
Browse files

Muon decoding bug fix

parent 14f61a78
No related branches found
No related tags found
1 merge request!4253Fix wrong assert in muon decoding
......@@ -67,7 +67,7 @@ namespace LHCb::MuonUpgrade::DAQ {
// need to calculate the shape of the horizontal and vertical logical strips
// used flags
assert( std::distance( first, last ) < 500 );
std::bitset<500> used; // (to be updated with new readout) the maximum # of channels per quadrant is currently 384
// (from M2R2) the pads readout region have been ignored otherwise larger number is
// possible
......@@ -89,6 +89,7 @@ namespace LHCb::MuonUpgrade::DAQ {
Iterator mid;
if ( !alreadyPads ) {
assert( std::distance( first, last ) < 500 );
mid = std::partition( first, last, []( const Digit& digit ) { return digit.tile.isHorizontal(); } );
} else {
// if already a pad region skip the crossing
......
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