ATLAS Offline Software
Loading...
Searching...
No Matches
ActsTrk::detail::TrkPrepRawDataSurfaceAcc Class Reference

Helper class to access the Acts::surface associated with a Trk::PrepRawData measurement. More...

#include <TrkPrepRawDataSurfaceAcc.h>

Collaboration diagram for ActsTrk::detail::TrkPrepRawDataSurfaceAcc:

Public Member Functions

 TrkPrepRawDataSurfaceAcc ()=default
 Empty default constructor -> conversion will crash.
 TrkPrepRawDataSurfaceAcc (const IActsToTrkConverterTool *trkConvTool)
 Standard constructor taking the pointer to a configured surface conversion tool.
const Acts::Surface * operator() (const Acts::SourceLink &sourceLink) const
 Operator called by the Acts API to fetch the surface.

Private Attributes

const IActsToTrkConverterToolm_trkConvTool {nullptr}
 Pointer to the converter tool caching the Acts surfaces.

Detailed Description

Helper class to access the Acts::surface associated with a Trk::PrepRawData measurement.

The link between Trk <-> Acts world is established via the IActsToTrkConverterTool.

Definition at line 14 of file TrkPrepRawDataSurfaceAcc.h.

Constructor & Destructor Documentation

◆ TrkPrepRawDataSurfaceAcc() [1/2]

ActsTrk::detail::TrkPrepRawDataSurfaceAcc::TrkPrepRawDataSurfaceAcc ( )
default

Empty default constructor -> conversion will crash.

◆ TrkPrepRawDataSurfaceAcc() [2/2]

ActsTrk::detail::TrkPrepRawDataSurfaceAcc::TrkPrepRawDataSurfaceAcc ( const IActsToTrkConverterTool * trkConvTool)

Standard constructor taking the pointer to a configured surface conversion tool.

Definition at line 7 of file TrkPrepRawDataSurfaceAcc.cxx.

7 :
8 m_trkConvTool{trkConvTool} {}
const IActsToTrkConverterTool * m_trkConvTool
Pointer to the converter tool caching the Acts surfaces.

Member Function Documentation

◆ operator()()

const Acts::Surface * ActsTrk::detail::TrkPrepRawDataSurfaceAcc::operator() ( const Acts::SourceLink & sourceLink) const

Operator called by the Acts API to fetch the surface.

Definition at line 9 of file TrkPrepRawDataSurfaceAcc.cxx.

9 {
10 const auto* meas = TrkPrepRawDataCalibrator::unpack(sourceLink);
11 assert(m_trkConvTool != nullptr);
12 return &(m_trkConvTool->trkSurfaceToActsSurface(meas->detectorElement()->surface(meas->identify())));
13 }
static SourceLink_t unpack(const Acts::SourceLink &sl)
Unpack the prepraw data measurement from the source link.

Member Data Documentation

◆ m_trkConvTool

const IActsToTrkConverterTool* ActsTrk::detail::TrkPrepRawDataSurfaceAcc::m_trkConvTool {nullptr}
private

Pointer to the converter tool caching the Acts surfaces.

Definition at line 25 of file TrkPrepRawDataSurfaceAcc.h.

25{nullptr};

The documentation for this class was generated from the following files: