CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions
geomsort::ExtractAbsZ< T, Scalar > Class Template Reference

#include <GeometricSorting.h>

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::ExtractAbsZ< T, Scalar >

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

Use:

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

Author
N. Amapane - CERN

Definition at line 86 of file GeometricSorting.h.

Member Typedef Documentation

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

Definition at line 87 of file GeometricSorting.h.

Member Function Documentation

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

Definition at line 88 of file GeometricSorting.h.

88 {return fabs(p->position().z());}
template<class T , class Scalar = typename T::Scalar>
Scalar geomsort::ExtractAbsZ< T, Scalar >::operator() ( const T p) const
inline

Definition at line 89 of file GeometricSorting.h.

89 {return fabs(p.position().z());}