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

Member Function Documentation

◆ operator()()

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

Definition at line 45 of file LinTrackCache.cc.

45  {
46  if ((p1 - p2).mag() < maxRelinDistance()) {
47  return false;
48  };
49  return Comparer()(p1, p2);
50 }

References mag(), p1, and p2.

p2
double p2[4]
Definition: TauolaWrapper.h:90
p1
double p1[4]
Definition: TauolaWrapper.h:89
mag
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
Definition: Basic3DVectorLD.h:127