ATLAS Offline Software
Loading...
Searching...
No Matches
ORUtils::IParticleAssociator Class Referenceabstract

Interface for a class which checks for a match between IParticles. More...

#include <IObjectAssociator.h>

Inheritance diagram for ORUtils::IParticleAssociator:
Collaboration diagram for ORUtils::IParticleAssociator:

Public Member Functions

virtual ~IParticleAssociator ()
 Virtual destructor.
virtual StatusCode setObjectTypes (xAODType::ObjectType type1, xAODType::ObjectType type2)=0
 Set the object types to be used in the association.
virtual bool objectsMatch (columnar::Particle1Id p1, columnar::Particle2Id p2, bool swapArgs=false) const =0
 Test association between two IParticles.
bool objectsMatch (columnar::Particle2Id p2, columnar::Particle1Id p1) const

Detailed Description

Interface for a class which checks for a match between IParticles.

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

Definition at line 22 of file IObjectAssociator.h.

Constructor & Destructor Documentation

◆ ~IParticleAssociator()

virtual ORUtils::IParticleAssociator::~IParticleAssociator ( )
inlinevirtual

Virtual destructor.

Definition at line 26 of file IObjectAssociator.h.

26{};

Member Function Documentation

◆ objectsMatch() [1/2]

virtual bool ORUtils::IParticleAssociator::objectsMatch ( columnar::Particle1Id p1,
columnar::Particle2Id p2,
bool swapArgs = false ) const
pure virtual

Test association between two IParticles.

Implemented in ORUtils::DeltaRMatcher, ORUtils::MuJetGhostDRMatcher, and ORUtils::SlidingDeltaRMatcher.

◆ objectsMatch() [2/2]

bool ORUtils::IParticleAssociator::objectsMatch ( columnar::Particle2Id p2,
columnar::Particle1Id p1 ) const
inline

Definition at line 37 of file IObjectAssociator.h.

39 { return objectsMatch(p1, p2, true); }
virtual bool objectsMatch(columnar::Particle1Id p1, columnar::Particle2Id p2, bool swapArgs=false) const =0
Test association between two IParticles.

◆ setObjectTypes()

virtual StatusCode ORUtils::IParticleAssociator::setObjectTypes ( xAODType::ObjectType type1,
xAODType::ObjectType type2 )
pure virtual

Set the object types to be used in the association.

This must be called before using the associator in columnar mode.

Implemented in ORUtils::DeltaRMatcher, ORUtils::MuJetGhostDRMatcher, and ORUtils::SlidingDeltaRMatcher.


The documentation for this class was generated from the following file: