Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework
master (f31105fd)
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
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
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
Typedefs
a
b
c
d
e
f
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
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
Enumerations
a
c
d
e
f
i
l
m
n
o
p
q
r
s
t
v
Enumerator
a
b
c
d
e
f
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Properties
Related Functions
:
a
b
c
d
e
g
h
i
m
o
p
r
s
t
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
b
c
e
f
g
h
i
l
m
n
o
p
r
s
t
u
z
Variables
a
b
c
d
e
g
h
i
m
o
p
q
r
s
t
v
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
Enumerations
Enumerator
c
e
f
p
u
v
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
__init__.py
Go to the documentation of this file.
1
11
import
os
12
13
14
def
ROOT6WorkAroundEnabled
(id=None):
15
"""
16
Helper function to easily exclude ROOT6 work-arounds for testing.
17
18
>>> os.environ['ROOT6_WORK_AROUND'] = 'all'
19
>>> ROOT6WorkAroundEnabled()
20
True
21
>>> os.environ['ROOT6_WORK_AROUND'] = 'none'
22
>>> ROOT6WorkAroundEnabled('JIRA-XYZ')
23
False
24
>>> os.environ['ROOT6_WORK_AROUND'] = 'JIRA-X'
25
>>> ROOT6WorkAroundEnabled('JIRA-X')
26
True
27
>>> ROOT6WorkAroundEnabled('JIRA-Y')
28
True
29
>>> os.environ['ROOT6_WORK_AROUND'] = 'JIRA-X,-JIRA-Y'
30
>>> ROOT6WorkAroundEnabled('JIRA-X')
31
True
32
>>> ROOT6WorkAroundEnabled('JIRA-Y')
33
False
34
>>> os.environ['ROOT6_WORK_AROUND'] = '-JIRA-Y'
35
>>> ROOT6WorkAroundEnabled('JIRA-X')
36
True
37
>>> ROOT6WorkAroundEnabled('JIRA-Y')
38
False
39
"""
40
enabled = os.environ.get(
"ROOT6_WORK_AROUND"
,
"all"
).lower()
41
if
enabled ==
"all"
:
42
return
True
43
if
enabled
in
(
"none"
,
"no"
,
"off"
,
"false"
,
"0"
):
44
return
False
45
if
id
is
None
:
# unnamed work-arounds can only be disabled globally
46
return
True
47
enabled = set(
map
(str.strip, enabled.split(
","
)))
48
disabled = set([e[1:]
for
e
in
enabled
if
e.startswith(
"-"
)])
49
id = id.lower()
50
# the w-a is enabled if in the enabled list or not explicitly disabled
51
return
id
in
enabled
or
id
not
in
disabled
GaudiKernel.ROOT6WorkAroundEnabled
def ROOT6WorkAroundEnabled(id=None)
Definition:
__init__.py:14
Containers::map
struct GAUDI_API map
Parametrisation class for map-like implementation.
Definition:
KeyedObjectManager.h:35
GaudiKernel
python
GaudiKernel
__init__.py
Generated on Mon Apr 7 2025 16:26:19 for The Gaudi Framework by
1.8.18