Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
v
w
x
z
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
GitLab
LXR
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
PhysicsAnalysis
AnalysisCommon
AssociationUtils
AssociationUtils
DeltaRMatcher.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_DELTARMATCHER_H
6
#define ASSOCIATIONUTILS_DELTARMATCHER_H
7
8
// System includes
9
#include <limits>
10
11
// EDM includes
12
#include "
xAODBase/IParticle.h
"
13
14
// Local includes
15
#include "
AssociationUtils/IObjectAssociator.h
"
16
17
namespace
ORUtils
18
{
19
26
class
DeltaRMatcher
:
public
IParticleAssociator
27
{
28
29
public
:
30
32
DeltaRMatcher
(
double
dR,
bool
useRapidity=
true
);
33
35
virtual
bool
objectsMatch
36
(
const
xAOD::IParticle
&
p1
,
const
xAOD::IParticle
&
p2
)
const override
;
37
38
private
:
39
40
double
m_dR
;
41
bool
m_useRapidity
;
42
43
};
// class DeltaRMatcher
44
45
54
class
SlidingDeltaRMatcher
:
public
IParticleAssociator
55
{
56
57
public
:
58
63
SlidingDeltaRMatcher
(
double
c1
,
double
c2
,
64
double
maxCone =
std::numeric_limits<double>::max
(),
65
bool
useRapidity=
true
);
66
69
virtual
bool
objectsMatch
70
(
const
xAOD::IParticle
&
p1
,
const
xAOD::IParticle
&
p2
)
const override
;
71
72
private
:
73
75
double
m_c1
;
77
double
m_c2
;
79
double
m_maxCone
;
80
82
bool
m_useRapidity
;
83
84
};
// class SlidingDeltaRMatcher
85
86
}
// namespace ORUtils
87
88
#endif
ORUtils::DeltaRMatcher::objectsMatch
virtual bool objectsMatch(const xAOD::IParticle &p1, const xAOD::IParticle &p2) const override
Check if particles match in dR.
Definition:
DeltaRMatcher.cxx:25
IParticle.h
max
constexpr double max()
Definition:
ap_fixedTest.cxx:33
extractSporadic.c1
c1
Definition:
extractSporadic.py:134
TRTCalib_cfilter.p1
p1
Definition:
TRTCalib_cfilter.py:130
IObjectAssociator.h
ORUtils::SlidingDeltaRMatcher::m_useRapidity
bool m_useRapidity
Toggle rapidity usage.
Definition:
DeltaRMatcher.h:82
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition:
Event/xAOD/xAODBase/xAODBase/IParticle.h:41
ORUtils
Definition:
AltMuJetOverlapTool.h:20
ORUtils::SlidingDeltaRMatcher
DR matching strategy where cone decreases with pt.
Definition:
DeltaRMatcher.h:55
TRTCalib_cfilter.p2
p2
Definition:
TRTCalib_cfilter.py:131
ORUtils::SlidingDeltaRMatcher::m_c2
double m_c2
Sliding dR constant c2.
Definition:
DeltaRMatcher.h:77
ORUtils::SlidingDeltaRMatcher::SlidingDeltaRMatcher
SlidingDeltaRMatcher(double c1, double c2, double maxCone=std::numeric_limits< double >::max(), bool useRapidity=true)
Constructor.
Definition:
DeltaRMatcher.cxx:34
ORUtils::DeltaRMatcher
Encapsulates the delta-R matching strategy.
Definition:
DeltaRMatcher.h:27
ORUtils::SlidingDeltaRMatcher::m_maxCone
double m_maxCone
Maximum sliding cone size.
Definition:
DeltaRMatcher.h:79
ORUtils::DeltaRMatcher::DeltaRMatcher
DeltaRMatcher(double dR, bool useRapidity=true)
Constructor.
Definition:
DeltaRMatcher.cxx:17
ORUtils::DeltaRMatcher::m_dR
double m_dR
Definition:
DeltaRMatcher.h:40
ORUtils::DeltaRMatcher::m_useRapidity
bool m_useRapidity
Definition:
DeltaRMatcher.h:41
python.DataFormatRates.c2
c2
Definition:
DataFormatRates.py:123
ORUtils::SlidingDeltaRMatcher::objectsMatch
virtual bool objectsMatch(const xAOD::IParticle &p1, const xAOD::IParticle &p2) const override
Check if particles match in dR.
Definition:
DeltaRMatcher.cxx:42
ORUtils::IParticleAssociator
Interface for a class which checks for a match between IParticles.
Definition:
IObjectAssociator.h:19
ORUtils::SlidingDeltaRMatcher::m_c1
double m_c1
Sliding dR constant c1.
Definition:
DeltaRMatcher.h:75
Generated on Mon Mar 24 2025 21:09:32 for ATLAS Offline Software by
1.8.18