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

Class that allows the calculation of simple variables to check whether a combination of two hits should be used or discarded in tracking. More...

#include <TwoHitVariables.h>

Collaboration diagram for TwoHitVariables:

Public Member Functions

 TwoHitVariables (const B2Vector3D &oHit, const B2Vector3D &iHit)
 Constructor. More...
 
void setHits (const B2Vector3D &oHit, const B2Vector3D &iHit)
 Set hits if not given in constructor of if they need to be changed. More...
 
double getCosXY ()
 calculate the cosine of the angle between two vectors in x-y
 
double get1DZDistance ()
 get the difference in z between two vectors
 
double get1DZDistanceSquared ()
 get the squared difference in z between two vectors
 
double get2DXYDistanceSquared ()
 get the squared distance between two vectors in x-y
 
double get3DDistanceSquared ()
 get the square of the difference of two vectors
 
double getRZSlope ()
 get an estimate for the slope in R-z, similar to theta
 
double getDistanceInTimeU (const SpacePoint &outerSpacePoint, const SpacePoint &innerSpacePoint)
 get the time difference of two space points for the u-side measurement More...
 
double getDistanceInTimeV (const SpacePoint &outerSpacePoint, const SpacePoint &innerSpacePoint)
 get the time difference of two space points for the v-side measurement 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_iHit
 innermost hit position
 

Detailed Description

Class that allows the calculation of simple variables to check whether a combination of two hits should be used or discarded in tracking.

Definition at line 23 of file TwoHitVariables.h.

Constructor & Destructor Documentation

◆ TwoHitVariables()

TwoHitVariables ( const B2Vector3D oHit,
const B2Vector3D iHit 
)
inline

Constructor.

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

Definition at line 28 of file TwoHitVariables.h.

28  : m_oHit(oHit), m_iHit(iHit)
29  {};
B2Vector3D m_oHit
outermost hit position
B2Vector3D m_iHit
innermost hit position

Member Function Documentation

◆ getDistanceInTimeU()

double getDistanceInTimeU ( const SpacePoint outerSpacePoint,
const SpacePoint innerSpacePoint 
)
inline

get the time difference of two space points for the u-side measurement

Parameters
outerSpacePointouter space point used for calculating the time difference in u
innerSpacePointinner space point used for calculating the time difference in u

Definition at line 87 of file TwoHitVariables.h.

◆ getDistanceInTimeV()

double getDistanceInTimeV ( const SpacePoint outerSpacePoint,
const SpacePoint innerSpacePoint 
)
inline

get the time difference of two space points for the v-side measurement

Parameters
outerSpacePointouter space point used for calculating the time difference in v
innerSpacePointinner space point used for calculating the time difference in v

Definition at line 95 of file TwoHitVariables.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 102 of file TwoHitVariables.h.

◆ setHits()

void setHits ( const B2Vector3D oHit,
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
iHitB2Vector3D of the inner hit used for calculating the single variables

Definition at line 34 of file TwoHitVariables.h.


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