Belle II Software development
DISTANCE1DZ_NAME< PointType > Class Template Reference

This is the specialization for SpacePoints with returning floats, where value calculates the distance between two hits in 1D on the Z-axis. More...

#include <Distance1DZ.h>

Inheritance diagram for DISTANCE1DZ_NAME< PointType >:
SelectionVariable< PointType, 2, 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 (DISTANCE1DZ_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 &innerHit)
 calculates the distance between the hits in z (1D), returning unit: cm
 

Static Public Attributes

static const size_t c_Nargs
 Number of arguments.
 

Detailed Description

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

This is the specialization for SpacePoints with returning floats, where value calculates the distance between two hits in 1D on the Z-axis.

(please note that this is defined for positive and negative values)

Definition at line 25 of file Distance1DZ.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()

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

calculates the distance between the hits in z (1D), returning unit: cm

Definition at line 31 of file Distance1DZ.h.

32 {
33 return outerHit.Z() - innerHit.Z();
34 }
DataType Z() const
access variable Z (= .at(2) without boundary check)
Definition: B2Vector3.h:435
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: