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.

References mag(), LaserDQM_cfg::p1, and SiStripOfflineCRack_cfg::p2.

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