ATLAS Offline Software
Functions
KinematicUtils Namespace Reference

Functions

void EnsurePhiInMinusPiToPi (double &phi)
 
double deltaPhi (double phi1, double phi2)
 
double deltaR (double eta1, double eta2, double phi1, double phi2)
 

Function Documentation

◆ deltaPhi()

double KinematicUtils::deltaPhi ( double  phi1,
double  phi2 
)
inline

Definition at line 104 of file D3PDMaker/TileD3PDMaker/src/ITrackTools.h.

104  {
107  double dPhi=phi1-phi2;
108  if (dPhi>M_PI) dPhi=2*M_PI-dPhi;
109  else if(dPhi<-M_PI) dPhi=2*M_PI+dPhi;
110  return dPhi;
111  }

◆ deltaR()

double KinematicUtils::deltaR ( double  eta1,
double  eta2,
double  phi1,
double  phi2 
)
inline

Definition at line 114 of file D3PDMaker/TileD3PDMaker/src/ITrackTools.h.

114  {
115  double dPhi=KinematicUtils::deltaPhi(phi1,phi2);
116  double dEta=std::fabs(eta1-eta2);
117  double dR=std::sqrt(std::pow(dEta,2)+std::pow(dPhi,2));
118  return dR;
119  }

◆ EnsurePhiInMinusPiToPi()

void KinematicUtils::EnsurePhiInMinusPiToPi ( double &  phi)
inline

Definition at line 96 of file D3PDMaker/TileD3PDMaker/src/ITrackTools.h.

96  {
97  phi = fmod(phi, (2*M_PI));
98  if (phi < -M_PI) phi += 2*M_PI;
99  if (phi > M_PI) phi -= 2*M_PI;
100  return;
101  }
ParticleGun_SamplingFraction.eta2
eta2
Definition: ParticleGun_SamplingFraction.py:96
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
conifer::pow
constexpr int pow(int x)
Definition: conifer.h:20
M_PI
#define M_PI
Definition: ActiveFraction.h:11
xAOD::eta1
setEt setPhi setE277 setWeta2 eta1
Definition: TrigEMCluster_v1.cxx:41
TauGNNUtils::Variables::Track::dPhi
bool dPhi(const xAOD::TauJet &tau, const xAOD::TauTrack &track, double &out)
Definition: TauGNNUtils.cxx:538
KinematicUtils::deltaPhi
double deltaPhi(double phi1, double phi2)
Definition: D3PDMaker/TileD3PDMaker/src/ITrackTools.h:104
KinematicUtils::EnsurePhiInMinusPiToPi
void EnsurePhiInMinusPiToPi(double &phi)
Definition: D3PDMaker/TileD3PDMaker/src/ITrackTools.h:96
TauGNNUtils::Variables::Track::dEta
bool dEta(const xAOD::TauJet &tau, const xAOD::TauTrack &track, double &out)
Definition: TauGNNUtils.cxx:527