CMS 3D CMS Logo

Public Member Functions | Private Attributes

CaloPoint::DistanceToVertex Class Reference

#include <CaloPoint.h>

List of all members.

Public Member Functions

 DistanceToVertex (const XYZPoint &vert)
bool operator() (const CaloPoint &point1, const CaloPoint &point2)
 ~DistanceToVertex ()

Private Attributes

XYZPoint vertex

Detailed Description

Definition at line 76 of file CaloPoint.h.


Constructor & Destructor Documentation

CaloPoint::DistanceToVertex::DistanceToVertex ( const XYZPoint vert) [inline]

Definition at line 79 of file CaloPoint.h.

:vertex(vert) {};
CaloPoint::DistanceToVertex::~DistanceToVertex ( ) [inline]

Definition at line 80 of file CaloPoint.h.

{};

Member Function Documentation

bool CaloPoint::DistanceToVertex::operator() ( const CaloPoint &  point1,
const CaloPoint &  point2 
) [inline]

Definition at line 81 of file CaloPoint.h.

References mag2(), and vertex.

        {
          return ((point1-vertex).mag2()<(point2-vertex).mag2());
        }

Member Data Documentation

Definition at line 86 of file CaloPoint.h.

Referenced by operator()().