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)
41 B2Vector3D 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 ...
B2Vector3< double > B2Vector3D
typedef for common usage with double
B2Vector3D outerHit(0, 0, 0)
testing out of range behavior
Abstract base class for different kinds of events.