Class that allows the calculation of simple variables to estimate the quality of two triplets of hits using four hits.
More...
#include <FourHitVariables.h>
Class that allows the calculation of simple variables to estimate the quality of two triplets of hits using four hits.
Definition at line 24 of file FourHitVariables.h.
◆ FourHitVariables() [1/2]
basic constructor
Definition at line 27 of file FourHitVariables.h.
27 : m_oHit(0., 0., 0.), m_ocHit(0., 0., 0.), m_icHit(0., 0., 0.), m_iHit(0., 0., 0.)
28 {};
◆ FourHitVariables() [2/2]
actual useful constructor
- Parameters
-
| oHit | B2Vector3D of the outer hit used for calculating the single variables |
| ocHit | B2Vector3D of the second-outer hit used for calculating the single variables |
| icHit | B2Vector3D of the second-inner hit used for calculating the single variables |
| iHit | B2Vector3D of the inner hit used for calculating the single variables |
Definition at line 35 of file FourHitVariables.h.
35 :
36 m_outerThreeHitVariables(oHit, ocHit, icHit), m_innerThreeHitVariables(ocHit, icHit, iHit),
37 m_oHit(oHit), m_ocHit(ocHit), m_icHit(icHit), m_iHit(iHit)
38 {
39 };
◆ getCircleCenterPositionDifference()
| double getCircleCenterPositionDifference |
( |
| ) |
|
|
inline |
calculates the distance between the estimated circle centers (using 2 subsets of given hits) in the xy-plane, returning unit: cm
Definition at line 72 of file FourHitVariables.h.
73 {
74 B2Vector3D outerCircleCenter = m_outerThreeHitVariables.getCircleCenterXY();
75 B2Vector3D innerCircleCenter = m_innerThreeHitVariables.getCircleCenterXY();
76 if (outerCircleCenter.Perp2() > 1e30 or innerCircleCenter.Perp2() > 1e30) {
77 return NAN;
78 }
79
80 return fabs(outerCircleCenter.Perp() - innerCircleCenter.Perp());
81 }
B2Vector3< double > B2Vector3D
typedef for common usage with double
◆ getCircleRadiusDifference()
| double getCircleRadiusDifference |
( |
| ) |
|
|
inline |
calculates dpt-value (dpt= difference in transverse momentum of 2 subsets of the hits), returning unit: cm
Definition at line 57 of file FourHitVariables.h.
58 {
59 B2Vector3D outerCircleCenter = m_outerThreeHitVariables.getCircleCenterXY();
60 B2Vector3D innerCircleCenter = m_innerThreeHitVariables.getCircleCenterXY();
61 if (outerCircleCenter.Perp2() > 1e30 or innerCircleCenter.Perp2() > 1e30) {
62 return NAN;
63 }
64 double outerCircleRadius = m_outerThreeHitVariables.calcAvgDistanceXY(outerCircleCenter);
65 double innerCircleRadius = m_innerThreeHitVariables.calcAvgDistanceXY(innerCircleCenter);
66
67 return outerCircleRadius - innerCircleRadius;
68 }
◆ getDeltaPT()
calculates dpt-value (dpt= difference in transverse momentum of 2 subsets of the hits), returning unit: GeV/c
Definition at line 85 of file FourHitVariables.h.
86 {
87 B2Vector3D outerCircleCenter = m_outerThreeHitVariables.getCircleCenterXY();
88 B2Vector3D innerCircleCenter = m_innerThreeHitVariables.getCircleCenterXY();
89 if (outerCircleCenter.Perp2() > 1e30 or innerCircleCenter.Perp2() > 1e30) {
90 return NAN;
91 }
92 double outerCircleRadius = m_outerThreeHitVariables.calcAvgDistanceXY(outerCircleCenter);
93 double innerCircleRadius = m_innerThreeHitVariables.calcAvgDistanceXY(innerCircleCenter);
94
95 return fabs(0.00299792458 * m_BFieldZ * (outerCircleRadius - innerCircleRadius));
96 }
◆ 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 100 of file FourHitVariables.h.
100{ m_BFieldZ = bfieldZ; }
◆ 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 |
| ocHit | B2Vector3D of the second-outer hit used for calculating the single variables |
| icHit | B2Vector3D of the second-inner hit used for calculating the single variables |
| iHit | B2Vector3D of the inner hit used for calculating the single variables |
Definition at line 46 of file FourHitVariables.h.
47 {
48 m_oHit = oHit;
49 m_ocHit = ocHit;
50 m_icHit = icHit;
51 m_iHit = iHit;
52 m_outerThreeHitVariables = ThreeHitVariables(oHit, ocHit, icHit);
53 m_innerThreeHitVariables = ThreeHitVariables(ocHit, icHit, iHit);
54 }
◆ m_BFieldZ
◆ m_icHit
◆ m_iHit
◆ m_innerThreeHitVariables
◆ m_ocHit
◆ m_oHit
◆ m_outerThreeHitVariables
The documentation for this class was generated from the following file: