1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
#ifndef DetSorting_h
#define DetSorting_h
#include <DataFormats/GeometrySurface/interface/GeometricSorting.h>
#include "Geometry/CommonTopologies/interface/GeomDet.h"
namespace geomsort {
/** \typedef DetR
*
* functor to sort in R using precomputed_value_sort.
*
* Use:
*
* precomputed_value_sort(v.begin(), v.end(), DetR());
*
* \author N. Amapane - CERN
*/
typedef ExtractR<GeomDet, float> DetR;
/** \typedef DetPhi
*
* functor to sort in phi (from -pi to pi) using precomputed_value_sort.
*
* Note that sorting in phi is done within the phi range of
* (-pi, pi]. It may NOT be what you expect if the elements cluster around
* the pi discontinuity.
*
* Use:
*
* precomputed_value_sort(v.begin(), v.end(), DetPhi());
*
* \author N. Amapane - CERN
*/
typedef ExtractPhi<GeomDet, float> DetPhi;
/** \typedef DetZ
*
* functor to sort in Z using precomputed_value_sort.
*
* Use:
*
* precomputed_value_sort(v.begin(), v.end(), DetZ());
*
* \author N. Amapane - CERN
*/
typedef ExtractZ<GeomDet, float> DetZ;
} // namespace geomsort
#endif
|