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
Control
AthenaConfiguration
python
ComponentFactory.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3
import
sys
4
import
AthenaConfiguration.AtlasSemantics
# noqa: F401 (load ATLAS-specific semantics)
5
from
AthenaCommon.Configurable
import
Configurable
6
from
GaudiConfig2
import
Configurables
as
cfg2
7
8
9
def
isComponentAccumulatorCfg
():
10
"""Returns true if the python fragment is ComponentAccumulator-based"""
11
12
if
(
"AthenaCommon.Include"
not
in
sys.modules
13
or
not
Configurable._useGlobalInstances):
14
return
True
15
else
:
16
return
False
17
18
19
def
_getConf1
(name):
20
"""Return legacy Configurable class with given name"""
21
from
AthenaCommon.ConfigurableDb
import
getConfigurable
22
return
getConfigurable
(name.replace(
"::"
,
"__"
), assumeCxxClass=
False
)
23
24
25
class
_compFactory
():
26
"""Return Configurable factory for legacy/CA jobs"""
27
28
def
__getattr__
(self, name):
29
"""Return Configurable class with given name"""
30
if
not
name.startswith(
"__"
):
31
return
getattr(cfg2, name)
if
isComponentAccumulatorCfg
()
else
_getConf1
(name)
32
33
def
getComp
(self, name):
34
"""Return Configurable class with given name"""
35
return
cfg2.getByType(name)
if
isComponentAccumulatorCfg
()
else
_getConf1
(name)
36
37
def
getComps
(self, *names):
38
"""Return list of Configurable classes with given names"""
39
return
[self.
getComp
(name)
for
name
in
names]
40
41
42
CompFactory =
_compFactory
()
python.ComponentFactory._getConf1
def _getConf1(name)
Definition:
ComponentFactory.py:19
python.ConfigurableDb.getConfigurable
def getConfigurable(className, requester='', assumeCxxClass=True)
Definition:
ConfigurableDb.py:208
python.ComponentFactory._compFactory.getComps
def getComps(self, *names)
Definition:
ComponentFactory.py:37
Configurable
athena/gaudi ----------------------------------------------------------—
python.ComponentFactory._compFactory.getComp
def getComp(self, name)
Definition:
ComponentFactory.py:33
python.JetAnalysisCommon.isComponentAccumulatorCfg
isComponentAccumulatorCfg
Definition:
JetAnalysisCommon.py:263
python.ComponentFactory._compFactory
Definition:
ComponentFactory.py:25
python.ComponentFactory._compFactory.__getattr__
def __getattr__(self, name)
Definition:
ComponentFactory.py:28
Generated on Mon Apr 21 2025 21:08:41 for ATLAS Offline Software by
1.8.18