ATLAS Offline Software
Loading...
Searching...
No Matches
ActsTrk::detail::PixelClusterCalibratorBase< derived_t, traj_t > Class Template Referenceabstract

#include <PixelClusterCalibrationToolBase.h>

Inheritance diagram for ActsTrk::detail::PixelClusterCalibratorBase< derived_t, traj_t >:
Collaboration diagram for ActsTrk::detail::PixelClusterCalibratorBase< derived_t, traj_t >:

Public Types

using BASE = PixelClusterCalibratorCommon<traj_t>
using OnTrackCalibrator = OnTrackCalibratorBase<xAOD::PixelCluster,2,traj_t>::OnTrackCalibrator
using TrackStateProxy = OnTrackCalibratorBase<xAOD::PixelCluster,2,traj_t>::TrackStateProxy
using Calibrator = OnBoundStateCalibratorBase<xAOD::PixelCluster,2>::Calibrator
using Pos = BASE::Pos
using Cov = BASE::Cov
using ClusterType = cluster_t

Public Member Functions

const derived_t & derived () const
std::pair< Pos, Covcalibrate (const Acts::GeometryContext &, const Acts::CalibrationContext &, const xAOD::PixelCluster &, const TrackStateProxy &) const
std::pair< Pos, Covcalibrate (const Acts::GeometryContext &, const Acts::CalibrationContext &, const Acts::Surface &, const xAOD::PixelCluster &, const Acts::BoundTrackParameters &) const
virtual void connectOnTrackCalibrator (OnTrackCalibrator &calibrator) const override
 connect the calibrator (derived class) to the given OnTrack calaibrator delegate
virtual void connectCalibrator (Calibrator &calibrator) const override
 connect the calibrator (derived class) to the given OnBoundState calaibrator delegate
virtual void connectOnTrackCalibrator (OnTrackCalibrator &calibrator) const=0

Static Public Attributes

static constexpr std::size_t ClusterDIM = DIM

Protected Member Functions

const InDetDD::SiDetectorElementgetDetectorElement (const Acts::Surface &surface) const
 convenience method to get the detector element for a module
const PixelIDpixelID () const
 get the Pixel ID helper.
double getLorentzShift (const IdentifierHash &elementHash, const EventContext &ctx) const
 @breif get the lorentz shift for the given module.
std::pair< typename PixelClusterCalibratorCommon< traj_t >::Pos, typename PixelClusterCalibratorCommon< traj_t >::Covcalibrate (const EventContext &ctx, const Acts::GeometryContext &gctx, const Acts::CalibrationContext &cctx, const xAOD::PixelCluster &cluster, const InDetDD::SiDetectorElement &detElement, const std::pair< float, float > &tan_incident_angles) const
 single calibrate method serving OnTrack and OnBoundState cluster calibration
std::pair< float, float > tanAnglesOfIncidence (const EventContext &ctx, const Acts::GeometryContext &gctx, const Acts::Surface &surface, const InDetDD::SiDetectorElement &element, const Acts::Vector3 &direction) const
 compute tan of Lorentz angle corrected incidence angles in local-x and local-y direction.

Protected Attributes

PixelClusterCalibratorOptionsBase m_baseOptions

Detailed Description

template<typename derived_t, typename traj_t>
class ActsTrk::detail::PixelClusterCalibratorBase< derived_t, traj_t >

Definition at line 89 of file PixelClusterCalibrationToolBase.h.

Member Typedef Documentation

◆ BASE

template<typename derived_t, typename traj_t>
using ActsTrk::detail::PixelClusterCalibratorBase< derived_t, traj_t >::BASE = PixelClusterCalibratorCommon<traj_t>

Definition at line 92 of file PixelClusterCalibrationToolBase.h.

◆ Calibrator

template<typename derived_t, typename traj_t>
using ActsTrk::detail::PixelClusterCalibratorBase< derived_t, traj_t >::Calibrator = OnBoundStateCalibratorBase<xAOD::PixelCluster,2>::Calibrator

Definition at line 96 of file PixelClusterCalibrationToolBase.h.

◆ ClusterType

template<typename cluster_t, std::size_t DIM>
using ActsTrk::OnBoundStateCalibratorBase< cluster_t, DIM >::ClusterType = cluster_t
inherited

Definition at line 31 of file IOnBoundStateCalibratorTool.h.

◆ Cov

template<typename derived_t, typename traj_t>
using ActsTrk::detail::PixelClusterCalibratorBase< derived_t, traj_t >::Cov = BASE::Cov

Definition at line 98 of file PixelClusterCalibrationToolBase.h.

◆ OnTrackCalibrator

template<typename derived_t, typename traj_t>
using ActsTrk::detail::PixelClusterCalibratorBase< derived_t, traj_t >::OnTrackCalibrator = OnTrackCalibratorBase<xAOD::PixelCluster,2,traj_t>::OnTrackCalibrator

Definition at line 94 of file PixelClusterCalibrationToolBase.h.

◆ Pos

template<typename derived_t, typename traj_t>
using ActsTrk::detail::PixelClusterCalibratorBase< derived_t, traj_t >::Pos = BASE::Pos

Definition at line 97 of file PixelClusterCalibrationToolBase.h.

◆ TrackStateProxy

template<typename derived_t, typename traj_t>
using ActsTrk::detail::PixelClusterCalibratorBase< derived_t, traj_t >::TrackStateProxy = OnTrackCalibratorBase<xAOD::PixelCluster,2,traj_t>::TrackStateProxy

Definition at line 95 of file PixelClusterCalibrationToolBase.h.

Member Function Documentation

◆ calibrate() [1/3]

