11#include <tracking/trackFindingVXD/filterMap/filterFramework/SelectionVariable.h>
12#include <tracking/trackFindingVXD/filterMap/twoHitVariables/CosDirectionXY.h>
13#include <framework/geometry/B2Vector3.h>
16#define ANGLEXYFULL_NAME AngleXYFull
28 template <
typename Po
intType >
35 static double value(
const PointType&
outerHit,
const PointType& centerHit,
const PointType& innerHit)
39 B2Vector3D innerVector(centerHit.X() - innerHit.X(), centerHit.Y() - innerHit.Y(), centerHit.Z() - innerHit.Z());
41 double result = acos(CosDirectionXY<B2Vector3D>::value(outerVector, innerVector));
42 result *= double(180. / M_PI);
43 return (std::isnan(result) || std::isinf(result)) ? double(0) : result;
35 static double value(
const PointType&
outerHit,
const PointType& centerHit,
const PointType& innerHit) {
…}
calculates the angle between the hits/vectors (XY), returning unit: angle in degrees.
PUT_NAME_FUNCTION(ANGLEXYFULL_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: angle in degrees
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.