Skip to content
Snippets Groups Projects

Draft: For scifi mat alignment

Closed Zehua Xu requested to merge test_mat_alignment into master
1 file
+ 8
0
Compare changes
  • Side-by-side
  • Inline
@@ -302,6 +302,14 @@ namespace LHCb::Detector {
}
}
/// Retrieve matID for monitoring (continuous)
/// Ordering is centre to edge
[[nodiscard]] constexpr unsigned int globalMatIdx() const {
/// Five modules per quarter in station 1 and 2 (IDs 0 to 159)
unsigned int iMat = to_unsigned( mat() );
return ( FTConstants::nMats * globalModuleIdx() + iMat );
}
/// Local idx functions. Starting at 0, centre-to-edge, contiguous
[[nodiscard]] constexpr unsigned int localModuleIdx() const { return to_unsigned( module() ); }
Loading