ATLAS Offline Software
SegmentFitHelperFunctions.icc
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef MuonPatternHelpers_MuonSegmentFitHelperFunctions_ICC
5 #define MuonPatternHelpers_MuonSegmentFitHelperFunctions_ICC
6 
7 #include "MuonPatternEvent/MuonHoughDefs.h"
8 
9 
10 #include "Acts/Seeding/detail/CompSpacePointAuxiliaries.hpp"
11 #include "Acts/Surfaces/detail/PlanarHelper.hpp"
12 
13 
14 namespace MuonR4::SegmentFit {
15 
16  constexpr Line_t::ParamVector spatialLinePars(const Parameters& segmentPars) {
17  Line_t::ParamVector toReturn{};
18  for (const ParamDefs p : {ParamDefs::x0, ParamDefs::y0, ParamDefs::theta, ParamDefs::phi}) {
19  toReturn[Acts::toUnderlying(p)] = segmentPars[Acts::toUnderlying(p)];
20  }
21  return toReturn;
22  }
23 
24 }
25 #endif // MUONR4__MuonSegmentFitHelperFunctions__ICC