ATLAS Offline Software
Loading...
Searching...
No Matches
TrkPrepRawDataCalibrator.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
5
6namespace ActsTrk::detail {
10
11 const Trk::PrepRawData*
12 TrkPrepRawDataCalibrator::unpack(const Acts::SourceLink& sl) {
13 const SourceLink_t& prd = sl.template get<SourceLink_t>();
14 return std::holds_alternative<const Trk::PrepRawData*>(prd) ?
15 std::get<const Trk::PrepRawData*>(prd) : nullptr;
16 }
17}
Interface for the conversion tool to translate the surface and track parameter objects between the Ac...
std::variant< std::monostate, const xAOD::UncalibratedMeasurement *, const Trk::PrepRawData *, const Trk::MeasurementBase * > SourceLink_t
Encode the source links supported by the Calibrator class as a variant of the measurement class type ...
const ActsTrk::IGeometryRealmConvTool * m_convTool
Pointer to the track conversion tool.
static const Trk::PrepRawData * unpack(const Acts::SourceLink &sl)
Unpack the prepraw data measurement from the source link.
TrkPrepRawDataCalibrator()=default
Empty constructor not configuring any tool -> crash if not later overwritten.
const Trk::IRIO_OnTrackCreator * m_rotCreator
ROT creator.
Interface class for transforming Trk::PrepRawData to Trk::RIO_OnTrack using a local track hypothesis.
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)
Definition hcg.cxx:132
Hash functions to pack the source link into unordered_maps / unordered_sets.