template<typename derived_t, typename traj_t>
std::pair< Pos, Cov > ActsTrk::detail::PixelClusterCalibratorBase< derived_t, traj_t >::calibrate ( const Acts::GeometryContext & ,
const Acts::CalibrationContext & ,
const Acts::Surface & ,
const xAOD::PixelCluster & ,
const Acts::BoundTrackParameters &  ) const

◆ calibrate() [2/3]

template<typename derived_t, typename traj_t>
std::pair< Pos, Cov > ActsTrk::detail::PixelClusterCalibratorBase< derived_t, traj_t >::calibrate ( const Acts::GeometryContext & ,
const Acts::CalibrationContext & ,
const xAOD::PixelCluster & ,
const TrackStateProxy &  ) const

◆ calibrate() [3/3]

template<typename traj_t>
std::pair< typename PixelClusterCalibratorCommon< traj_t >::Pos, typename PixelClusterCalibratorCommon< traj_t >::Cov > ActsTrk::detail::PixelClusterCalibratorCommon< traj_t >::calibrate ( const EventContext & ctx,
const Acts::GeometryContext & gctx,
const Acts::CalibrationContext & cctx,
const xAOD::PixelCluster & cluster,
const InDetDD::SiDetectorElement & detElement,
const std::pair< float, float > & tan_incident_angles ) const
inlineprotectedinherited

single calibrate method serving OnTrack and OnBoundState cluster calibration

Parameters
gctxthe geometry context
cctxthe calibration context
clusterthe uncalibrated pixel cluster
detElementthe detector element of the corresponding module
tan_incident_anglestan of the Lorentz angle corrected incidence angles in local x and local y which are the projections of the trajectory on the surface. this is the method the derived class should overload. The default method is equivalent to the passThrough calibrator, with likely more overhead.
Returns
calibrated positions and corresponding covariance.

Definition at line 66 of file PixelClusterCalibrationToolBase.h.

71 {
72 return std::make_pair(cluster.template localPosition<2>(),
73 cluster.template localCovariance<2>());
74 }
the common base class of a PixelClusterCalibrator.

◆ connectCalibrator()

template<typename derived_t, typename traj_t>
virtual void ActsTrk::detail::PixelClusterCalibratorBase< derived_t, traj_t >::connectCalibrator ( Calibrator & calibrator) const
overridevirtual

connect the calibrator (derived class) to the given OnBoundState calaibrator delegate

Implements ActsTrk::OnBoundStateCalibratorBase< cluster_t, DIM >.

◆ connectOnTrackCalibrator() [1/2]

template<typename derived_t, typename traj_t>
virtual void ActsTrk::detail::PixelClusterCalibratorBase< derived_t, traj_t >::connectOnTrackCalibrator ( OnTrackCalibrator & calibrator) const
overridevirtual

connect the calibrator (derived class) to the given OnTrack calaibrator delegate

◆ connectOnTrackCalibrator() [2/2]

virtual void ActsTrk::OnTrackCalibratorBase< xAOD::PixelCluster, DIM, traj_t >::connectOnTrackCalibrator ( OnTrackCalibrator & calibrator) const
pure virtualinherited

◆ derived()

template<typename derived_t, typename traj_t>
const derived_t & ActsTrk::detail::PixelClusterCalibratorBase< derived_t, traj_t >::derived ( ) const
inline

Definition at line 100 of file PixelClusterCalibrationToolBase.h.

102 {
103 return *static_cast<const derived_t *>(this);
104 }

◆ getDetectorElement()

template<typename traj_t>
const InDetDD::SiDetectorElement & ActsTrk::detail::PixelClusterCalibratorCommon< traj_t >::getDetectorElement ( const Acts::Surface & surface) const
protectedinherited

convenience method to get the detector element for a module

Parameters
surfacethe surface of a module

◆ getLorentzShift()

template<typename traj_t>
double ActsTrk::detail::PixelClusterCalibratorCommon< traj_t >::getLorentzShift ( const IdentifierHash & elementHash,
const EventContext & ctx ) const
inlineprotectedinherited

@breif get the lorentz shift for the given module.

Definition at line 51 of file PixelClusterCalibrationToolBase.h.

51 {
52 return m_baseOptions.m_lorentzAngleTool->getLorentzShift(elementHash, ctx);
53 }

◆ pixelID()

template<typename traj_t>
const PixelID & ActsTrk::detail::PixelClusterCalibratorCommon< traj_t >::pixelID ( ) const
inlineprotectedinherited

get the Pixel ID helper.

Definition at line 48 of file PixelClusterCalibrationToolBase.h.

48{ return *m_baseOptions.m_pixelID; }

◆ tanAnglesOfIncidence()

template<typename traj_t>
std::pair< float, float > ActsTrk::detail::PixelClusterCalibratorCommon< traj_t >::tanAnglesOfIncidence ( const EventContext & ctx,
const Acts::GeometryContext & gctx,
const Acts::Surface & surface,
const InDetDD::SiDetectorElement & element,
const Acts::Vector3 & direction ) const
protectedinherited

compute tan of Lorentz angle corrected incidence angles in local-x and local-y direction.

Member Data Documentation

◆ ClusterDIM

template<typename cluster_t, std::size_t DIM>
std::size_t ActsTrk::OnBoundStateCalibratorBase< cluster_t, DIM >::ClusterDIM = DIM
staticconstexprinherited

Definition at line 32 of file IOnBoundStateCalibratorTool.h.

◆ m_baseOptions

template<typename traj_t>
PixelClusterCalibratorOptionsBase ActsTrk::detail::PixelClusterCalibratorCommon< traj_t >::m_baseOptions
protectedinherited

Definition at line 85 of file PixelClusterCalibrationToolBase.h.


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