Skip to content
Snippets Groups Projects
Commit 329b167b authored by Zehua Xu's avatar Zehua Xu
Browse files

first mat

parent 5240c32a
No related tags found
1 merge request!384Draft: For scifi mat alignment
Pipeline #5583258 passed
......@@ -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() ); }
......
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