Skip to content
Snippets Groups Projects

Draft: clearly marking IDs and indices in FTChannelID

Closed Johannes Heuel requested to merge FTChannelID_Idx_vs_ID into master
1 unresolved thread
8 files
+ 80
74
Compare changes
  • Side-by-side
  • Inline
Files
8
@@ -120,8 +120,8 @@ namespace LHCb::Detector {
* @return Pointer to the relevant station
*/
[[nodiscard]] const std::optional<DeFTStation> findStation( const FTChannelID& aChannel ) const {
return ( to_unsigned( aChannel.station() ) < this->access()->m_stations.size() )
? &( this->access()->m_stations[to_unsigned( aChannel.station() )] )
return ( to_unsigned( aChannel.stationID() ) < this->access()->m_stations.size() )
? &( this->access()->m_stations[to_unsigned( aChannel.stationID() )] )
: std::optional<DeFTStation>{};
}
Loading