11 #include <tracking/trackFindingVXD/filterMap/filterFramework/SelectionVariable.h>
12 #include <framework/geometry/B2Vector3.h>
15 #define COSANGLEXY_NAME CosAngleXY
28 template <
typename Po
intType >
37 static double value(
const PointType& outerHit,
const PointType& centerHit,
const PointType& innerHit)
40 B2Vector3<double> outerVector(outerHit.X() - centerHit.X(), outerHit.Y() - centerHit.Y(), 0.);
41 B2Vector3<double> innerVector(centerHit.X() - innerHit.X(), centerHit.Y() - innerHit.Y(), 0.);
43 double result = (outerVector.
X() * innerVector.
X() + outerVector.
Y() * innerVector.
Y()) / (outerVector.
Perp() *
46 return (std::isnan(result) || std::isinf(result)) ?
double(0) : result;
DataType X() const
access variable X (= .at(0) without boundary check)
DataType Y() const
access variable Y (= .at(1) without boundary check)
DataType Perp() const
The transverse component (R in cylindrical coordinate system).
calculates the angle between the hits/vectors (XY), returning unit: none (calculation for degrees is ...
PUT_NAME_FUNCTION(COSANGLEXY_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 angle between the hits/vectors (XY), returning unit: none (calculation for degrees is ...
Base class of the selection variable objects used for pair filtering.
Abstract base class for different kinds of events.