ATLAS Offline Software
Static Public Member Functions | List of all members
JetTiledMap::utils Struct Reference

#include <TiledEtaPhiMap.h>

Collaboration diagram for JetTiledMap::utils:

Static Public Member Functions

static constexpr double DR2 (double eta1, double phi1, double eta2, double phi2)
 

Detailed Description

Definition at line 31 of file TiledEtaPhiMap.h.

Member Function Documentation

◆ DR2()

static constexpr double JetTiledMap::utils::DR2 ( double  eta1,
double  phi1,
double  eta2,
double  phi2 
)
inlinestaticconstexpr

Definition at line 32 of file TiledEtaPhiMap.h.

32  {
33  double deta = eta1 - eta2;
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;
40  }

The documentation for this struct was generated from the following file:
ParticleGun_SamplingFraction.eta2
eta2
Definition: ParticleGun_SamplingFraction.py:96
M_PI
#define M_PI
Definition: ActiveFraction.h:11
xAOD::eta1
setEt setPhi setE277 setWeta2 eta1
Definition: TrigEMCluster_v1.cxx:41
pi
#define pi
Definition: TileMuonFitter.cxx:65
twopi
constexpr double twopi
Definition: VertexPointEstimator.cxx:16