46 void resetValues(
const TVector3& outerHit,
const TVector3& innerHit)
93 void initializeMe(
const TVector3& outerHit,
const TVector3& innerHit)
95 m_x2 = outerHit[0] - innerHit[0];
96 m_y2 = outerHit[1] - innerHit[1];
97 m_dz = outerHit[2] - innerHit[2];
The class 'TwoHitFilters' bundles filter methods using 2 hits which are stored in TVector3s.
double calcNormedDist3D() const
calculates the normed distance between the hits (3D), return unit: none
void resetValues(const TVector3 &outerHit, const TVector3 &innerHit)
Overrides Constructor-Setup.
TwoHitFilters(const TVector3 &outerHit, const TVector3 &innerHit)
Constructor.
double calcDist3D() const
calculates the distance between the hits (3D), returning unit: cm^2 for speed optimization
double m_x2
internal intermediate value storing x^2, no enduser-relevance
void initializeMe(const TVector3 &outerHit, const TVector3 &innerHit)
initializer function, sets values
double calcDistXY() const
calculates the distance between the hits (XY), returning unit: cm^2 for speed optimization
double fullDistXY() const
calculates the real distance between the hits (XY), returning unit: cm
double m_dz
internal intermediate value storing distance in z, no enduser-relevance
TwoHitFilters()
Empty constructor.
double filterNan(double value) const
nice little nanChecker returns 0 if value was nan or inf, else returns value itself
double calcSlopeRZ() const
calculates the angle of the slope of the hits in RZ, returnValue = theta = atan(r/z)
double m_y2
internal intermediate value storing y^2, no enduser-relevance
~TwoHitFilters()
Destructor.
double fullDist3D() const
calculates the real distance between the hits (3D), returning unit: cm
double fullSlopeRZ() const
calculates the angle of the slope of the hits in RZ, returnValue = theta = atan(r/z)
double m_z2
internal intermediate value storing z^2, no enduser-relevance
TVector3 m_hitA
outer hit (position relevant for useful filter calculation, e.g.
double calcDistZ() const
calculates the distance between the hits (Z only), returning unit: cm
TVector3 m_hitB
inner hit (position relevant for useful filter calculation, e.g.
Abstract base class for different kinds of events.