CMS 3D CMS Logo

DetLessZ Class Reference

#include <TrackingTools/DetLayers/src/DetLessZ.h>

List of all members.

Public Member Functions

bool operator() (const Det *a, const Det *b) const


Detailed Description

Definition at line 11 of file DetLessZ.h.


Member Function Documentation

bool DetLessZ::operator() ( const Det a,
const Det b 
) const [inline]

Definition at line 13 of file DetLessZ.h.

References GeometricSearchDet::position(), and PV3DBase< T, PVType, FrameType >::z().

00013                                                      {
00014 
00015     // multiply by 1+epsilon to make it numericaly stable
00016     // the epsilon should depend on the scalar precision,
00017     // this is just a quick fix!
00018     if (a->position().z() > 0) {
00019       return a->position().z()*1.000001 < b->position().z();
00020     }
00021     else if (b->position().z() < 0) {
00022       return a->position().z() < b->position().z()*1.000001;
00023     }
00024     else return true;
00025   }


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:18:24 2009 for CMSSW by  doxygen 1.5.4