2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
4 #ifndef MuonPatternHelpers_MuonSegmentFitHelperFunctions_ICC
5 #define MuonPatternHelpers_MuonSegmentFitHelperFunctions_ICC
7 #include "MuonPatternEvent/MuonHoughDefs.h"
10 #include "Acts/Seeding/detail/CompSpacePointAuxiliaries.hpp"
11 #include "Acts/Surfaces/detail/PlanarHelper.hpp"
14 namespace MuonR4::SegmentFit {
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)];
25 #endif // MUONR4__MuonSegmentFitHelperFunctions__ICC