|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef DISTANCE_FUNCTOR_H
6 #define DISTANCE_FUNCTOR_H
10 template <
typename T,
typename U>
29 template <
typename T,
typename U>
41 float phiDiff =
t->phi() -
u->phi();
42 while(phiDiff < -
M_PI) phiDiff += 2. *
M_PI;
43 while(phiDiff >=
M_PI) phiDiff -= 2. *
M_PI;
44 float etaDiff =
t->eta() -
u->eta();
45 return sqrt(phiDiff * phiDiff + etaDiff * etaDiff);
virtual float calculateDistance(const T *t, const U *u) const =0
@ u
Enums for curvilinear frames.
virtual float calculateDistance(const T *t, const U *u) const
static float deltaR(const T *t, const U *u)
virtual ~DistanceFunctor()
float operator()(const T *t, const U *u) const
float distance(const T *t, const U *u) const
virtual ~DeltaRDistanceFunctor()