Belle II Software  release-08-01-10
Pt.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 
9 #pragma once
10 
11 #include <tracking/trackFindingVXD/filterMap/filterFramework/SelectionVariable.h>
12 #include <tracking/trackFindingVXD/filterMap/threeHitVariables/CircleCenterXY.h>
13 #include <tracking/trackFindingVXD/filterMap/threeHitVariables/CircleRadius.h>
14 #include <tracking/trackFindingVXD/filterTools/SelectionVariableHelper.h>
15 #include <framework/geometry/B2Vector3.h>
16 
17 #define PT_NAME Pt
18 
19 namespace Belle2 {
29  template <typename PointType >
30  class PT_NAME : public SelectionVariable< PointType, 3, double > {
31  public:
34 
36  static double value(const PointType& outerHit, const PointType& centerHit, const PointType& innerHit)
37  {
38  typedef SelVarHelper<PointType, double> Helper;
39 
40  B2Vector3D circleCenter = CircleCenterXY<PointType>::value(outerHit, centerHit, innerHit);
41  double circleRadius = CircleRadius<PointType>::calcAvgDistanceXY(outerHit, centerHit, innerHit, circleCenter);
42 
43  return circleRadius * Helper::s_MagneticFieldFactor;
44  } // return unit: GeV/c
45  };
46 
48 }
calculates the estimation of the transverse momentum of the 3-hit-tracklet, returning unit: GeV/c.
Definition: Pt.h:30
PUT_NAME_FUNCTION(PT_NAME)
is replaced by "static const std:string name(void)" frunction which returns name of the Class
static double value(const PointType &outerHit, const PointType &centerHit, const PointType &innerHit)
calculates the estimation of the transverse momentum of the 3-hit-tracklet, returning unit: GeV/c
Definition: Pt.h:36
Base class of the selection variable objects used for pair filtering.
Abstract base class for different kinds of events.
contains a collection of functions and related stuff needed for SelectionVariables implementing 2-,...