Belle II Software development
MLHANDOVER_NAME< PointType, Ndims > Class Template Reference

SelectionVariable that is used for the Machine Learning (ML) based filters. More...

#include <MLHandover.h>

Inheritance diagram for MLHANDOVER_NAME< PointType, Ndims >:
SelectionVariable< templateArgumentType, Nargs, templateReturnType >

Public Types

typedef templateReturnType variableType
 Type of the returned object.
 
typedef templateArgumentType 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 (MLHANDOVER_NAME)
 is replaced by "static const std:string name(void)" frunction which returns name of the Class
 

Static Public Member Functions

static std::array< double, Ndims > value (const PointType &innerHit, const PointType &centerHit, const PointType &outerHit)
 Getter for coordinate values of the three hits used in a three hit filter.
 
static variableType value (const templateArgumentType &arg1, const templateArgumentType &arg2)
 Static method that return the variable associated to:
 

Static Public Attributes

static const size_t c_Nargs = Nargs
 Number of arguments.
 

Detailed Description

template<typename PointType, size_t Ndims = 9>
class Belle2::MLHANDOVER_NAME< PointType, Ndims >

SelectionVariable that is used for the Machine Learning (ML) based filters.

Does nothing else than handing over the 3x3 git coordinates to the MLRange, where all the ML magic happens. This has to be done this way since this class provides only a static function and we need different instances of ML classifiers. We do however have access to the constructor of the Range classes.

Definition at line 30 of file MLHandover.h.

Member Typedef Documentation

◆ argumentType

typedef templateArgumentType 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 templateReturnType 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 std::array< double, Ndims > value ( const PointType &  innerHit,
const PointType &  centerHit,
const PointType &  outerHit 
)
inlinestatic

Getter for coordinate values of the three hits used in a three hit filter.

Parameters
innerHit: the inner hit
centerHit: the center hit
outerHit: the outer hit
Returns
array containing the coordinates of the three hits in the order x, y, z for inner, x, y, y for center, outer

Definition at line 43 of file MLHandover.h.

44 {
45 return std::array<double, Ndims> {{
46 innerHit.X(), innerHit.Y(), innerHit.Z(),
47 centerHit.X(), centerHit.Y(), centerHit.Z(),
49 }
50 };
51 }
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
B2Vector3D outerHit(0, 0, 0)
testing out of range behavior

◆ value() [2/2]

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.

Member Data Documentation

◆ c_Nargs

const size_t c_Nargs = Nargs
staticinherited

Number of arguments.

Definition at line 91 of file SelectionVariable.h.


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