ATLAS Offline Software
TrkPrepRawDataSurfaceAcc.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
6 namespace ActsTrk::detail{
8  m_trkConvTool{trkConvTool} {}
9  const Acts::Surface* TrkPrepRawDataSurfaceAcc::operator()(const Acts::SourceLink& sourceLink) const {
10  const auto* meas = TrkPrepRawDataCalibrator::unpack(sourceLink);
11  assert(m_trkConvTool != nullptr);
12  return &(m_trkConvTool->trkSurfaceToActsSurface(meas->detectorElement()->surface(meas->identify())));
13  }
14 }
TrkPrepRawDataSurfaceAcc.h
ActsTrk::detail::TrkPrepRawDataSurfaceAcc::m_trkConvTool
const IActsToTrkConverterTool * m_trkConvTool
Pointer to the converter tool caching the Acts surfaces.
Definition: TrkPrepRawDataSurfaceAcc.h:25
ActsTrk::detail::TrkPrepRawDataSurfaceAcc::operator()
const Acts::Surface * operator()(const Acts::SourceLink &sourceLink) const
Operator called by the Acts API to fetch the surface.
Definition: TrkPrepRawDataSurfaceAcc.cxx:9
TrkPrepRawDataCalibrator.h
ActsTrk::IActsToTrkConverterTool::trkSurfaceToActsSurface
virtual const Acts::Surface & trkSurfaceToActsSurface(const Trk::Surface &atlasSurface) const =0
Translate the parsed Trk surface into an Acts surface.
ActsTrk::IActsToTrkConverterTool
Conversion tool interface to translate surfaces & track parameters between the Acts & Trk realm.
Definition: IActsToTrkConverterTool.h:45
ActsTrk::detail::TrkPrepRawDataSurfaceAcc::TrkPrepRawDataSurfaceAcc
TrkPrepRawDataSurfaceAcc()=default
Empty default constructor -> conversion will crash.
ActsTrk::detail::TrkPrepRawDataCalibrator::unpack
static SourceLink_t unpack(const Acts::SourceLink &sl)
Unpack the prepraw data measurement from the source link.
Definition: TrkPrepRawDataCalibrator.cxx:12
ActsTrk::detail
Athena definition of the Eigen plugin.
Definition: MeasurementCalibratorBase.h:19