ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
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. More...
 
 TrkPrepRawDataSurfaceAcc (const IActsToTrkConverterTool *trkConvTool)
 Standard constructor taking the pointer to a configured surface conversion tool. More...
 
const Acts::Surface * operator() (const Acts::SourceLink &sourceLink) const
 Operator called by the Acts API to fetch the surface. More...
 

Private Attributes

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

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} {}

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  }

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.


The documentation for this class was generated from the following files:
ActsTrk::detail::TrkPrepRawDataSurfaceAcc::m_trkConvTool
const IActsToTrkConverterTool * m_trkConvTool
Pointer to the converter tool caching the Acts surfaces.
Definition: TrkPrepRawDataSurfaceAcc.h:25
ActsTrk::IActsToTrkConverterTool::trkSurfaceToActsSurface
virtual const Acts::Surface & trkSurfaceToActsSurface(const Trk::Surface &atlasSurface) const =0
Translate the parsed Trk surface into an Acts surface.
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