Belle II Software development
DeltaPt.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 DELTAPT_NAME DeltaPt
18
19namespace Belle2 {
27 template <typename PointType >
28 class DELTAPT_NAME : public SelectionVariable< PointType, 4, double > {
29 public:
32
33
35 static double value(const PointType& outerHit, const PointType& outerCenterHit, const PointType& innerCenterHit,
36 const PointType& innerHit)
37 {
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
52 };
53
55}
calculates dpt-value (dpt= difference in transverse momentum of 2 subsets of the hits),...
Definition: DeltaPt.h:28
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),...
Definition: DeltaPt.h:35
PUT_NAME_FUNCTION(DELTAPT_NAME)
is replaced by "static const std:string name(void)" frunction which returns name of the Class
Base class of the selection variable objects used for pair filtering.
B2Vector3D outerHit(0, 0, 0)
testing out of range behavior
Abstract base class for different kinds of events.
contains a collection of functions and related stuff needed for SelectionVariables implementing 2-,...