CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
LinTrackCache::Vicinity Struct Reference

Public Member Functions

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

Detailed Description

Definition at line 18 of file LinTrackCache.h.

Member Function Documentation

bool LinTrackCache::Vicinity::operator() ( const GlobalPoint p1,
const GlobalPoint p2 
)

Definition at line 52 of file LinTrackCache.cc.

References mag(), p1, and p2.

54 {
55  if ( (p1 - p2).mag() < maxRelinDistance() )
56  {
57  return false;
58  };
59  return Comparer()(p1,p2);
60 }
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
double p2[4]
Definition: TauolaWrapper.h:90
double p1[4]
Definition: TauolaWrapper.h:89