CMS 3D CMS Logo

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 18 of file LinTrackCache.h.

Member Function Documentation

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

Definition at line 53 of file LinTrackCache.cc.

References mag(), p1, and p2.

55 {
56  if ( (p1 - p2).mag() < maxRelinDistance() )
57  {
58  return false;
59  };
60  return Comparer()(p1,p2);
61 }
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