ATLAS Offline Software
Loading...
Searching...
No Matches
TrkMeasurementCalibrator.cxx
Go to the documentation of this file.
1
2/*
3 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
4*/
6
7namespace ActsTrk::detail {
8 const Trk::MeasurementBase* TrkMeasurementCalibrator::unpack(const Acts::SourceLink& sl) {
9 const SourceLink_t& meas = sl.template get<SourceLink_t>();
10 return std::holds_alternative<const Trk::MeasurementBase*>(meas) ?
11 std::get<const Trk::MeasurementBase*>(meas) : nullptr;
12 }
13}
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 ...
static const Trk::MeasurementBase * unpack(const Acts::SourceLink &sl)
Unpacks the Acts::SourceLink to a Trk measurement.
This class is the pure abstract base class for all fittable tracking measurements.
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.