134 std::unique_ptr<ActsTrk::MultiTrajectory> constMtj =
135 moveToConst(std::move(tc.trackStateContainer()), evtContext);
138 if (constMtjHandle.record(std::move(constMtj)).isFailure()) {
139 throw std::runtime_error(
140 "MutableTrackContainerHandlesHelper::moveToConst, can't record "
141 "ConstMultiTrajectory");
144 auto trackSurfacesAux = std::make_unique<xAOD::TrackSurfaceAuxContainer>();
145 tc.container().encodeSurfaces(trackSurfacesAux.get(), geoContext);
147 auto interfaceTrackSummaryContainer =
148 ActsTrk::makeInterfaceContainer<xAOD::TrackSummaryContainer>(
149 tc.container().m_mutableTrackBackendAux.get());
152 auto trackSurfaces = ActsTrk::makeInterfaceContainer<xAOD::TrackSurfaceContainer>(
153 trackSurfacesAux.get());
156 auto constTrackSummary = std::make_unique<ActsTrk::TrackSummaryContainer>(
159 constTrackSummary->restoreDecorations();
160 constTrackSummary->fillFrom(tc.container());
163 if (constTrackSummaryHandle.record(std::move(constTrackSummary))
165 throw std::runtime_error(
166 "MutableTrackContainerHandlesHelper::moveToConst, can't record "
169 auto constTrack = std::make_unique<ActsTrk::TrackContainer>(