Public Member Functions | |
bool | operator() (const GlobalPoint &, const GlobalPoint &) |
Definition at line 13 of file LinTrackCache.h.
bool LinTrackCache::Comparer::operator() | ( | const GlobalPoint & | left, | |
const GlobalPoint & | right | |||
) |
Definition at line 42 of file LinTrackCache.cc.
References PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
00043 { 00044 // if theyre closer than 1 micron, they're 00045 // indistinguishable, i.e. the same 00046 // static const double max = 1e-4 * 1e-4; 00047 // if ( ( left - right ).mag2() < max ) return false; 00048 00049 if ( left.x() != right.x() ) 00050 { 00051 return ( left.x() < right.x() ); 00052 } else if (left.y() != right.y()) { 00053 return ( left.y() < right.y() ); 00054 } else { 00055 return ( left.z() < right.z() ); 00056 } 00057 }