CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
MuonShowerInformationFiller::LessMag Struct Reference

Public Member Functions

 LessMag (const GlobalPoint &point)
 
bool operator() (const GlobalPoint &lhs, const GlobalPoint &rhs) const
 
bool operator() (const MuonTransientTrackingRecHit::MuonRecHitPointer &lhs, const MuonTransientTrackingRecHit::MuonRecHitPointer &rhs) const
 

Public Attributes

GlobalPoint thePoint
 

Detailed Description

Definition at line 110 of file MuonShowerInformationFiller.h.

Constructor & Destructor Documentation

MuonShowerInformationFiller::LessMag::LessMag ( const GlobalPoint point)
inline

Definition at line 111 of file MuonShowerInformationFiller.h.

Member Function Documentation

bool MuonShowerInformationFiller::LessMag::operator() ( const GlobalPoint lhs,
const GlobalPoint rhs 
) const
inline

Definition at line 112 of file MuonShowerInformationFiller.h.

References mag().

113  {
114  return (lhs - thePoint).mag() < (rhs -thePoint).mag();
115  }
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
bool MuonShowerInformationFiller::LessMag::operator() ( const MuonTransientTrackingRecHit::MuonRecHitPointer lhs,
const MuonTransientTrackingRecHit::MuonRecHitPointer rhs 
) const
inline

Definition at line 116 of file MuonShowerInformationFiller.h.

References mag().

117  {
118  return (lhs->globalPosition() - thePoint).mag() < (rhs->globalPosition() -thePoint).mag();
119  }
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())

Member Data Documentation

GlobalPoint MuonShowerInformationFiller::LessMag::thePoint

Definition at line 120 of file MuonShowerInformationFiller.h.