Skip to content
Snippets Groups Projects

RichDAQ - Decoding fixes when inactive links are present

Merged Christopher Rob Jones requested to merge jonrob/LHCb:RichDAQ-FixesForInactiveLinks into master
Files
6
@@ -1160,6 +1160,26 @@ namespace LHCb {
}
}
/// Returns a 'local' EC pixel row number for each PMT corrected for the PMT rotations in the EC
[[nodiscard]] constexpr std::int32_t ecGlobalPMTFrameX2() const
#ifdef NDEBUG
noexcept
#endif
{
assert( isPMT() );
static_assert( MaPMT::PDGlobalViewShift % 2 == 0 );
if ( isPMT() ) {
const auto iCol = panelLocalModuleColumn();
const auto iLocalX = -ecLocalPMTFrameX();
return ( isHTypePMT() ? ( iCol * MaPMT::PDGlobalViewShift ) + ( 2 * iLocalX ) + 1
: ( iCol * MaPMT::PDGlobalViewShift ) -
( ( pdNumInEC() % 2 ) * ( MaPMT::PDGlobalViewShift / 2 ) ) + iLocalX );
} else {
// HPD fallback
return 0;
}
}
public:
// messaging
Loading