ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
PFMatch::EtaPhi Class Reference

#include <PFMatchPositions.h>

Inheritance diagram for PFMatch::EtaPhi:
Collaboration diagram for PFMatch::EtaPhi:

Public Member Functions

 EtaPhi (const eflowEtaPhiPosition &etaphi)
 
 EtaPhi ()
 
virtual ~EtaPhi ()
 
double getEta () const
 
eflowAzimuth getPhi () const
 
double getPhiD () const
 
double dRSq (const eflowEtaPhiPosition &other) const
 
double dR (const eflowEtaPhiPosition &other) const
 

Private Attributes

double m_eta {NAN}
 
eflowAzimuth m_phi {NAN}
 

Detailed Description

Definition at line 23 of file PFMatchPositions.h.

Constructor & Destructor Documentation

◆ EtaPhi() [1/2]

PFMatch::EtaPhi::EtaPhi ( const eflowEtaPhiPosition etaphi)
inline

Definition at line 25 of file PFMatchPositions.h.

25 : eflowEtaPhiPosition(etaphi) { }

◆ EtaPhi() [2/2]

PFMatch::EtaPhi::EtaPhi ( )
inline

Definition at line 26 of file PFMatchPositions.h.

26 { }

◆ ~EtaPhi()

virtual PFMatch::EtaPhi::~EtaPhi ( )
inlinevirtual

Definition at line 27 of file PFMatchPositions.h.

27 { }

Member Function Documentation

◆ dR()

double eflowEtaPhiPosition::dR ( const eflowEtaPhiPosition other) const
inlineinherited

Definition at line 99 of file eflowUtil.h.

99 { return std::sqrt(this->dRSq(other)); }

◆ dRSq()

double eflowEtaPhiPosition::dRSq ( const eflowEtaPhiPosition other) const
inlineinherited

Definition at line 94 of file eflowUtil.h.

94  {
95  double dEta(m_eta-other.m_eta);
96  double dPhi(m_phi.getAbsDifference(other.m_phi));
97  return dEta*dEta + dPhi*dPhi;
98  }

◆ getEta()

double eflowEtaPhiPosition::getEta ( ) const
inlineinherited

Definition at line 90 of file eflowUtil.h.

90 { return m_eta; }

◆ getPhi()

eflowAzimuth eflowEtaPhiPosition::getPhi ( ) const
inlineinherited

Definition at line 91 of file eflowUtil.h.

91 { return m_phi; }

◆ getPhiD()

double eflowEtaPhiPosition::getPhiD ( ) const
inlineinherited

Definition at line 92 of file eflowUtil.h.

92 { return m_phi(); }

Member Data Documentation

◆ m_eta

double eflowEtaPhiPosition::m_eta {NAN}
privateinherited

Definition at line 102 of file eflowUtil.h.

◆ m_phi

eflowAzimuth eflowEtaPhiPosition::m_phi {NAN}
privateinherited

Definition at line 103 of file eflowUtil.h.


The documentation for this class was generated from the following file:
eflowEtaPhiPosition::dRSq
double dRSq(const eflowEtaPhiPosition &other) const
Definition: eflowUtil.h:94
eflowEtaPhiPosition::m_phi
eflowAzimuth m_phi
Definition: eflowUtil.h:103
eflowAzimuth::getAbsDifference
double getAbsDifference(const eflowAzimuth &other) const
Definition: eflowUtil.h:46
eflowEtaPhiPosition::m_eta
double m_eta
Definition: eflowUtil.h:102
eflowEtaPhiPosition::eflowEtaPhiPosition
eflowEtaPhiPosition()=default
TauGNNUtils::Variables::Track::dPhi
bool dPhi(const xAOD::TauJet &tau, const xAOD::TauTrack &track, double &out)
Definition: TauGNNUtils.cxx:538
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
TauGNNUtils::Variables::Track::dEta
bool dEta(const xAOD::TauJet &tau, const xAOD::TauTrack &track, double &out)
Definition: TauGNNUtils.cxx:527