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
w
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
AnalysisUtils
AnalysisUtils
AANTTreeMap.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef ANALYSISUTILS_AANTTREEMAP_H
6
#define ANALYSISUTILS_AANTTREEMAP_H
7
8
#include <map>
9
#include <string>
10
#include <mutex>
11
12
#include "TTree.h"
13
#include "
CxxUtils/checker_macros.h
"
14
15
class
AANTTreeMap
16
{
17
public
:
18
static
void
setTree
(
const
std::string &
stream
, TTree *
tree
)
19
{
20
std::scoped_lock lock (
s_mutex
);
21
s_treeMap[
stream
] =
tree
;
22
}
23
static
TTree *
getTree
(
const
std::string &
stream
)
24
{
25
std::scoped_lock lock (
s_mutex
);
26
return
s_treeMap[
stream
];
27
}
28
29
private
:
31
static
std::mutex
s_mutex
;
32
static
std::map<std::string,TTree*> s_treeMap
ATLAS_THREAD_SAFE
;
33
};
34
35
#endif
AANTTreeMap::s_mutex
static std::mutex s_mutex
tree map
Definition:
AANTTreeMap.h:31
BeamSpot::mutex
std::mutex mutex
Definition:
InDetBeamSpotVertex.cxx:18
tree
TChain * tree
Definition:
tile_monitor.h:30
AthenaPoolTestWrite.stream
string stream
Definition:
AthenaPoolTestWrite.py:12
AANTTreeMap
Definition:
AANTTreeMap.h:16
AANTTreeMap::ATLAS_THREAD_SAFE
static std::map< std::string, TTree * > s_treeMap ATLAS_THREAD_SAFE
Definition:
AANTTreeMap.h:32
AANTTreeMap::getTree
static TTree * getTree(const std::string &stream)
Definition:
AANTTreeMap.h:23
checker_macros.h
Define macros for attributes used to control the static checker.
AANTTreeMap::setTree
static void setTree(const std::string &stream, TTree *tree)
Definition:
AANTTreeMap.h:18
Generated on Wed May 7 2025 21:05:48 for ATLAS Offline Software by
1.8.18