CMS 3D CMS Logo

Trajectory::LessMag Struct Reference

used to determine closest measurement to given point More...

List of all members.

Public Member Functions

 LessMag (GlobalPoint point)
bool operator() (const TrajectoryMeasurement &lhs, const TrajectoryMeasurement &rhs) const

Public Attributes

GlobalPoint thePoint


Detailed Description

used to determine closest measurement to given point

Definition at line 213 of file Trajectory.h.


Constructor & Destructor Documentation

Trajectory::LessMag::LessMag ( GlobalPoint  point  )  [inline]

Definition at line 214 of file Trajectory.h.

00214 : thePoint(point) {}


Member Function Documentation

bool Trajectory::LessMag::operator() ( const TrajectoryMeasurement lhs,
const TrajectoryMeasurement rhs 
) const [inline]

Definition at line 215 of file Trajectory.h.

References TrajectoryStateOnSurface::globalPosition(), muonGeometry::mag(), thePoint, and TrajectoryMeasurement::updatedState().

00216                                                            { 
00217             return (lhs.updatedState().globalPosition() - thePoint).mag() < (rhs.updatedState().globalPosition() -thePoint).mag();
00218       }


Member Data Documentation

GlobalPoint Trajectory::LessMag::thePoint

Definition at line 219 of file Trajectory.h.

Referenced by operator()().


The documentation for this struct was generated from the following file:
Generated on Tue Jun 9 18:34:19 2009 for CMSSW by  doxygen 1.5.4