13 #include <tracking/trackFindingVXD/filterMap/filterFramework/SelectionVariable.h>
14 #include <framework/geometry/B2Vector3.h>
18 #define SIGNCURVATUREXYERROR_NAME SignCurvatureXYError
29 template <
typename Po
intType >
40 static int value(
const PointType& a,
const PointType& b,
const PointType& c)
49 double angle = atan2(b2a[0], b2a[1]) - atan2(c2b[0], c2b[1]);
51 double sigmaan = (sigma_a.
Mag() + sigma_b.
Mag() + sigma_c.
Mag()) / (3.*(c2b.
Mag() + b2a.
Mag()));
52 if (angle < (-sigmaan)) {
return -1; }
53 else if (angle > sigmaan) {
return 1; }