1 #ifndef DataFormats_Math_deltaPhi_h 2 #define DataFormats_Math_deltaPhi_h 18 T n = std::round(x*o2pi);
19 return x - n*
T(2.*
M_PI);
27 return deltaPhi(static_cast<double>(phi1), phi2);
31 return deltaPhi(phi1, static_cast<double>(phi2));
40 template<
typename T1,
typename T2>
54 template<
typename T1,
typename T2 = T1>
constexpr double deltaPhi(double phi1, double phi2)
constexpr T reduceRange(T x)
Abs< T >::type abs(const T &t)
constexpr auto operator()(const T1 &t1, const T2 &t2) -> decltype(reco::deltaPhi(t1, t2)) const