#include <TrackingTools/DetLayers/src/DetLessZ.h>
Public Member Functions | |
bool | operator() (const Det *a, const Det *b) const |
Definition at line 11 of file DetLessZ.h.
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 }