ATLAS Offline Software
Loading...
Searching...
No Matches
TrkPrepRawDataSurfaceAcc.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* TrkPrepRawDataSurfaceAcc::operator()(const Acts::SourceLink& sourceLink) const {
10 const auto* meas = TrkPrepRawDataCalibrator::unpack(sourceLink);
11 assert(m_trkConvTool != nullptr);
12 return m_trkConvTool->convertSurfaceToActs(meas->detectorElement()->surface(meas->identify())).get();
13 }
14}
Interface for the conversion tool to translate the surface and track parameter objects between the Ac...
static const Trk::PrepRawData * unpack(const Acts::SourceLink &sl)
Unpack the prepraw data measurement from the source link.
TrkPrepRawDataSurfaceAcc()=default
Empty default constructor -> conversion will crash.
const Acts::Surface * operator()(const Acts::SourceLink &sourceLink) const
Operator called by the Acts API to fetch the surface.
const IGeometryRealmConvTool * m_trkConvTool
Pointer to the converter tool caching the Acts surfaces.
Hash functions to pack the source link into unordered_maps / unordered_sets.