 |
Belle II Software
release-05-01-25
|
13 #include <tracking/trackFindingVXD/filterMap/filterFramework/SelectionVariable.h>
14 #include <framework/geometry/B2Vector3.h>
17 #define COSANGLEXY_NAME CosAngleXY
30 template <
typename Po
intType >
39 static double value(
const PointType& outerHit,
const PointType& centerHit,
const PointType& innerHit)
42 B2Vector3<double> outerVector(outerHit.X() - centerHit.X(), outerHit.Y() - centerHit.Y(), 0.);
43 B2Vector3<double> innerVector(centerHit.X() - innerHit.X(), centerHit.Y() - innerHit.Y(), 0.);
45 double result = (outerVector.
X() * innerVector.
X() + outerVector.
Y() * innerVector.
Y()) / (outerVector.
Perp() *
48 return (std::isnan(result) || std::isinf(result)) ?
double(0) : result;
DataType Perp() const
The transverse component (R in cylindrical coordinate system).
PUT_NAME_FUNCTION(COSANGLEXY_NAME)
is replaced by "static const std:string name(void)" frunction which returns name of the Class
Abstract base class for different kinds of events.
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.
DataType X() const
access variable X (= .at(0) without boundary check)
calculates the angle between the hits/vectors (XY), returning unit: none (calculation for degrees is ...
DataType Y() const
access variable Y (= .at(1) without boundary check)