Belle II Software development
DELTAPT_NAME< PointType > Class Template Reference

calculates dpt-value (dpt= difference in transverse momentum of 2 subsets of the hits), returning unit: GeV/c. More...

#include <DeltaPt.h>

Inheritance diagram for DELTAPT_NAME< PointType >:
SelectionVariable< PointType, 4, 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 (DELTAPT_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 &outerCenterHit, const PointType &innerCenterHit, const PointType &innerHit)
 calculates dpt-value (dpt= difference in transverse momentum of 2 subsets of the hits), returning unit: GeV/c
 
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::DELTAPT_NAME< PointType >

calculates dpt-value (dpt= difference in transverse momentum of 2 subsets of the hits), returning unit: GeV/c.

Definition at line 28 of file DeltaPt.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]

template<typename PointType>
static double value ( const PointType & outerHit,
const PointType & outerCenterHit,
const PointType & innerCenterHit,
const PointType & innerHit )
inlinestatic

calculates dpt-value (dpt= difference in transverse momentum of 2 subsets of the hits), returning unit: GeV/c

Definition at line 35 of file DeltaPt.h.

37 {
38 typedef SelVarHelper<PointType, double> Helper;
39
40 B2Vector3D outerCircleCenter =
41 CircleCenterXY<PointType>::value(outerHit, outerCenterHit, innerCenterHit);
42 double outerCircleRadius =
43 CircleRadius<PointType>::calcAvgDistanceXY(outerHit, outerCenterHit, innerCenterHit, outerCircleCenter);
44
45 B2Vector3D innerCircleCenter =
46 CircleCenterXY<PointType>::value(outerCenterHit, innerCenterHit, innerHit);
47 double innerCircleRadius =
48 CircleRadius<PointType>::calcAvgDistanceXY(outerCenterHit, innerCenterHit, innerHit, innerCircleCenter);
49
50 return fabs(Helper::calcPt(outerCircleRadius - innerCircleRadius));
51 } // return unit: GeV/c

◆ value() [2/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.

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: