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.
 
ROOT::Math::XYVector getLocalOrigin () const
 Getter for the local origin relative to which the parameters of the hough space are understood.
 
void setLocalOrigin (const ROOT::Math::XYVector &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 25 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 36 of file OffOrigin.h.

◆ Super

template<class T>
using Super = T

Type of the base class.

Definition at line 29 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 41 of file OffOrigin.h.

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

◆ getLocalOrigin()

template<class T>
ROOT::Math::XYVector getLocalOrigin ( ) const
inline

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

Definition at line 60 of file OffOrigin.h.

61 { return ROOT::Math::XYVector(m_localOriginX, m_localOriginY); }

◆ setLocalOrigin()

template<class T>
void setLocalOrigin ( const ROOT::Math::XYVector & localOrigin)
inline

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

Definition at line 64 of file OffOrigin.h.

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

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 71 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 74 of file OffOrigin.h.


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