Skip to content
Snippets Groups Projects

Add SciFi hardware ID conversion from FTChannelID

Merged Lukas Witola requested to merge luwitola_ftchannelid into master
All threads resolved!
@@ -216,7 +216,7 @@ namespace LHCb::Detector {
[[nodiscard]] constexpr StationID station() const { return StationID{extract<Mask::station>( m_channelID )}; }
/// Retrieve HalfRob ID within module [0, 1]
[[nodiscard]] constexpr unsigned int halfRob() const { return mat().to_unsigned() / FTConstants::nHalfRobs; }
[[nodiscard]] constexpr unsigned int halfRob() const { return to_unsigned( mat() ) / FTConstants::nHalfRobs; }
/// Retrieve data link ID within HalfRob [0..7]
[[nodiscard]] constexpr unsigned int dataLink() const { return ( FTConstants::nSiPM * halfRob() + sipm() ); }
Loading