Belle II Software development
HELIXPARAMETERFIT_NAME< PointType > Class Template Reference

calculates the helixparameter describing the deviation in z per unit angle, returning unit: none. More...

#include <HelixParameterFit.h>

Inheritance diagram for HELIXPARAMETERFIT_NAME< PointType >:
SelectionVariable< PointType, 3, double >

Public Types

typedef double variableType
 Type of the returned object.
 
typedef PointType argumentType
 Type of the argument object.
 
typedef FunctionOf< Nargs, variableType, constargumentType & >::functionType functionType
 Type of the function returning the value.
 

Public Member Functions

 PUT_NAME_FUNCTION (HELIXPARAMETERFIT_NAME)
 is replaced by "static const std:string name(void)" frunction which returns name of the Class
 

Static Public Member Functions

static double value (const PointType &outerHit, const PointType &centerHit, const PointType &innerHit)
 calculates the helixparameter describing the deviation in z per unit angle, returning unit: none
 
static variableType value (const PointType &arg1, const PointType &arg2)
 Static method that return the variable associated to:
 

Static Public Attributes

static const size_t c_Nargs
 Number of arguments.
 

Detailed Description

template<typename PointType>
class Belle2::HELIXPARAMETERFIT_NAME< PointType >

calculates the helixparameter describing the deviation in z per unit angle, returning unit: none.

WARNING: this filter returns 0 if no valid value could be found!

Definition at line 30 of file HelixParameterFit.h.

Member Typedef Documentation

◆ argumentType

typedef PointType argumentType
inherited

Type of the argument object.

Needed for SFINAE in Filter.hh

Definition at line 84 of file SelectionVariable.h.

◆ functionType

typedef FunctionOf<Nargs,variableType,constargumentType&>::functionType functionType
inherited

Type of the function returning the value.

Needed for the automated training

Definition at line 88 of file SelectionVariable.h.

◆ variableType

typedef double variableType
inherited

Type of the returned object.

Needed for SFINAE in Filter.hh

Definition at line 81 of file SelectionVariable.h.

Member Function Documentation

◆ value() [1/2]

static variableType value ( const PointType &  arg1,
const PointType &  arg2 
)
inlinestaticinherited

Static method that return the variable associated to:

Parameters
arg1first object of the pair
arg2second object of the pair

N.B. this method must be static.

◆ value() [2/2]

static double value ( const PointType &  outerHit,
const PointType &  centerHit,
const PointType &  innerHit 
)
inlinestatic

calculates the helixparameter describing the deviation in z per unit angle, returning unit: none

Definition at line 37 of file HelixParameterFit.h.

38 {
39
40 B2Vector3D cCenter = CircleCenterXY<PointType>::value(outerHit, centerHit, innerHit);
41
42 B2Vector3D vecOuter2cC(outerHit.X() - cCenter.X(), outerHit.Y() - cCenter.Y(), outerHit.Z() - cCenter.Z());
43 B2Vector3D vecCenter2cC(centerHit.X() - cCenter.X(), centerHit.Y() - cCenter.Y(), centerHit.Z() - cCenter.Z());
44 B2Vector3D vecInner2cC(innerHit.X() - cCenter.X(), innerHit.Y() - cCenter.Y(), innerHit.Z() - cCenter.Z());
45
46 double alfaAB = CosDirectionXY<B2Vector3D>::value(vecOuter2cC, vecCenter2cC);
47 double alfaBC = CosDirectionXY<B2Vector3D>::value(vecCenter2cC, vecInner2cC);
48
49 // real calculation: ratio is (m_vecij[2] = deltaZ): alfaAB/deltaZab : alfaBC/deltaZbc, the following equation saves two times '/'
50 double result = (alfaAB * double(centerHit.Z() - innerHit.Z())) / (alfaBC * double(outerHit.Z() - centerHit.Z()));
51
52 return (std::isnan(result) || std::isinf(result)) ? double(0) : result;
53 } // return unit: none
DataType Z() const
access variable Z (= .at(2) without boundary check)
Definition: B2Vector3.h:435
DataType X() const
access variable X (= .at(0) without boundary check)
Definition: B2Vector3.h:431
DataType Y() const
access variable Y (= .at(1) without boundary check)
Definition: B2Vector3.h:433
B2Vector3< double > B2Vector3D
typedef for common usage with double
Definition: B2Vector3.h:516
B2Vector3D outerHit(0, 0, 0)
testing out of range behavior

Member Data Documentation

◆ c_Nargs

const size_t c_Nargs
staticinherited

Number of arguments.

Definition at line 91 of file SelectionVariable.h.


The documentation for this class was generated from the following file: