ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsCalibration
ActsCalibrators
src
TrkMeasSurfaceAccessor.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
#include "
ActsCalibrators/TrkMeasSurfaceAccessor.h
"
5
#include "
ActsCalibrators/TrkMeasurementCalibrator.h
"
6
namespace
ActsTrk::detail
{
7
TrkMeasSurfaceAccessor::TrkMeasSurfaceAccessor
(
const
IGeometryRealmConvTool
* trkConvTool):
8
m_trkConvTool
{trkConvTool} {}
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
->convertSurfaceToActs(meas->associatedSurface()).get();
13
}
14
}
TrkMeasSurfaceAccessor.h
TrkMeasurementCalibrator.h
ActsTrk::IGeometryRealmConvTool
Interface for the conversion tool to translate the surface and track parameter objects between the Ac...
Definition
IGeometryRealmConvTool.h:33
ActsTrk::detail::TrkMeasSurfaceAccessor::operator()
const Acts::Surface * operator()(const Acts::SourceLink &sourceLink) const
Operator called by the Acts API to fetch the surface.
Definition
TrkMeasSurfaceAccessor.cxx:9
ActsTrk::detail::TrkMeasSurfaceAccessor::m_trkConvTool
const IGeometryRealmConvTool * m_trkConvTool
Definition
TrkMeasSurfaceAccessor.h:24
ActsTrk::detail::TrkMeasSurfaceAccessor::TrkMeasSurfaceAccessor
TrkMeasSurfaceAccessor()=default
Empty default constructor -> conversion will crash.
ActsTrk::detail::TrkMeasurementCalibrator::unpack
static const Trk::MeasurementBase * unpack(const Acts::SourceLink &sl)
Unpacks the Acts::SourceLink to a Trk measurement.
Definition
TrkMeasurementCalibrator.cxx:8
ActsTrk::detail
Hash functions to pack the source link into unordered_maps / unordered_sets.
Definition
MeasurementCalibratorBase.h:31
Generated on
for ATLAS Offline Software by
1.17.0