#include <TiledEtaPhiMap.h>
|
static constexpr double | DR2 (double eta1, double phi1, double eta2, double phi2) |
|
Definition at line 31 of file TiledEtaPhiMap.h.
◆ DR2()
static constexpr double JetTiledMap::utils::DR2 |
( |
double |
eta1, |
|
|
double |
phi1, |
|
|
double |
eta2, |
|
|
double |
phi2 |
|
) |
| |
|
inlinestaticconstexpr |
Definition at line 32 of file TiledEtaPhiMap.h.
34 constexpr
double pi =
M_PI;
35 constexpr
double twopi = 2.0*
pi;
36 double dphi = phi1 - phi2;
37 while ( dphi >
pi ) dphi -=
twopi;
38 while ( dphi <= -
pi ) dphi +=
twopi;
39 return dphi*dphi + deta*deta;
The documentation for this struct was generated from the following file: