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
StringKeyEx.py
Go to the documentation of this file.
1
#!/usr/bin/env python3
2
13
"""
14
*******************************************************************************
15
* *
16
* Simple example which illustrates the usage of class StringKey *
17
* *
18
*******************************************************************************
19
"""
20
21
# =============================================================================
22
__author__ =
"Vanya BELYAEV Ivan.Belyaev@nikhef.nl"
23
from
Configurables
import
ApplicationMgr
24
from
Configurables
import
Gaudi__TestSuite__StringKeyEx
as
SKE
25
26
# =============================================================================
27
# @file
28
# Simple example which illustrates the usage of class StringKey
29
# @author Vanya BELYAEV Ivan.Belyaev@nikhef.nl
30
# @date 2009-10-07
31
# =============================================================================
32
33
ske = SKE(
"StringKeys"
, Key=
"key"
, Keys=[
"a"
,
"b"
,
"key"
,
"c"
,
"d"
])
34
35
ApplicationMgr(EvtSel=
"NONE"
, TopAlg=[ske], EvtMax=10)
36
37
# =============================================================================
38
# The actual job excution
39
# =============================================================================
40
if
"__main__"
== __name__:
41
print(__doc__)
42
print(__author__)
43
44
from
GaudiPython.Bindings
import
AppMgr
45
46
gaudi =
AppMgr
()
47
48
gaudi.run(1)
49
50
ske = gaudi.algorithm(
"StringKeys"
)
51
52
ske.PropertiesPrint =
True
53
54
from
GaudiPython.Bindings
import
gbl
as
cpp
55
56
SK = cpp.Gaudi.StringKey
57
58
key =
SK
(
"new Key"
)
59
60
print(
"set new key: "
, key)
61
62
ske.Key = key
63
64
keys = [key,
"rrr"
,
SK
(
"s"
)]
65
66
print(
"set new keys: "
, keys)
67
68
ske.Keys = keys
69
70
ske.PropertiesPrint =
True
71
72
gaudi.run(1)
73
74
# =============================================================================
75
# The END
76
# =============================================================================
GaudiPython.Bindings.AppMgr
Definition:
Bindings.py:887
GaudiPython.Bindings
Definition:
Bindings.py:1
StringKeyEx.SK
SK
Definition:
StringKeyEx.py:56
GaudiTestSuite
scripts
StringKeyEx.py
Generated on Mon Apr 7 2025 16:26:25 for The Gaudi Framework by
1.8.18