Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:07:51

0001 #ifndef DetSorting_h
0002 #define DetSorting_h
0003 
0004 #include <DataFormats/GeometrySurface/interface/GeometricSorting.h>
0005 #include "Geometry/CommonTopologies/interface/GeomDet.h"
0006 
0007 namespace geomsort {
0008 
0009   /** \typedef DetR
0010  *
0011  *  functor to sort in R using precomputed_value_sort.
0012  *  
0013  *  Use: 
0014  *
0015  *  precomputed_value_sort(v.begin(), v.end(), DetR());
0016  *
0017  *  \author N. Amapane - CERN
0018  */
0019 
0020   typedef ExtractR<GeomDet, float> DetR;
0021 
0022   /** \typedef DetPhi
0023  *
0024  *  functor to sort in phi (from -pi to pi) using precomputed_value_sort.
0025  *
0026  *  Note that sorting in phi is done within the phi range of 
0027  *  (-pi, pi]. It may NOT be what you expect if the elements cluster around
0028  *  the pi discontinuity.
0029  *  
0030  *  Use: 
0031  *
0032  *  precomputed_value_sort(v.begin(), v.end(), DetPhi());
0033  *
0034  *  \author N. Amapane - CERN
0035  */
0036 
0037   typedef ExtractPhi<GeomDet, float> DetPhi;
0038 
0039   /** \typedef DetZ
0040  *
0041  *  functor to sort in Z using precomputed_value_sort.
0042  *  
0043  *  Use: 
0044  *
0045  *  precomputed_value_sort(v.begin(), v.end(), DetZ());
0046  *
0047  *  \author N. Amapane - CERN
0048  */
0049 
0050   typedef ExtractZ<GeomDet, float> DetZ;
0051 
0052 }  // namespace geomsort
0053 #endif