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 128 of file MuonShowerInformationFiller.h.

Constructor & Destructor Documentation

◆ LessMag()

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

Definition at line 129 of file MuonShowerInformationFiller.h.

129 : thePoint(point) {}
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5

Member Function Documentation

◆ operator()() [1/2]

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

Definition at line 130 of file MuonShowerInformationFiller.h.

References mag(), and thePoint.

130  {
131  return (lhs - thePoint).mag() < (rhs - thePoint).mag();
132  }
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())

◆ operator()() [2/2]

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

Definition at line 133 of file MuonShowerInformationFiller.h.

References mag(), and thePoint.

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

Member Data Documentation

◆ thePoint

GlobalPoint MuonShowerInformationFiller::LessMag::thePoint

Definition at line 137 of file MuonShowerInformationFiller.h.

Referenced by operator()().