/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Geometry/CommonTopologies/interface/DetSorting.h
53 строки
1 KB
Shahzad Malik Muzaffar
updated to use Det files from new location
29 ноя 2019, 10:13
29 ноя 2019, 10:13
ab0d821
Код
Авторство
О чём код?
#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