Belle II Software  release-05-02-19
TwoHitFilters Class Reference

The class 'TwoHitFilters' bundles filter methods using 2 hits which are stored in TVector3s. More...

#include <TwoHitFilters.h>

Collaboration diagram for TwoHitFilters:

Public Member Functions

 TwoHitFilters ()
 Empty constructor. More...
 
 TwoHitFilters (TVector3 &outerHit, TVector3 &innerHit)
 Constructor. More...
 
 ~TwoHitFilters ()
 Destructor.
 
void resetValues (TVector3 &outerHit, TVector3 &innerHit)
 Overrides Constructor-Setup. More...
 
double calcDist3D () const
 calculates the distance between the hits (3D), returning unit: cm^2 for speed optimization
 
double fullDist3D () const
 calculates the real distance between the hits (3D), returning unit: cm
 
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 calcDistZ () const
 calculates the distance between the hits (Z only), returning unit: cm
 
double calcSlopeRZ () const
 calculates the angle of the slope of the hits in RZ, returnValue = theta = atan(r/z)
 
double fullSlopeRZ () const
 calculates the angle of the slope of the hits in RZ, returnValue = theta = atan(r/z)
 
double calcNormedDist3D () const
 calculates the normed distance between the hits (3D), return unit: none
 
double filterNan (double value) const
 nice little nanChecker returns 0 if value was nan or inf, else returns value itself
 

Protected Member Functions

void initializeMe (TVector3 &outerHit, TVector3 &innerHit)
 initializer function, sets values
 

Protected Attributes

TVector3 m_hitA
 outer hit (position relevant for useful filter calculation, e.g. More...
 
TVector3 m_hitB
 inner hit (position relevant for useful filter calculation, e.g. More...
 
double m_x2
 internal intermediate value storing x^2, no enduser-relevance
 
double m_y2
 internal intermediate value storing y^2, no enduser-relevance
 
double m_z2
 internal intermediate value storing z^2, no enduser-relevance
 
double m_dz
 internal intermediate value storing distance in z, no enduser-relevance
 

Detailed Description

The class 'TwoHitFilters' bundles filter methods using 2 hits which are stored in TVector3s.

Definition at line 32 of file TwoHitFilters.h.

Constructor & Destructor Documentation

◆ TwoHitFilters() [1/2]

TwoHitFilters ( )
inline

Empty constructor.

For pre-inizialisation only, an object generated this way is useless unless resetValues(a, b) is called at least once

Definition at line 36 of file TwoHitFilters.h.

39  :
40  m_hitA(outerHit),
41  m_hitB(innerHit) { initializeMe(outerHit, innerHit); }
42 
43 

◆ TwoHitFilters() [2/2]

TwoHitFilters ( TVector3 &  outerHit,
TVector3 &  innerHit 
)
inline

Constructor.

needs the first parameter is outer hit, second is inner hit. Parameters in TVector3-format

Definition at line 47 of file TwoHitFilters.h.

Member Function Documentation

◆ resetValues()

void resetValues ( TVector3 &  outerHit,
TVector3 &  innerHit 
)
inline

Overrides Constructor-Setup.

Needed if you want to reuse the instance instead of recreating one

Definition at line 56 of file TwoHitFilters.h.

Member Data Documentation

◆ m_hitA

TVector3 m_hitA
protected

outer hit (position relevant for useful filter calculation, e.g.

calcDist3D) used for the filter calculation

Definition at line 114 of file TwoHitFilters.h.

◆ m_hitB

TVector3 m_hitB
protected

inner hit (position relevant for useful filter calculation, e.g.

calcDist3D) used for the filter calculation

Definition at line 115 of file TwoHitFilters.h.


The documentation for this class was generated from the following files:
Belle2::TwoHitFilters::initializeMe
void initializeMe(TVector3 &outerHit, TVector3 &innerHit)
initializer function, sets values
Definition: TwoHitFilters.h:103
Belle2::TwoHitFilters::m_hitA
TVector3 m_hitA
outer hit (position relevant for useful filter calculation, e.g.
Definition: TwoHitFilters.h:114
Belle2::TwoHitFilters::m_hitB
TVector3 m_hitB
inner hit (position relevant for useful filter calculation, e.g.
Definition: TwoHitFilters.h:115