CMS 3D CMS Logo

Public Types | Public Member Functions

geomsort::ExtractR< T, Scalar > Class Template Reference

#include <GeometricSorting.h>

List of all members.

Public Types

typedef Scalar result_type

Public Member Functions

Scalar operator() (const T *p) const
Scalar operator() (const T &p) const

Detailed Description

template<class T, class Scalar = typename T::Scalar>
class geomsort::ExtractR< T, Scalar >

functor to sort in R using precomputed_value_sort. Can be used for any object with a member position().

Use:

precomputed_value_sort(v.begin(), v.end(), ExtractR<Surface>());

Date:
2007/01/17 20:58:43
Revision:
1.1
Author:
N. Amapane - CERN

Definition at line 24 of file GeometricSorting.h.


Member Typedef Documentation

template<class T , class Scalar = typename T::Scalar>
typedef Scalar geomsort::ExtractR< T, Scalar >::result_type

Definition at line 25 of file GeometricSorting.h.


Member Function Documentation

template<class T , class Scalar = typename T::Scalar>
Scalar geomsort::ExtractR< T, Scalar >::operator() ( const T p) const [inline]

Definition at line 26 of file GeometricSorting.h.

{return p->position().perp();}
template<class T , class Scalar = typename T::Scalar>
Scalar geomsort::ExtractR< T, Scalar >::operator() ( const T p) const [inline]

Definition at line 27 of file GeometricSorting.h.

{return p.position().perp();}