Belle II Software  release-05-01-25
MLHandover.h
1 /*************************************************************************
2 * BASF2 (Belle Analysis Framework 2) *
3 * Copyright(C) 2015 - Belle II Collaboration *
4 * *
5 * Author: The Belle II Collaboration *
6 * Contributors: Thomas Madlener *
7 * *
8 * This software is provided "as is" without any warranty. *
9 **************************************************************************/
10 
11 #pragma once
12 
13 #include <tracking/trackFindingVXD/filterMap/filterFramework/SelectionVariable.h>
14 #include <array>
15 
16 #define MLHANDOVER_NAME MLHandover
17 
18 namespace Belle2 {
31  template<typename PointType, size_t Ndims = 9>
32  class MLHANDOVER_NAME : public SelectionVariable<PointType, 3, std::array<double, Ndims> > {
33 
34  public:
35 
38 
45  static std::array<double, Ndims> value(const PointType& innerHit, const PointType& centerHit, const PointType& outerHit)
46  {
47  return std::array<double, Ndims> {{
48  innerHit.X(), innerHit.Y(), innerHit.Z(),
49  centerHit.X(), centerHit.Y(), centerHit.Z(),
50  outerHit.X(), outerHit.Y(), outerHit.Z()
51  }
52  };
53  }
54  };
56 }
Belle2::MLHANDOVER_NAME::PUT_NAME_FUNCTION
PUT_NAME_FUNCTION(MLHANDOVER_NAME)
is replaced by "static const std:string name(void)" frunction which returns name of the Class
Belle2::MLHANDOVER_NAME::value
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.
Definition: MLHandover.h:45
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::SelectionVariable
Base class of the selection variable objects used for pair filtering.
Definition: SelectionVariable.h:54
Belle2::MLHANDOVER_NAME
SelectionVariable that is used for the Machine Learning (ML) based filters.
Definition: MLHandover.h:32