ATLAS Offline Software
Loading...
Searching...
No Matches
ORUtils::FEAssociationTool::PairKey Struct Reference
Collaboration diagram for ORUtils::FEAssociationTool::PairKey:

Public Member Functions

bool operator== (const PairKey &o) const noexcept

Static Public Member Functions

static PairKey make (const xAOD::IParticleContainer *a, std::size_t ia, const xAOD::IParticleContainer *b, std::size_t ib)

Public Attributes

const xAOD::IParticleContainerc1 = nullptr
std::size_t i1 = 0
const xAOD::IParticleContainerc2 = nullptr
std::size_t i2 = 0

Detailed Description

Definition at line 81 of file FEAssociationTool.h.

Member Function Documentation

◆ make()

FEAssociationTool::PairKey ORUtils::FEAssociationTool::PairKey::make ( const xAOD::IParticleContainer * a,
std::size_t ia,
const xAOD::IParticleContainer * b,
std::size_t ib )
static

Definition at line 69 of file FEAssociationTool.cxx.

71{
72 const bool aFirst =
73 std::less<const xAOD::IParticleContainer*>{}(a, b) || (a == b && ia <= ib);
74
75 return aFirst ? PairKey{a, ia, b, ib} : PairKey{b, ib, a, ia};
76}
static Double_t a

◆ operator==()

bool ORUtils::FEAssociationTool::PairKey::operator== ( const PairKey & o) const
noexcept

Definition at line 78 of file FEAssociationTool.cxx.

79{
80 return c1 == o.c1 && i1 == o.i1 && c2 == o.c2 && i2 == o.i2;
81}
const xAOD::IParticleContainer * c2
const xAOD::IParticleContainer * c1

Member Data Documentation

◆ c1

const xAOD::IParticleContainer* ORUtils::FEAssociationTool::PairKey::c1 = nullptr

Definition at line 83 of file FEAssociationTool.h.

◆ c2

const xAOD::IParticleContainer* ORUtils::FEAssociationTool::PairKey::c2 = nullptr

Definition at line 85 of file FEAssociationTool.h.

◆ i1

std::size_t ORUtils::FEAssociationTool::PairKey::i1 = 0

Definition at line 84 of file FEAssociationTool.h.

◆ i2

std::size_t ORUtils::FEAssociationTool::PairKey::i2 = 0

Definition at line 86 of file FEAssociationTool.h.


The documentation for this struct was generated from the following files: