00001
00009 #ifndef CALOGEOHELPER_CALOPHIRANGE_H
00010 #define CALOGEOHELPER_CALOPHIRANGE_H
00011
00012 #include <cmath>
00013
00025 class CaloPhiRange
00026 {
00027 public:
00028 static double twopi ();
00029 static double phi_min ();
00030 static double phi_max ();
00031
00032 static double fix ( double phi );
00033
00036 static double diff ( double phi1, double phi2 );
00037
00038 static void print();
00039
00040 private:
00041
00042
00043 #if 0
00044
00045 static CONSTEXPR double m_phi_min = -M_PI;
00046 static CONSTEXPR double m_twopi = 2*M_PI;
00047 static CONSTEXPR double m_phi_max = M_PI;
00048 #endif
00049 static const double m_phi_min;
00050 static const double m_twopi;
00051 static const double m_phi_max;
00052 };
00053
00054 inline double CaloPhiRange::twopi()
00055 { return m_twopi;}
00056
00057 inline double CaloPhiRange::phi_min()
00058 { return m_phi_min;}
00059
00060 inline double CaloPhiRange::phi_max()
00061 { return m_phi_max;}
00062
00063 #endif // CALODETDESCR_CALOPHIRANGE_H