11 #include <tracking/trackFindingVXD/filterMap/filterFramework/SelectionVariable.h>
14 #define SLOPERZ_NAME SlopeRZ
26 template <
typename Po
intType >
34 static double value(
const PointType& outerHit,
const PointType& innerHit)
37 sqrt(std::pow(
double(outerHit.X() - innerHit.X()), 2)
38 + std::pow(
double(outerHit.Y() - innerHit.Y()), 2)
39 ) /
double(outerHit.Z() - innerHit.Z())
42 if (result < 0.0) result += M_PI;
45 return (std::isnan(result) || std::isinf(result)) ? double(0) : result;
This is the specialization for SpacePoints with returning floats, where value calculates the slope in...
static double value(const PointType &outerHit, const PointType &innerHit)
value calculates the slope in R-Z for a given pair of hits.
PUT_NAME_FUNCTION(SLOPERZ_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.