Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework
v36r11 (bdb84f5f)
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
g
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
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
r
s
t
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
s
t
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
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
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
from
__future__
import
print_function
21
22
# =============================================================================
23
__author__ =
"Vanya BELYAEV Ivan.Belyaev@nikhef.nl"
24
from
Configurables
import
ApplicationMgr
25
from
Configurables
import
Gaudi__Examples__StringKeyEx
as
SKE
26
27
# =============================================================================
28
# @file
29
# Simple example which illustrates the usage of class StringKey
30
# @author Vanya BELYAEV Ivan.Belyaev@nikhef.nl
31
# @date 2009-10-07
32
# =============================================================================
33
from
Gaudi.Configuration
import
*
34
35
ske = SKE(
"StringKeys"
, Key=
"key"
, Keys=[
"a"
,
"b"
,
"key"
,
"c"
,
"d"
])
36
37
ApplicationMgr(EvtSel=
"NONE"
, TopAlg=[ske], EvtMax=10)
38
39
# =============================================================================
40
# The actual job excution
41
# =============================================================================
42
if
"__main__"
== __name__:
43
44
print(__doc__)
45
print(__author__)
46
47
from
GaudiPython.Bindings
import
AppMgr
48
49
gaudi =
AppMgr
()
50
51
gaudi.run(1)
52
53
ske = gaudi.algorithm(
"StringKeys"
)
54
55
ske.PropertiesPrint =
True
56
57
from
GaudiPython.Bindings
import
gbl
as
cpp
58
59
SK = cpp.Gaudi.StringKey
60
61
key =
SK
(
"new Key"
)
62
63
print(
"set new key: "
, key)
64
65
ske.Key = key
66
67
keys = [key,
"rrr"
,
SK
(
"s"
)]
68
69
print(
"set new keys: "
, keys)
70
71
ske.Keys = keys
72
73
ske.PropertiesPrint =
True
74
75
gaudi.run(1)
76
77
# =============================================================================
78
# The END
79
# =============================================================================
GaudiPython.Bindings.AppMgr
Definition:
Bindings.py:872
GaudiPython.Bindings
Definition:
Bindings.py:1
Gaudi.Configuration
Definition:
Configuration.py:1
StringKeyEx.SK
SK
Definition:
StringKeyEx.py:59
GaudiExamples
scripts
StringKeyEx.py
Generated on Mon Feb 27 2023 19:04:35 for The Gaudi Framework by
1.8.18