11 #include <tracking/trackFindingVXD/filterMap/filterFramework/SelectionVariable.h>
14 #define COSDIRECTIONXY_NAME CosDirectionXY
24 template <
typename Po
intType >
31 static double value(
const PointType& outerHit,
const PointType& innerHit)
33 double result = (outerHit.X() * innerHit.X() + outerHit.Y() * innerHit.Y());
34 result /=
sqrt(outerHit.X() * outerHit.X() + outerHit.Y() * outerHit.Y());
35 result /=
sqrt(innerHit.X() * innerHit.X() + innerHit.Y() * innerHit.Y());
This is a specialization returning floats, where value calculates the cos of the angle of the segment...
static double value(const PointType &outerHit, const PointType &innerHit)
calculates the distance between the hits in z (1D), returning unit: cm
PUT_NAME_FUNCTION(COSDIRECTIONXY_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.
double sqrt(double a)
sqrt for double
Abstract base class for different kinds of events.