Belle II Software development
DeltaDistCircleCenter.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 <framework/geometry/B2Vector3.h>
14#include <math.h>
15
16#define DELTADISTCIRCLECENTER_NAME DeltaDistCircleCenter
17
18namespace Belle2 {
23
26 template <typename PointType >
27 class DELTADISTCIRCLECENTER_NAME : public SelectionVariable< PointType, 4, double > {
28 public:
31
32
33
35 static double value(const PointType& outerHit, const PointType& outerCenterHit, const PointType& innerCenterHit,
36 const PointType& innerHit)
37 {
38
39 B2Vector3D outerCircleCenter = CircleCenterXY<PointType>::value(outerHit, outerCenterHit, innerCenterHit);
40
41 B2Vector3D innerCircleCenter = CircleCenterXY<PointType>::value(outerCenterHit, innerCenterHit, innerHit);
42
43 return fabs(outerCircleCenter.Perp() - innerCircleCenter.Perp());
44 } // return unit: GeV/c
45 };
46
48}
49//
DataType Perp() const
The transverse component (R in cylindrical coordinate system).
Definition B2Vector3.h:200
calculates the distance between the estimated circle centers (using 2 subsets of given hits) in the x...
PUT_NAME_FUNCTION(DELTADISTCIRCLECENTER_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 &outerCenterHit, const PointType &innerCenterHit, const PointType &innerHit)
calculates the distance between the estimated circle centers (using 2 subsets of given hits) in the x...
B2Vector3< double > B2Vector3D
typedef for common usage with double
Definition B2Vector3.h:516
B2Vector3D outerHit(0, 0, 0)
testing out of range behavior
Abstract base class for different kinds of events.