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

Encapsulates the delta-R matching strategy. More...

#include <DeltaRMatcher.h>

Inheritance diagram for ORUtils::DeltaRMatcher:
Collaboration diagram for ORUtils::DeltaRMatcher:

Public Member Functions

 DeltaRMatcher (double dR, bool useRapidity=true)
 Constructor. More...
 
virtual bool objectsMatch (const xAOD::IParticle &p1, const xAOD::IParticle &p2) const override
 Check if particles match in dR. More...
 

Private Attributes

double m_dR
 
bool m_useRapidity
 

Detailed Description

Encapsulates the delta-R matching strategy.

I am considering abstracting matching with an interface.

Author
Steve Farrell Steve.nosp@m.n.Fa.nosp@m.rrell.nosp@m.@cer.nosp@m.n.ch

Definition at line 26 of file DeltaRMatcher.h.

Constructor & Destructor Documentation

◆ DeltaRMatcher()

ORUtils::DeltaRMatcher::DeltaRMatcher ( double  dR,
bool  useRapidity = true 
)

Constructor.

Definition at line 17 of file DeltaRMatcher.cxx.

18  : m_dR(dR),
19  m_useRapidity(useRapidity)
20  {}

Member Function Documentation

◆ objectsMatch()

bool ORUtils::DeltaRMatcher::objectsMatch ( const xAOD::IParticle p1,
const xAOD::IParticle p2 
) const
overridevirtual

Check if particles match in dR.

Implements ORUtils::IParticleAssociator.

Definition at line 25 of file DeltaRMatcher.cxx.

27  {
29  }

Member Data Documentation

◆ m_dR

double ORUtils::DeltaRMatcher::m_dR
private

Definition at line 40 of file DeltaRMatcher.h.

◆ m_useRapidity

bool ORUtils::DeltaRMatcher::m_useRapidity
private

Definition at line 41 of file DeltaRMatcher.h.


The documentation for this class was generated from the following files:
TRTCalib_cfilter.p1
p1
Definition: TRTCalib_cfilter.py:130
TRTCalib_cfilter.p2
p2
Definition: TRTCalib_cfilter.py:131
ORUtils::DeltaRMatcher::m_dR
double m_dR
Definition: DeltaRMatcher.h:40
ORUtils::DeltaRMatcher::m_useRapidity
bool m_useRapidity
Definition: DeltaRMatcher.h:41
xAOD::P4Helpers::isInDeltaR
bool isInDeltaR(const xAOD::IParticle &p1, const xAOD::IParticle &p2, double dR, bool useRapidity=true)
Check if 2 xAOD::IParticle are in a cone.
Definition: xAODP4Helpers.h:174