CMS 3D CMS Logo

CaloPoint::DistanceToVertex Class Reference

#include <FastSimulation/CaloGeometryTools/interface/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.

00079 :vertex(vert) {};

CaloPoint::DistanceToVertex::~DistanceToVertex (  )  [inline]

Definition at line 80 of file CaloPoint.h.

00080 {};


Member Function Documentation

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

Definition at line 81 of file CaloPoint.h.

References vertex.

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


Member Data Documentation

XYZPoint CaloPoint::DistanceToVertex::vertex [private]

Definition at line 86 of file CaloPoint.h.

Referenced by operator()().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:15:48 2009 for CMSSW by  doxygen 1.5.4