ATLAS Offline Software
Public Member Functions | List of all members
PFMatch::EtaPhiSqSignificanceCalculator Class Reference

Calculates distance between EtaPhi and EtaPhiWithVariance object. More...

#include <PFMatchDistance.h>

Inheritance diagram for PFMatch::EtaPhiSqSignificanceCalculator:
Collaboration diagram for PFMatch::EtaPhiSqSignificanceCalculator:

Public Member Functions

 EtaPhiSqSignificanceCalculator ()
 
virtual ~EtaPhiSqSignificanceCalculator ()
 
virtual double distanceBetween (const EtaPhi &position1, const EtaPhiWithVariance &position2) const
 

Detailed Description

Calculates distance between EtaPhi and EtaPhiWithVariance object.

Definition at line 38 of file PFMatchDistance.h.

Constructor & Destructor Documentation

◆ EtaPhiSqSignificanceCalculator()

PFMatch::EtaPhiSqSignificanceCalculator::EtaPhiSqSignificanceCalculator ( )
inline

Definition at line 40 of file PFMatchDistance.h.

40 { }

◆ ~EtaPhiSqSignificanceCalculator()

virtual PFMatch::EtaPhiSqSignificanceCalculator::~EtaPhiSqSignificanceCalculator ( )
inlinevirtual

Definition at line 41 of file PFMatchDistance.h.

41 { }

Member Function Documentation

◆ distanceBetween()

double PFMatch::EtaPhiSqSignificanceCalculator::distanceBetween ( const EtaPhi position1,
const EtaPhiWithVariance position2 
) const
virtual

Implements PFMatch::DistanceCalculator< EtaPhi, EtaPhiWithVariance >.

Definition at line 29 of file PFMatchDistance.cxx.

29  {
30  double dEta = position1.getEta() - position2.getEta();
31  double dPhi = position1.getPhi().getAbsDifference(position2.getPhi());
32  return dEta*dEta/position2.m_etaVariance + dPhi*dPhi/position2.m_phiVariance;
33 }

The documentation for this class was generated from the following files:
TauGNNUtils::Variables::Track::dPhi
bool dPhi(const xAOD::TauJet &tau, const xAOD::TauTrack &track, double &out)
Definition: TauGNNUtils.cxx:538
TauGNNUtils::Variables::Track::dEta
bool dEta(const xAOD::TauJet &tau, const xAOD::TauTrack &track, double &out)
Definition: TauGNNUtils.cxx:527