Belle II Software development
APhi0Sweeped< T, APhi0 > Class Template Reference

Takes a basic object and sweeps it by some angle phi0 range a around the origin. More...

#include <Phi0Sweeped.h>

Inheritance diagram for APhi0Sweeped< T, APhi0 >:

Public Types

using HoughBox = SweepBox< APhi0, typename T::HoughBox >
 The box to which this object corresponds.
 
using SubordinaryHoughBox = typename T::HoughBox
 The hough box without the sweep in phi0.
 

Public Member Functions

 APhi0Sweeped (float curlCurv)
 Constructor taking the curling curvature.
 
ESign getDistanceSign (const HoughBox &houghBox, float x, float y, float signedDriftLength, float dxdz=0, float dydz=0, ILayer iCLayer=-1) const
 Function that gives the sign of the distance from an observed drift circle to the sweeped object.
 

Private Attributes

float m_curlCurv = NAN
 The curvature above which the trajectory is considered a curler.
 

Detailed Description

template<class T, class APhi0 = DiscretePhi0>
class Belle2::TrackFindingCDC::APhi0Sweeped< T, APhi0 >

Takes a basic object and sweeps it by some angle phi0 range a around the origin.

Definition at line 26 of file Phi0Sweeped.h.

Member Typedef Documentation

◆ HoughBox

using HoughBox = SweepBox<APhi0, typename T::HoughBox>

The box to which this object corresponds.

Definition at line 34 of file Phi0Sweeped.h.

◆ SubordinaryHoughBox

using SubordinaryHoughBox = typename T::HoughBox

The hough box without the sweep in phi0.

Definition at line 37 of file Phi0Sweeped.h.

Constructor & Destructor Documentation

◆ APhi0Sweeped()

APhi0Sweeped ( float  curlCurv)
inline

Constructor taking the curling curvature.

Definition at line 40 of file Phi0Sweeped.h.

40: m_curlCurv(curlCurv) {}
float m_curlCurv
The curvature above which the trajectory is considered a curler.
Definition: Phi0Sweeped.h:97

Member Function Documentation

◆ getDistanceSign()

ESign getDistanceSign ( const HoughBox houghBox,
float  x,
float  y,
float  signedDriftLength,
float  dxdz = 0,
float  dydz = 0,
ILayer  iCLayer = -1 
) const
inline

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

Definition at line 45 of file Phi0Sweeped.h.

52 {
53 const Vector2D& lowerPhi0Vec(houghBox.template getLowerBound<APhi0>());
54 const Vector2D& upperPhi0Vec(houghBox.template getUpperBound<APhi0>());
55 const SubordinaryHoughBox& subordinaryHoughBox = houghBox.getSubordinaryBox();
56
57 const float lowerX = x * lowerPhi0Vec.x() + y * lowerPhi0Vec.y();
58 const float upperX = x * upperPhi0Vec.x() + y * upperPhi0Vec.y();
59
60 float lowerCurv(getLowerCurv(houghBox));
61 float upperCurv(getUpperCurv(houghBox));
62
63 const bool lowerIsNonCurler = fabs(lowerCurv) < m_curlCurv;
64 const bool upperIsNonCurler = fabs(upperCurv) < m_curlCurv;
65
66 if (lowerIsNonCurler and upperIsNonCurler) {
67 if (not(lowerX >= 0) and not(upperX >= 0)) return ESign::c_Invalid;
68 }
69
70 const float lowerY = -x * lowerPhi0Vec.y() + y * lowerPhi0Vec.x();
71 const float upperY = -x * upperPhi0Vec.y() + y * upperPhi0Vec.x();
72
73 const float upperDXDZ = dxdz * upperPhi0Vec.x() + dydz * upperPhi0Vec.y();
74 const float lowerDXDZ = dxdz * lowerPhi0Vec.x() + dydz * lowerPhi0Vec.y();
75
76
77 const float lowerDYDZ = -dxdz * lowerPhi0Vec.y() + dydz * lowerPhi0Vec.x();
78 const float upperDYDZ = -dxdz * upperPhi0Vec.y() + dydz * upperPhi0Vec.x();
79
80 const ESign lowerDistSign = T::getDistanceSign(subordinaryHoughBox,
81 lowerX, lowerY,
82 signedDriftLength,
83 lowerDXDZ, lowerDYDZ.
84 iCLayer);
85
86 const ESign upperDistSign = T::getDistanceSign(subordinaryHoughBox,
87 upperX, upperY,
88 signedDriftLength,
89 upperDXDZ, upperDYDZ,
90 iCLayer);
91
92 return ESignUtil::common(lowerDistSign, upperDistSign);
93 }
typename T::HoughBox SubordinaryHoughBox
The hough box without the sweep in phi0.
Definition: Phi0Sweeped.h:37
ESign
Enumeration for the distinct sign values of floating point variables.
Definition: ESign.h:27
static ESign common(ESign n1, ESign n2)
Check if two values have a common sign.
Definition: ESign.h:57

Member Data Documentation

◆ m_curlCurv

float m_curlCurv = NAN
private

The curvature above which the trajectory is considered a curler.

Definition at line 97 of file Phi0Sweeped.h.


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