Belle II Software development
|
Class that allows the calculation of simple variables to estimate the quality of a triplet of hits. More...
#include <ThreeHitVariables.h>
Public Member Functions | |
ThreeHitVariables () | |
basic constructor | |
ThreeHitVariables (const B2Vector3D &oHit, const B2Vector3D &cHit, const B2Vector3D &iHit) | |
actual useful constructor | |
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. | |
double | calcAvgDistanceXY (const B2Vector3D &circleCenter) |
helper function which calculates the average distance in XY from the given center | |
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. | |
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. | |
void | setBFieldZ (const double bfieldZ=1.5) |
Set the B-Field value used for pT calculations. | |
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 | |
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.
|
inline |
basic constructor
Definition at line 28 of file ThreeHitVariables.h.
|
inline |
actual useful constructor
oHit | B2Vector3D of the outer hit used for calculating the single variables |
cHit | B2Vector3D of the center hit used for calculating the single variables |
iHit | B2Vector3D of the inner hit used for calculating the single variables |
Definition at line 36 of file ThreeHitVariables.h.
|
inline |
helper function which calculates the average distance in XY from the given center
circleCenter | center of the circle 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.
|
inline |
calculates the angle between the hits/vectors (3D), returning unit: angle in radian
Definition at line 68 of file ThreeHitVariables.h.
|
inline |
calculates the angle between the hits/vectors (3D), returning unit: none (calculation for degrees is incomplete, if you want readable numbers, use Angle3DFull instead)
Definition at line 77 of file ThreeHitVariables.h.
|
inline |
calculates the angle between the hits/vectors (RZ), returning unit: angle in radian
Definition at line 87 of file ThreeHitVariables.h.
|
inline |
Calculates the angle in x-y between two vectors return unit: rad (0 - pi)
Definition at line 110 of file ThreeHitVariables.h.
|
inline |
calculates an estimation of circleCenter position, result is returned as the x and y value of the B2Vector3.
Definition at line 119 of file ThreeHitVariables.h.
|
inline |
calculates the distance of the point of closest approach of circle to the IP, returning unit: cm
Definition at line 149 of file ThreeHitVariables.h.
|
inline |
calculates the estimation of the circle radius of the 3-hit-tracklet, returning unit: cm.
Definition at line 164 of file ThreeHitVariables.h.
|
inline |
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)
Definition at line 99 of file ThreeHitVariables.h.
|
inline |
calculates the angle between the hits/vectors (XY), returning unit: none (calculation for degrees is incomplete, if you want readable numbers, use AngleXYFull instead)
Definition at line 176 of file ThreeHitVariables.h.
|
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.
|
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.
|
inline |
calculates deviations in the slope of the inner segment and the outer segment, returning unit: none
Definition at line 187 of file ThreeHitVariables.h.
|
inline |
compares the "slopes" z over arc length. calcDeltaSlopeZOverS is invariant under rotations in the r-z plane.
Definition at line 199 of file ThreeHitVariables.h.
|
inline |
calculates the helixparameter describing the deviation in arc length per unit in z. returning unit: radians*cm
Definition at line 226 of file ThreeHitVariables.h.
|
inline |
calculates the estimation of the transverse momentum of the 3-hit-tracklet, returning unit: GeV/c
Definition at line 271 of file ThreeHitVariables.h.
|
inline |
calculates the helixparameter describing the deviation in z per unit angle, returning unit: none
Definition at line 247 of file ThreeHitVariables.h.
|
inline |
Set the B-Field value used for pT calculations.
bfieldZ | B-Field value to be used |
Definition at line 307 of file ThreeHitVariables.h.
|
inline |
Set hits if not given in constructor of if they need to be changed.
oHit | B2Vector3D of the outer hit used for calculating the single variables |
cHit | B2Vector3D of the center hit used for calculating the single variables |
iHit | B2Vector3D of the inner hit used for calculating the single variables |
Definition at line 47 of file ThreeHitVariables.h.
|
private |
BField along z to estimate pT.
Definition at line 311 of file ThreeHitVariables.h.
|
private |
center hit position
Definition at line 315 of file ThreeHitVariables.h.
|
private |
innermost hit position
Definition at line 317 of file ThreeHitVariables.h.
|
private |
vector containing the difference m_cHit - m_iHit
Definition at line 322 of file ThreeHitVariables.h.
|
private |
outermost hit position
Definition at line 313 of file ThreeHitVariables.h.
|
private |
The following two differences are used very often, so calculate once on construction vector containing the difference m_oHit - m_cHit.
Definition at line 320 of file ThreeHitVariables.h.