Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

TrackFunctor::closestToZ< T > Class Template Reference

#include <TrackFunctor.h>

List of all members.

Public Member Functions

 closestToZ (double z0=0.)
const T * operator() (const T *t1, const T *t2) const

Private Attributes

double m_z0

template<class T>
class TrackFunctor::closestToZ< T >


Constructor & Destructor Documentation

template<class T>
TrackFunctor::closestToZ< T >::closestToZ double  z0 = 0.  )  [inline, explicit]
 

Definition at line 65 of file TrackFunctor.h.

References TrackFunctor::closestToZ< T >::m_z0.

00065 :m_z0(z0) {}


Member Function Documentation

template<class T>
const T* TrackFunctor::closestToZ< T >::operator() const T *  t1,
const T *  t2
const [inline]
 

Definition at line 66 of file TrackFunctor.h.

References TrackFunctor::closestToZ< T >::m_z0.

00068     {
00069       return (fabs(t1->z()-m_z0) < fabs(t2->z()-m_z0))? t1:t2;
00070     }


Member Data Documentation

template<class T>
double TrackFunctor::closestToZ< T >::m_z0 [private]
 

Definition at line 63 of file TrackFunctor.h.

Referenced by TrackFunctor::closestToZ< T >::closestToZ(), and TrackFunctor::closestToZ< T >::operator()().


The documentation for this class was generated from the following file:
Generated on Fri May 27 13:59:50 2005 for New Track Event Model by doxygen 1.4.1