11#include <tracking/trackFindingVXD/filterMap/filterFramework/SelectionVariable.h>
12#include <tracking/trackFindingVXD/filterMap/threeHitVariables/CircleCenterXY.h>
13#include <tracking/trackFindingVXD/filterMap/twoHitVariables/CosDirectionXY.h>
14#include <framework/geometry/B2Vector3.h>
17#define HELIXPARAMETERFIT_NAME HelixParameterFit
29 template <
typename Po
intType >
37 static double value(
const PointType&
outerHit,
const PointType& centerHit,
const PointType& innerHit)
43 B2Vector3D vecCenter2cC(centerHit.X() - cCenter.
X(), centerHit.Y() - cCenter.
Y(), centerHit.Z() - cCenter.
Z());
44 B2Vector3D vecInner2cC(innerHit.X() - cCenter.
X(), innerHit.Y() - cCenter.
Y(), innerHit.Z() - cCenter.
Z());
46 double alfaAB = CosDirectionXY<B2Vector3D>::value(vecOuter2cC, vecCenter2cC);
47 double alfaBC = CosDirectionXY<B2Vector3D>::value(vecCenter2cC, vecInner2cC);
50 double result = (alfaAB * double(centerHit.Z() - innerHit.Z())) / (alfaBC *
double(
outerHit.
Z() - centerHit.Z()));
52 return (std::isnan(result) || std::isinf(result)) ?
double(0) : result;
DataType Z() const
access variable Z (= .at(2) without boundary check)
DataType X() const
access variable X (= .at(0) without boundary check)
DataType Y() const
access variable Y (= .at(1) without boundary check)
calculates the helixparameter describing the deviation in z per unit angle, returning unit: none.
PUT_NAME_FUNCTION(HELIXPARAMETERFIT_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 helixparameter describing the deviation in z per unit angle, returning unit: none
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.