Belle II Software  release-08-01-10
CIRCLERADIUS_NAME< PointType > Class Template Reference

calculates the estimation of the circle radius of the 3-hit-tracklet, returning unit: cm. More...

#include <CircleRadius.h>

Inheritance diagram for CIRCLERADIUS_NAME< PointType >:
Collaboration diagram for CIRCLERADIUS_NAME< PointType >:

Public Types

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

Public Member Functions

 PUT_NAME_FUNCTION (CIRCLERADIUS_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 estimation of the circle radius of the 3-hit-tracklet, returning unit: cm.
 
static double calcAvgDistanceXY (const PointType &a, const PointType &b, const PointType &c, const B2Vector3< double > &center)
 helper function with calculates the average distance in XY from the given center More...
 
static variableType value (const PointType &arg1, const PointType &arg2)
 Static method that return the variable associated to: More...
 

Static Public Attributes

static const size_t c_Nargs
 Number of arguments.
 

Detailed Description

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

calculates the estimation of the circle radius of the 3-hit-tracklet, returning unit: cm.

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

Definition at line 27 of file CircleRadius.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, const argumentType&>::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

◆ calcAvgDistanceXY()

static double calcAvgDistanceXY ( const PointType &  a,
const PointType &  b,
const PointType &  c,
const B2Vector3< double > &  center 
)
inlinestatic

helper function with calculates the average distance in XY from the given center

Parameters
afirst point for which the distance is evaluated
bsecond point for which the distance is evaluated
cthird point for which the distance is evaluated
centerthe center from which the relative distance is evaluated TODO: think about a better place to put this helper! Maybe own class but where to put the class?

Definition at line 49 of file CircleRadius.h.

50  {
51  return (sqrt(std::pow(center.X() - a.X(), 2) + std::pow(center.Y() - a.Y(), 2)) +
52  sqrt(std::pow(center.X() - b.X(), 2) + std::pow(center.Y() - b.Y(), 2)) +
53  sqrt(std::pow(center.X() - c.X(), 2) + std::pow(center.Y() - c.Y(), 2))) / 3.;
54  } // = radius in [cm], sign here not needed. normally: signKappaAB/normAB1
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
double sqrt(double a)
sqrt for double
Definition: beamHelpers.h:28

◆ value()

static variableType value ( const templateArgumentType &  arg1,
const templateArgumentType &  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.


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