1 #ifndef GeometryVector_Geom_Util_h
2 #define GeometryVector_Geom_Util_h
7 #include "Math/VectorUtil.h"
22 double dphi = phi2-phi1;
25 }
else if ( dphi <= -
M_PI ) {
30 inline double deltaPhi(
float phi1,
float phi2) {
34 inline double deltaPhi(
double phi1,
double phi2) {
38 template <
class Vector1,
class Vector2>
39 double deltaPhi(
const Vector1 & v1,
const Vector2 & v2) {
57 inline bool phiLess(
float phi1,
float phi2) {
60 inline bool phiLess(
double phi1,
double phi2) {
63 template <
class Vector1,
class Vector2>
64 bool phiLess(
const Vector1 & v1,
const Vector2 & v2) {
77 template <
class Vector1,
class Vector2>
78 double deltaR2(
const Vector1 & v1,
const Vector2 & v2) {
80 double deta = v2.eta() - v1.eta();
81 return dphi*dphi + deta*deta;
83 template <
class Vector1,
class Vector2>
84 double deltaR(
const Vector1 & v1,
const Vector2 & v2) {
double deltaPhi(float phi1, float phi2)
double deltaBarePhi(double phi1, double phi2)
double Phi_mpi_pi(double x)
double deltaR2(const Vector1 &v1, const Vector2 &v2)
bool phiLess(float phi1, float phi2)
double deltaR(const Vector1 &v1, const Vector2 &v2)