Belle II Software  release-08-01-10
ThreeHitVariables Class Reference

Class that allows the calculation of simple variables to estimate the quality of a triplet of hits. More...

#include <ThreeHitVariables.h>

Collaboration diagram for ThreeHitVariables:

Public Member Functions

 ThreeHitVariables ()
 basic constructor
 
 ThreeHitVariables (const B2Vector3D &oHit, const B2Vector3D &cHit, const B2Vector3D &iHit)
 actual useful constructor More...
 
void setHits (const B2Vector3D &oHit, const B2Vector3D &cHit, const B2Vector3D &iHit)
 Set hits if not given in constructor of if they need to be changed. More...
 
double calcAvgDistanceXY (const B2Vector3D &circleCenter)
 helper function which calculates the average distance in XY from the given center More...
 
double getAngle3D ()
 calculates the angle between the hits/vectors (3D), returning unit: angle in radian
 
double getAngle3DSimple ()
 calculates the angle between the hits/vectors (3D), returning unit: none (calculation for degrees is incomplete, if you want readable numbers, use Angle3DFull instead)
 
double getAngleRZ ()
 calculates the angle between the hits/vectors (RZ), returning unit: angle in radian
 
double getCosAngleRZSimple ()
 calculates the cosine of the angle between the hits/vectors (RZ), returning unit: none (calculation for degrees is incomplete, if you want readable numbers, use AngleRZFull instead)
 
double getAngleXY ()
 Calculates the angle in x-y between two vectors return unit: rad (0 - pi)
 
B2Vector3D getCircleCenterXY ()
 calculates an estimation of circleCenter position, result is returned as the x and y value of the B2Vector3.
 
double getCircleDistanceIP ()
 calculates the distance of the point of closest approach of circle to the IP, returning unit: cm
 
double getCircleRadius ()
 calculates the estimation of the circle radius of the 3-hit-tracklet, returning unit: cm.
 
double getCosAngleXY ()
 calculates the angle between the hits/vectors (XY), returning unit: none (calculation for degrees is incomplete, if you want readable numbers, use AngleXYFull instead)
 
double getDeltaSlopeRZ ()
 calculates deviations in the slope of the inner segment and the outer segment, returning unit: none
 
double getDeltaSlopeZoverS ()
 compares the "slopes" z over arc length. calcDeltaSlopeZOverS is invariant under rotations in the r-z plane.
 
double getDeltaSoverZ ()
 calculates the helixparameter describing the deviation in arc length per unit in z. returning unit: radians*cm
 
double performHelixParamterFit ()
 calculates the helixparameter describing the deviation in z per unit angle, returning unit: none
 
double getSimplePTEstimate ()
 calculates the estimation of the transverse momentum of the 3-hit-tracklet, returning unit: GeV/c
 
int getCurvatureSign ()
 calculates calculates the sign of the curvature of given 3-hit-tracklet. More...
 
int getCurvatureSign (const B2Vector3D &oHit, const B2Vector3D &cHit, const B2Vector3D &iHit)
 calculates calculates the sign of the curvature of 3-hit-tracklet given as arguments. More...
 
void setBFieldZ (const double bfieldZ=1.5)
 Set the B-Field value used for pT calculations. More...
 

Private Attributes

double m_BFieldZ = 1.5
 BField along z to estimate pT.
 
B2Vector3D m_oHit
 outermost hit position
 
B2Vector3D m_cHit
 center hit position
 
B2Vector3D m_iHit
 innermost hit position
 
B2Vector3D m_outerDifferenceVector
 The following two differences are used very often, so calculate once on construction vector containing the difference m_oHit - m_cHit.
 
B2Vector3D m_innerDifferenceVector
 vector containing the difference m_cHit - m_iHit
 

Detailed Description

Class that allows the calculation of simple variables to estimate the quality of a triplet of hits.

Definition at line 25 of file ThreeHitVariables.h.

Constructor & Destructor Documentation

◆ ThreeHitVariables()

ThreeHitVariables ( const B2Vector3D oHit,
const B2Vector3D cHit,
const B2Vector3D iHit 
)
inline

actual useful constructor

Parameters
oHitB2Vector3D of the outer hit used for calculating the single variables
cHitB2Vector3D of the center hit used for calculating the single variables
iHitB2Vector3D of the inner hit used for calculating the single variables

Definition at line 36 of file ThreeHitVariables.h.

36  :
37  m_oHit(oHit), m_cHit(cHit), m_iHit(iHit)
38  {
39  m_outerDifferenceVector = oHit - cHit;
40  m_innerDifferenceVector = cHit - iHit;
41  };
B2Vector3D m_outerDifferenceVector
The following two differences are used very often, so calculate once on construction vector containin...
B2Vector3D m_oHit
outermost hit position
B2Vector3D m_iHit
innermost hit position
B2Vector3D m_innerDifferenceVector
vector containing the difference m_cHit - m_iHit

Member Function Documentation

◆ calcAvgDistanceXY()

double calcAvgDistanceXY ( const B2Vector3D circleCenter)
inline

helper function which calculates the average distance in XY from the given center

Parameters
circleCentercenter of the cirlce for which the average distance is calculated returns the average distance in cm of the hits to the circle center position

Definition at line 59 of file ThreeHitVariables.h.

◆ getCurvatureSign() [1/2]

int getCurvatureSign ( )
inline

calculates calculates the sign of the curvature of given 3-hit-tracklet.

A positive value represents a left-oriented curvature, a negative value means having a right-oriented curvature. 0 means that it is exactly straight or that two hits are identical.

Definition at line 286 of file ThreeHitVariables.h.

◆ getCurvatureSign() [2/2]

int getCurvatureSign ( const B2Vector3D oHit,
const B2Vector3D cHit,
const B2Vector3D iHit 
)
inline

calculates calculates the sign of the curvature of 3-hit-tracklet given as arguments.

A positive value represents a left-oriented curvature, a negative value means having a right-oriented curvature. 0 means that it is exactly straight or that two hits are identical.

Definition at line 297 of file ThreeHitVariables.h.

◆ setBFieldZ()

void setBFieldZ ( const double  bfieldZ = 1.5)
inline

Set the B-Field value used for pT calculations.

Parameters
bfieldZB-Field value to be used

Definition at line 307 of file ThreeHitVariables.h.

◆ setHits()

void setHits ( const B2Vector3D oHit,
const B2Vector3D cHit,
const B2Vector3D iHit 
)
inline

Set hits if not given in constructor of if they need to be changed.

Parameters
oHitB2Vector3D of the outer hit used for calculating the single variables
cHitB2Vector3D of the center hit used for calculating the single variables
iHitB2Vector3D of the inner hit used for calculating the single variables

Definition at line 47 of file ThreeHitVariables.h.


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