CMS 3D CMS Logo

Public Member Functions | Public Attributes

MuonShowerInformationFiller::LessMag Struct Reference

List of all members.

Public Member Functions

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

Public Attributes

GlobalPoint thePoint

Detailed Description

Definition at line 111 of file MuonShowerInformationFiller.h.


Constructor & Destructor Documentation

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

Definition at line 112 of file MuonShowerInformationFiller.h.

: thePoint(point) {}

Member Function Documentation

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

Definition at line 113 of file MuonShowerInformationFiller.h.

References mag(), and thePoint.

                                                    { 
            return (lhs - thePoint).mag() < (rhs -thePoint).mag();
        }
bool MuonShowerInformationFiller::LessMag::operator() ( const MuonTransientTrackingRecHit::MuonRecHitPointer lhs,
const MuonTransientTrackingRecHit::MuonRecHitPointer rhs 
) const [inline]

Definition at line 117 of file MuonShowerInformationFiller.h.

References mag(), and thePoint.

                                                                                     {
           return (lhs->globalPosition() - thePoint).mag() < (rhs->globalPosition() -thePoint).mag();
        }

Member Data Documentation

Definition at line 121 of file MuonShowerInformationFiller.h.

Referenced by operator()().