ATLAS Offline Software
Loading...
Searching...
No Matches
TrkMeasSurfaceAccessor.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
6namespace ActsTrk::detail {
9 const Acts::Surface* TrkMeasSurfaceAccessor::operator()(const Acts::SourceLink& sourceLink) const {
10 const auto* meas = TrkMeasurementCalibrator::unpack(sourceLink);
11 assert(m_trkConvTool != nullptr);
12 return &(m_trkConvTool->trkSurfaceToActsSurface(meas->associatedSurface()));
13 }
14}
Conversion tool interface to translate surfaces & track parameters between the Acts & Trk realm.
const Acts::Surface * operator()(const Acts::SourceLink &sourceLink) const
Operator called by the Acts API to fetch the surface.
TrkMeasSurfaceAccessor()=default
Empty default constructor -> conversion will crash.
const IActsToTrkConverterTool * m_trkConvTool
static const Trk::MeasurementBase * unpack(const Acts::SourceLink &sl)
Unpacks the Acts::SourceLink to a Trk measurement.
Athena definition of the Eigen plugin.