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>
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.
◆ TwoHitVariables()
Constructor.
- Parameters
-
oHit | B2Vector3D of the outer hit used for calculating the single variables |
iHit | B2Vector3D of the inner hit used for calculating the single variables |
Definition at line 28 of file TwoHitVariables.h.
29 {};
B2Vector3D m_oHit
outermost hit position
B2Vector3D m_iHit
innermost hit position
◆ get1DZDistance()
double get1DZDistance |
( |
| ) |
|
|
inline |
get the difference in z between two vectors
Definition at line 47 of file TwoHitVariables.h.
48 {
50 }
DataType Z() const
access variable Z (= .at(2) without boundary check)
◆ get1DZDistanceSquared()
double get1DZDistanceSquared |
( |
| ) |
|
|
inline |
get the squared difference in z between two vectors
Definition at line 53 of file TwoHitVariables.h.
◆ get2DXYDistanceSquared()
double get2DXYDistanceSquared |
( |
| ) |
|
|
inline |
get the squared distance between two vectors in x-y
Definition at line 59 of file TwoHitVariables.h.
◆ get3DDistanceSquared()
double get3DDistanceSquared |
( |
| ) |
|
|
inline |
get the square of the difference of two vectors
Definition at line 65 of file TwoHitVariables.h.
◆ getCosXY()
calculate the cosine of the angle between two vectors in x-y
Definition at line 41 of file TwoHitVariables.h.
42 {
44 }
DataType X() const
access variable X (= .at(0) without boundary check)
DataType Y() const
access variable Y (= .at(1) without boundary check)
DataType Perp() const
The transverse component (R in cylindrical coordinate system).
◆ getDistanceInTimeU()
double getDistanceInTimeU |
( |
const SpacePoint & |
outerSpacePoint, |
|
|
const SpacePoint & |
innerSpacePoint |
|
) |
| |
|
inline |
get the time difference of two space points for the u-side measurement
- Parameters
-
outerSpacePoint | outer space point used for calculating the time difference in u |
innerSpacePoint | inner space point used for calculating the time difference in u |
Definition at line 87 of file TwoHitVariables.h.
88 {
89 return outerSpacePoint.TimeU() - innerSpacePoint.TimeU();
90 }
◆ getDistanceInTimeV()
double getDistanceInTimeV |
( |
const SpacePoint & |
outerSpacePoint, |
|
|
const SpacePoint & |
innerSpacePoint |
|
) |
| |
|
inline |
get the time difference of two space points for the v-side measurement
- Parameters
-
outerSpacePoint | outer space point used for calculating the time difference in v |
innerSpacePoint | inner space point used for calculating the time difference in v |
Definition at line 95 of file TwoHitVariables.h.
96 {
97 return outerSpacePoint.TimeV() - innerSpacePoint.TimeV();
98 }
◆ getRZSlope()
get an estimate for the slope in R-z, similar to theta
Definition at line 71 of file TwoHitVariables.h.
72 {
77
78 if (result < 0.0) result += M_PI;
79
80
81 return (std::isnan(result) || std::isinf(result)) ? double(0) : result;
82 }
double atan(double a)
atan for double
double sqrt(double a)
sqrt for double
◆ setBFieldZ()
void setBFieldZ |
( |
const double |
bfieldZ = 1.5 | ) |
|
|
inline |
Set the B-Field value used for pT calculations.
- Parameters
-
bfieldZ | B-Field value to be used |
Definition at line 102 of file TwoHitVariables.h.
double m_BFieldZ
BField along z to estimate pT.
◆ setHits()
Set hits if not given in constructor of if they need to be changed.
- Parameters
-
oHit | B2Vector3D of the outer hit used for calculating the single variables |
iHit | B2Vector3D of the inner hit used for calculating the single variables |
Definition at line 34 of file TwoHitVariables.h.
◆ m_BFieldZ
◆ m_iHit
◆ m_oHit
The documentation for this class was generated from the following file: