11#include <tracking/trackFindingVXD/filterMap/filterFramework/SelectionVariable.h>
12#include <framework/geometry/B2Vector3.h>
16#define SIGNCURVATUREXYERROR_NAME SignCurvatureXYError
27 template <
typename Po
intType >
38 static int value(
const PointType& a,
const PointType& b,
const PointType& c)
44 B2Vector3D c2b(b.X() - c.X(), b.Y() - c.Y(), 0.0);
45 B2Vector3D b2a(a.X() - b.X(), a.Y() - b.Y(), 0.0);
47 double angle = atan2(b2a[0], b2a[1]) - atan2(c2b[0], c2b[1]);
49 double sigmaan = (sigma_a.
Mag() + sigma_b.
Mag() + sigma_c.
Mag()) / (3.*(c2b.
Mag() + b2a.
Mag()));
50 if (angle < (-sigmaan)) {
return -1; }
51 else if (angle > sigmaan) {
return 1; }
DataType Mag() const
The magnitude (rho in spherical coordinate system).
calculates the sign of the curvature for three hits
static int value(const PointType &a, const PointType &b, const PointType &c)
calculates calculates the sign of the curvature of given 3-hit-tracklet.
PUT_NAME_FUNCTION(SIGNCURVATUREXYERROR_NAME)
is replaced by "static const std:string name(void)" frunction which returns name of the Class
Base class of the selection variable objects used for pair filtering.
Abstract base class for different kinds of events.