CMS 3D CMS Logo

LinTrackCache::Comparer Struct Reference

List of all members.

Public Member Functions

bool operator() (const GlobalPoint &, const GlobalPoint &)


Detailed Description

Definition at line 13 of file LinTrackCache.h.


Member Function Documentation

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 }


The documentation for this struct was generated from the following files:
Generated on Tue Jun 9 18:27:45 2009 for CMSSW by  doxygen 1.5.4