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
Reconstruction
eflowRec
src
eflowTrackClusterLink.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
/*
6
* eflowTrackClusterLink.cxx
7
*
8
* Created on: 30.09.2013
9
* Author: tlodd
10
*/
11
12
#include "
eflowRec/eflowTrackClusterLink.h
"
13
#include "
AthenaKernel/SlotSpecificObj.h
"
14
#include "
CxxUtils/checker_macros.h
"
15
16
17
18
eflowTrackClusterLink
*
19
eflowTrackClusterLink::getInstance
(
eflowRecTrack
*
track
,
20
eflowRecCluster
* cluster,
21
const
EventContext& ctx)
22
{
23
static
SG::SlotSpecificObj<Cache>
slots
ATLAS_THREAD_SAFE
;
24
Cache
&
c
= *slots.get (ctx);
25
std::lock_guard lock (
c
.m_mutex);
26
if
(
c
.m_evt != ctx.evt()) {
27
c
.m_map.clear();
28
c
.m_evt = ctx.evt();
29
}
30
31
key_t
key
(
track
, cluster);
32
auto
it
=
c
.m_map.try_emplace (
key
, std::unique_ptr<eflowTrackClusterLink>()).first;
33
if
(!
it
->second) {
34
it
->second = std::make_unique<eflowTrackClusterLink>(
track
,cluster);
35
}
36
return
it
->second.get();
37
}
eflowRecCluster
This class extends the information about a xAOD::CaloCluster.
Definition:
eflowRecCluster.h:40
skel.it
it
Definition:
skel.GENtoEVGEN.py:407
eflowTrackClusterLink::key_t
std::pair< eflowRecTrack *, eflowRecCluster * > key_t
Definition:
eflowTrackClusterLink.h:59
eflowTrackClusterLink
Stores pointers to an eflowRecTrack and an eflowRecCluster.
Definition:
eflowTrackClusterLink.h:37
eflowTrackClusterLink::Cache
Definition:
eflowTrackClusterLink.h:69
eflowRecTrack
This class extends the information about a xAOD::Track.
Definition:
eflowRecTrack.h:46
SG::SlotSpecificObj
Maintain a set of objects, one per slot.
Definition:
AthenaKernel/AthenaKernel/SlotSpecificObj.h:70
eflowTrackClusterLink.h
eflowTrackClusterLink::getInstance
static eflowTrackClusterLink * getInstance(eflowRecTrack *track, eflowRecCluster *cluster, const EventContext &ctx=Gaudi::Hive::currentContext())
Definition:
eflowTrackClusterLink.cxx:19
SlotSpecificObj.h
Maintain a set of objects, one per slot.
xAOD::track
@ track
Definition:
TrackingPrimitives.h:513
ATLAS_THREAD_SAFE
#define ATLAS_THREAD_SAFE
Definition:
checker_macros.h:211
checker_macros.h
Define macros for attributes used to control the static checker.
python.compressB64.c
def c
Definition:
compressB64.py:93
mapkey::key
key
Definition:
TElectronEfficiencyCorrectionTool.cxx:37
Generated on Sat Mar 29 2025 21:09:53 for ATLAS Offline Software by
1.8.18