Belle II Software development
OffOrigin< T > Class Template Reference

Takes a basic object and passively moves it to any origin All subordinary coordinates have to be interpreted relative to this origin. More...

#include <OffOrigin.h>

Inheritance diagram for OffOrigin< T >:

Public Types

using Super = T
 Type of the base class.
 
using HoughBox = typename T::HoughBox
 The houghBox to which this object corresponds.
 

Public Member Functions

TrackingUtilities::ESign getDistanceSign (const HoughBox &houghBox, float x, float y, float signedDriftLength, float dxdz=0, float dydz=0, CDC::ILayer=-1) const
 Function that gives the sign of the distance from an observed drift circle to the sweeped object.
 
TrackingUtilities::Vector2D getLocalOrigin () const
 Getter for the local origin relative to which the parameters of the hough space are understood.
 
void setLocalOrigin (const TrackingUtilities::Vector2D &localOrigin)
 Setter for the local origin relative to which the parameters of the hough space are understood.
 

Private Attributes

float m_localOriginX = 0.0
 The local origin x to which the original plane is displaced.
 
float m_localOriginY = 0.0
 The local origin y to which the original plane is displaced.
 

Detailed Description

template<class T>
class Belle2::TrackFindingCDC::OffOrigin< T >

Takes a basic object and passively moves it to any origin All subordinary coordinates have to be interpreted relative to this origin.

Definition at line 24 of file OffOrigin.h.

Member Typedef Documentation

◆ HoughBox

template<class T>
using HoughBox = typename T::HoughBox

The houghBox to which this object corresponds.

Definition at line 35 of file OffOrigin.h.

◆ Super

template<class T>
using Super = T

Type of the base class.

Definition at line 28 of file OffOrigin.h.

Member Function Documentation

◆ getDistanceSign()

template<class T>
TrackingUtilities::ESign getDistanceSign ( const HoughBox & houghBox,
float x,
float y,
float signedDriftLength,
float dxdz = 0,
float dydz = 0,
CDC::ILayer = -1 ) const
inline

Function that gives the sign of the distance from an observed drift circle to the sweeped object.

Definition at line 40 of file OffOrigin.h.

47 {
48 return Super::getDistanceSign(houghBox,
49 x - m_localOriginX,
50 y - m_localOriginY,
51 signedDriftLength,
52 dxdz,
53 dydz,
54 -1);
55 }

◆ getLocalOrigin()

template<class T>
TrackingUtilities::Vector2D getLocalOrigin ( ) const
inline

Getter for the local origin relative to which the parameters of the hough space are understood.

Definition at line 59 of file OffOrigin.h.

60 { return TrackingUtilities::Vector2D(m_localOriginX, m_localOriginY); }

◆ setLocalOrigin()

template<class T>
void setLocalOrigin ( const TrackingUtilities::Vector2D & localOrigin)
inline

Setter for the local origin relative to which the parameters of the hough space are understood.

Definition at line 63 of file OffOrigin.h.

64 {
65 m_localOriginX = localOrigin.x();
66 m_localOriginY = localOrigin.y();
67 }

Member Data Documentation

◆ m_localOriginX

template<class T>
float m_localOriginX = 0.0
private

The local origin x to which the original plane is displaced.

Definition at line 70 of file OffOrigin.h.

◆ m_localOriginY

template<class T>
float m_localOriginY = 0.0
private

The local origin y to which the original plane is displaced.

Definition at line 73 of file OffOrigin.h.


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