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 <framework/geometry/B2Vector3.h>
17 #define CIRCLEDIST2IP_NAME CircleDist2IP
29 template <
typename Po
intType >
37 static double value(
const PointType& outerHit,
const PointType& centerHit,
const PointType& innerHit)
40 B2Vector3D cCenter = CircleCenterXY<PointType>::value(outerHit, centerHit, innerHit);
41 double circleRadius = CircleRadius<PointType>::calcAvgDistanceXY(outerHit, centerHit, innerHit, cCenter);
45 return (fabs(cCenter.
Perp() - circleRadius));
DataType Perp() const
The transverse component (R in cylindrical coordinate system).
calculates the distance of the point of closest approach of circle to the IP, returning unit: cm
PUT_NAME_FUNCTION(CIRCLEDIST2IP_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 ¢erHit, const PointType &innerHit)
calculates the distance of the point of closest approach of circle to the IP, returning unit: cm
Base class of the selection variable objects used for pair filtering.
Abstract base class for different kinds of events.