CMS 3D CMS Logo

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

Public Member Functions

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

Detailed Description

Definition at line 16 of file LinTrackCache.h.

Member Function Documentation

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

Definition at line 45 of file LinTrackCache.cc.

References mag(), fireworks::p1, and fireworks::p2.

45  {
46  if ((p1 - p2).mag() < maxRelinDistance()) {
47  return false;
48  };
49  return Comparer()(p1, p2);
50 }
const TString p2
Definition: fwPaths.cc:13
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
const TString p1
Definition: fwPaths.cc:12