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

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

using HoughBox = typename T::HoughBox

The houghBox to which this object corresponds.

Definition at line 35 of file OffOrigin.h.

◆ Super

using Super = T

Type of the base class.

Definition at line 28 of file OffOrigin.h.

Member Function Documentation

◆ getDistanceSign()

ESign getDistanceSign ( const HoughBox houghBox,
float  x,
float  y,
float  signedDriftLength,
float  dxdz = 0,
float  dydz = 0,
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,
51 signedDriftLength,
52 dxdz,
53 dydz,
54 -1);
55 }
float m_localOriginX
The local origin x to which the original plane is displaced.
Definition: OffOrigin.h:70
float m_localOriginY
The local origin y to which the original plane is displaced.
Definition: OffOrigin.h:73

◆ getLocalOrigin()

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 Vector2D(m_localOriginX, m_localOriginY); }

◆ setLocalOrigin()

void setLocalOrigin ( const 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

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

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: