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

#include <RefittingCalibrator.h>

Collaboration diagram for ActsTrk::detail::RefittingCalibrator:

Public Types

using MutableTrackStateProxy = ActsTrk::MutableTrackStateBackend::TrackStateProxy
using ConstTrackStateProxy = ActsTrk::MutableTrackStateBackend::ConstTrackStateProxy

Public Member Functions

 RefittingCalibrator (const ActsTrk::IGeometryRealmConvTool *convTool, const Trk::IRIO_OnTrackCreator *rotCreator)
void calibrate (const Acts::GeometryContext &gctx, const Acts::CalibrationContext &cctx, const Acts::SourceLink &sourceLink, MutableTrackStateProxy trackState) const
template<auto Callable, typename Type>
void connect (const xAOD::UncalibMeasType type, const Type *instance)
 Register a calibrator implementation instance for a given measurement type.

Private Attributes

TrkPrepRawDataCalibrator m_prdCalibrator {}
TrkMeasurementCalibrator m_measCalibrator {}
xAODUncalibMeasCalibrator m_xAODCalibrator {}

Detailed Description

Definition at line 29 of file RefittingCalibrator.h.

Member Typedef Documentation

◆ ConstTrackStateProxy

using ActsTrk::detail::RefittingCalibrator::ConstTrackStateProxy = ActsTrk::MutableTrackStateBackend::ConstTrackStateProxy

Definition at line 35 of file RefittingCalibrator.h.

◆ MutableTrackStateProxy

using ActsTrk::detail::RefittingCalibrator::MutableTrackStateProxy = ActsTrk::MutableTrackStateBackend::TrackStateProxy

Definition at line 34 of file RefittingCalibrator.h.

Constructor & Destructor Documentation

◆ RefittingCalibrator()

ActsTrk::detail::RefittingCalibrator::RefittingCalibrator ( const ActsTrk::IGeometryRealmConvTool * convTool,
const Trk::IRIO_OnTrackCreator * rotCreator )

Definition at line 14 of file RefittingCalibrator.cxx.

15 :
16 m_prdCalibrator{convTool, rotCreator}{}

Member Function Documentation

◆ calibrate()

void ActsTrk::detail::RefittingCalibrator::calibrate ( const Acts::GeometryContext & gctx,
const Acts::CalibrationContext & cctx,
const Acts::SourceLink & sourceLink,
MutableTrackStateProxy trackState ) const

Definition at line 18 of file RefittingCalibrator.cxx.

21 {
22
23 switch (MeasurementCalibratorBase::getType(sourceLink)) {
24 using enum SourceLinkType;
25 case TrkMeasurement:
26 m_measCalibrator.calibrate(gctx, cctx, sourceLink, trackState);
27 break;
28 case TrkPrepRawData:
29 m_prdCalibrator.calibrate(gctx, cctx, sourceLink, trackState);
30 break;
31 case xAODUnCalibMeas:
32 m_xAODCalibrator.calibrate(gctx, cctx, sourceLink, trackState);
33 break;
34 default:
35 THROW_EXCEPTION("Unsupported source link type "<<MeasurementCalibratorBase::getType(sourceLink));
36 }
37}
static SourceLinkType getType(const Acts::SourceLink &sl)
Returns the enumeration corresponding to the object type cached within the Acts::SourceLink.
TrkMeasurementCalibrator m_measCalibrator
xAODUncalibMeasCalibrator m_xAODCalibrator
SourceLinkType
Enumeration to distinguish between the ATLAS EDM -> Acts::SourceLink variants.
@ xAODUnCalibMeas
UnCalibrated Trk::PrepRawData objects.
@ TrkPrepRawData
Calibrated Trk::MeasurementBase objects.
#define THROW_EXCEPTION(MESSAGE)
Definition throwExcept.h:10

◆ connect()

template<auto Callable, typename Type>
void ActsTrk::detail::RefittingCalibrator::connect ( const xAOD::UncalibMeasType type,
const Type * instance )
inline

Register a calibrator implementation instance for a given measurement type.

The function signature must satisfy the requirements of a Calibration delegate defined by the Acts::Fitters

Parameters
typeMeasurment type for which this instance of the calibrator shall be called
instancePointer to the calibrator instance.

Definition at line 44 of file RefittingCalibrator.h.

44 {
45 m_xAODCalibrator.connect<Callable>(type, instance);
46 }
std::map< std::string, double > instance

Member Data Documentation

◆ m_measCalibrator

TrkMeasurementCalibrator ActsTrk::detail::RefittingCalibrator::m_measCalibrator {}
private

Definition at line 49 of file RefittingCalibrator.h.

49{};

◆ m_prdCalibrator

TrkPrepRawDataCalibrator ActsTrk::detail::RefittingCalibrator::m_prdCalibrator {}
private

Definition at line 48 of file RefittingCalibrator.h.

48{};

◆ m_xAODCalibrator

xAODUncalibMeasCalibrator ActsTrk::detail::RefittingCalibrator::m_xAODCalibrator {}
private

Definition at line 50 of file RefittingCalibrator.h.

50{};

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