CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
MuonShowerInformationFiller::AbsLessDPhi Struct Reference

Public Member Functions

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

Public Attributes

GlobalPoint thePoint
 

Detailed Description

Definition at line 133 of file MuonShowerInformationFiller.h.

Constructor & Destructor Documentation

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

Definition at line 134 of file MuonShowerInformationFiller.h.

Member Function Documentation

bool MuonShowerInformationFiller::AbsLessDPhi::operator() ( const MuonTransientTrackingRecHit::MuonRecHitPointer lhs,
const MuonTransientTrackingRecHit::MuonRecHitPointer rhs 
) const
inline

Definition at line 135 of file MuonShowerInformationFiller.h.

References SiPixelRawToDigiRegional_cfi::deltaPhi, PV3DBase< T, PVType, FrameType >::phi(), and thePoint.

136  {
137  return ( fabs(deltaPhi(lhs->globalPosition().phi(), thePoint.phi())) < fabs(deltaPhi(rhs->globalPosition().phi(), thePoint.phi())) );
138  }
Geom::Phi< T > phi() const
Definition: PV3DBase.h:68

Member Data Documentation

GlobalPoint MuonShowerInformationFiller::AbsLessDPhi::thePoint

Definition at line 139 of file MuonShowerInformationFiller.h.

Referenced by operator()().