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

the common base class of a PixelClusterCalibrator. More...

#include <PixelClusterCalibrationToolBase.h>

Inheritance diagram for ActsTrk::detail::PixelClusterCalibratorCommon< traj_t >:
Collaboration diagram for ActsTrk::detail::PixelClusterCalibratorCommon< traj_t >:

Public Types

using BASE
using TrackStateProxy
using OnTrackCalibrator
using ClusterType = cluster_t
using Calibrator

Public Member Functions

 PixelClusterCalibratorCommon (PixelClusterCalibratorOptionsBase &&base_options)
virtual void connectOnTrackCalibrator (OnTrackCalibrator &calibrator) const=0
virtual void connectCalibrator (Calibrator &calibrator) const =0
 Connect this calibrator to the provided delegate.

Static Public Attributes

static constexpr std::size_t ClusterDIM = DIM

Protected Types

using Pos = xAOD::MeasVector<2>
using Cov = xAOD::MeasMatrix<2>

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 traj_t>
class ActsTrk::detail::PixelClusterCalibratorCommon< traj_t >

the common base class of a PixelClusterCalibrator.

the class provides common convenience functions to get the detector element for a certain module, and Lorentz angle corrected incidence angles relative to the module reference frame, provides the pixel ID helper and the shift due to the Lorentz angle.

Definition at line 29 of file PixelClusterCalibrationToolBase.h.

Member Typedef Documentation

◆ BASE

using ActsTrk::OnTrackCalibratorBase< xAOD::PixelCluster, DIM, traj_t >::BASE
inherited

Definition at line 16 of file IOnTrackCalibratorTool.h.

◆ Calibrator

template<typename cluster_t, std::size_t DIM>
using ActsTrk::OnBoundStateCalibratorBase< cluster_t, DIM >::Calibrator
inherited
Initial value:
Acts::Delegate<
std::pair<Pos, Cov>(const Acts::GeometryContext&,
const Acts::CalibrationContext&,
const Acts::Surface&,
const cluster_t &,
const Acts::BoundTrackParameters &)>

Definition at line 35 of file IOnBoundStateCalibratorTool.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 traj_t>
using ActsTrk::detail::PixelClusterCalibratorCommon< traj_t >::Cov = xAOD::MeasMatrix<2>
protected

Definition at line 41 of file PixelClusterCalibrationToolBase.h.

◆ OnTrackCalibrator

using ActsTrk::OnTrackCalibratorBase< xAOD::PixelCluster, DIM, traj_t >::OnTrackCalibrator
inherited

Definition at line 24 of file IOnTrackCalibratorTool.h.

◆ Pos

template<typename traj_t>
using ActsTrk::detail::PixelClusterCalibratorCommon< traj_t >::Pos = xAOD::MeasVector<2>
protected

Definition at line 40 of file PixelClusterCalibrationToolBase.h.

◆ TrackStateProxy

using ActsTrk::OnTrackCalibratorBase< xAOD::PixelCluster, DIM, traj_t >::TrackStateProxy
inherited

Definition at line 21 of file IOnTrackCalibratorTool.h.

Constructor & Destructor Documentation

◆ PixelClusterCalibratorCommon()

template<typename traj_t>
ActsTrk::detail::PixelClusterCalibratorCommon< traj_t >::PixelClusterCalibratorCommon ( PixelClusterCalibratorOptionsBase && base_options)
inlineexplicit

Definition at line 32 of file PixelClusterCalibrationToolBase.h.

34 {
35 assert(m_baseOptions.m_pixelID);
36 assert(m_baseOptions.m_lorentzAngleTool);
37 }
the common base class of a PixelClusterCalibrator.

Member Function Documentation

◆ calibrate()

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
inlineprotected

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 }

◆ connectCalibrator()

template<typename cluster_t, std::size_t DIM>
virtual void ActsTrk::OnBoundStateCalibratorBase< cluster_t, DIM >::connectCalibrator ( Calibrator & calibrator) const
pure virtualinherited

◆ connectOnTrackCalibrator()

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

◆ getDetectorElement()

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

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
inlineprotected

@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
inlineprotected

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
protected

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
protected

Definition at line 85 of file PixelClusterCalibrationToolBase.h.


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