ATLAS Offline Software
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 
7 namespace ActsTrk::detail {
8  Acts::SourceLink TrkMeasurementCalibrator::pack(const Trk::MeasurementBase* meas) {
9  return Acts::SourceLink{meas};
10  }
11  const Trk::MeasurementBase* TrkMeasurementCalibrator::unpack(const Acts::SourceLink& sl) {
12  SourceLink_t meas = sl.template get<SourceLink_t>();
13  assert(meas != nullptr);
14  return meas;
15  }
16 }
Trk::MeasurementBase
Definition: MeasurementBase.h:58
ActsTrk::detail::TrkMeasurementCalibrator::unpack
static const Trk::MeasurementBase * unpack(const Acts::SourceLink &sl)
Unpacks the Acts::SourceLink to a Trk measurement.
Definition: TrkMeasurementCalibrator.cxx:11
TrkMeasurementCalibrator.h
ActsTrk::detail::TrkMeasurementCalibrator::pack
static Acts::SourceLink pack(const Trk::MeasurementBase *meas)
Packs the pointer to the track measurement into an Acts::SouceLink.
Definition: TrkMeasurementCalibrator.cxx:8
ActsTrk::detail
Athena definition of the Eigen plugin.
Definition: MeasurementCalibratorBase.h:19