Belle II Software  release-05-02-19
Pt.h
1 /**************************************************************************
2 * BASF2 (Belle Analysis Framework 2) *
3 * Copyright(C) 2014 - Belle II Collaboration *
4 * *
5 * Author: The Belle II Collaboration *
6 * Contributors: Jakob Lettenbichler (jakob.lettenbichler@oeaw.ac.at) *
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 <tracking/trackFindingVXD/filterMap/threeHitVariables/CircleCenterXY.h>
15 #include <tracking/trackFindingVXD/filterMap/threeHitVariables/CircleRadius.h>
16 #include <tracking/trackFindingVXD/filterTools/SelectionVariableHelper.h>
17 #include <framework/geometry/B2Vector3.h>
18 
19 #define PT_NAME Pt
20 
21 namespace Belle2 {
31  template <typename PointType >
32  class PT_NAME : public SelectionVariable< PointType , 3, double > {
33  public:
36 
38  static double value(const PointType& outerHit, const PointType& centerHit, const PointType& innerHit)
39  {
40  typedef SelVarHelper<PointType, double> Helper;
41 
42  B2Vector3D circleCenter = CircleCenterXY<PointType>::value(outerHit, centerHit, innerHit);
43  double circleRadius = CircleRadius<PointType>::calcAvgDistanceXY(outerHit, centerHit, innerHit, circleCenter);
44 
45  return circleRadius * Helper::s_MagneticFieldFactor;
46  } // return unit: GeV/c
47  };
48 
50 }
Belle2::SelVarHelper
contains a collection of functions and related stuff needed for SelectionVariables implementing 2-,...
Definition: SelectionVariableHelper.h:31
Belle2::PT_NAME::value
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:38
Belle2::B2Vector3< double >
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::PT_NAME
calculates the estimation of the transverse momentum of the 3-hit-tracklet, returning unit: GeV/c.
Definition: Pt.h:32
Belle2::PT_NAME::PUT_NAME_FUNCTION
PUT_NAME_FUNCTION(PT_NAME)
is replaced by "static const std:string name(void)" frunction which returns name of the Class