Skip to content
Snippets Groups Projects
Commit 8d2443f1 authored by Roel Aaij's avatar Roel Aaij
Browse files

Fix station numbering in findStation to match {1, 2, 3} convention

parent 8042177b
No related branches found
No related tags found
1 merge request!265Fix station numbering in findStation to match {1, 2, 3} convention
Pipeline #4317460 passed
......@@ -125,8 +125,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.station() ) - 1 < this->access()->m_stations.size() )
? &( this->access()->m_stations[to_unsigned( aChannel.station() ) - 1] )
: std::optional<DeFTStation>{};
}
......
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