ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
AnalysisCommon
AssociationUtils
AssociationUtils
IObjectAssociator.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef ASSOCIATIONUTILS_IOBJECTASSOCIATOR_H
6
#define ASSOCIATIONUTILS_IOBJECTASSOCIATOR_H
7
8
// EDM includes
9
#include <
xAODBase/ObjectType.h
>
10
11
// Columnar includes
12
#include "
ColumnarCore/ColumnarTool.h
"
13
#include "
ColumnarCore/ParticleDef.h
"
14
15
namespace
ORUtils
16
{
17
22
class
IParticleAssociator
:
public
columnar::ColumnarTool
<>
23
{
24
public
:
26
virtual
~IParticleAssociator
(){};
27
31
virtual
StatusCode
setObjectTypes
(
xAODType::ObjectType
type1,
32
xAODType::ObjectType
type2) = 0;
33
35
virtual
bool
objectsMatch
(
columnar::Particle1Id
p1,
36
columnar::Particle2Id
p2,
bool
swapArgs =
false
)
const
= 0;
37
bool
objectsMatch
(
columnar::Particle2Id
p2,
38
columnar::Particle1Id
p1)
const
39
{
return
objectsMatch
(p1, p2,
true
); }
40
};
41
42
}
// namespace ORUtils
43
44
#endif
ColumnarTool.h
ObjectType.h
ParticleDef.h
ORUtils::IParticleAssociator
Interface for a class which checks for a match between IParticles.
Definition
IObjectAssociator.h:23
ORUtils::IParticleAssociator::setObjectTypes
virtual StatusCode setObjectTypes(xAODType::ObjectType type1, xAODType::ObjectType type2)=0
Set the object types to be used in the association.
ORUtils::IParticleAssociator::objectsMatch
bool objectsMatch(columnar::Particle2Id p2, columnar::Particle1Id p1) const
Definition
IObjectAssociator.h:37
ORUtils::IParticleAssociator::objectsMatch
virtual bool objectsMatch(columnar::Particle1Id p1, columnar::Particle2Id p2, bool swapArgs=false) const =0
Test association between two IParticles.
ORUtils::IParticleAssociator::~IParticleAssociator
virtual ~IParticleAssociator()
Virtual destructor.
Definition
IObjectAssociator.h:26
columnar::ColumnarTool
the base class for all columnar components
Definition
ColumnAccessorDataArray.h:17
ORUtils
Definition
AltMuJetOverlapTool.h:30
columnar::Particle1Id
ObjectId< Particle1Def > Particle1Id
Definition
ParticleDef.h:45
columnar::Particle2Id
ObjectId< Particle2Def > Particle2Id
Definition
ParticleDef.h:51
xAODType::ObjectType
ObjectType
Type of objects that have a representation in the xAOD EDM.
Definition
ObjectType.h:32
Generated on
for ATLAS Offline Software by
1.17.0