The Gaudi Framework
master (1a7a3838)
Toggle main menu visibility
Loading...
Searching...
No Matches
Properties.py
Go to the documentation of this file.
1
11
12
# common configuration plus output level threshold
13
from
Configurables
import
GaudiTestSuiteCommonConf
14
from
Gaudi.Configuration
import
*
15
16
GaudiTestSuiteCommonConf(OutputLevel=INFO)
17
18
from
GaudiKernel
import
SystemOfUnits
as
units
19
20
# test the job opts search path mechanism
21
# The environment variable JOBOPTSEARCHPATH controls it
22
importOptions(
"optsub1/dummy1.opts"
)
23
24
from
Configurables
import
PropertyAlg, PropertyProxy
25
26
# --------------------------------------------------------------
27
# Algorithms Private Options
28
# --------------------------------------------------------------
29
alg =
PropertyAlg
(
30
OutputLevel=3,
31
Int=101,
32
Int64=1 << 32,
33
UInt64=int(1 << 32),
# 'int' is used for testing
34
Double=101.1e10,
35
String=
'hundred "one"'
,
36
Bool=
False
,
37
IntArray=[1, 2, 3, 5],
38
Int64Array=[1 << 32],
39
UInt64Array=[int(1 << 32)],
# 'int' is used for testing
40
DoubleArray=[-11.0, 2.0, 3.3, 0.4e-03, 1.0e-20, 1.0e20],
41
StringArray=[
"one"
,
"two"
,
"four"
],
42
StringMap={
"one"
:
"une"
},
43
BoolArray=[
False
,
True
,
False
],
44
EmptyArray=[],
45
IntSet=[1, 1, 2],
# this becomes [1, 2]
46
StringSet=[
"one"
,
"two"
],
47
FloatUnorderedSet={1.1, 2.2},
48
# Units testing
49
DoubleArrayWithUnits=[
50
1.1 * units.m2,
51
-2.0 * units.cm,
52
3.3 * units.cm,
53
0.4e-03 * units.m,
54
],
55
DoubleArrayWithoutUnits=[1100000.0, -20.0, 33.0, 0.4],
56
PInt=101,
57
PDouble=101.0e5,
58
PString=
"hundred 'one'"
,
59
PString2=
" and a half"
,
60
PBool=
True
,
61
PIntArray=[1, 2, 3, 5],
62
PDoubleArray=[1.1, 2.0, 3.3, 1.0e-20, 1.0e20],
63
PStringArray=[
"one"
,
"two"
,
"four"
],
64
PBoolArray=[
True
,
False
,
True
,
False
],
65
IntPairArray=[(1, 2), (3, 4), (5, 6)],
66
DoublePairArray=[(1.1, 2.1), (2.3, 4.5), (5.6, 6.7)],
67
)
68
69
# FIXME: remote properties not supported by configurables
70
# proxy = PropertyProxy(String = "This is set by the proxy")
71
proxy =
PropertyProxy
()
72
73
# --------------------------------------------------------------
74
# Private Application Configuration options
75
# --------------------------------------------------------------
76
app =
ApplicationMgr
()
77
app.TopAlg = [alg]
78
# test for the multiple inclusion of the same alg
79
app.TopAlg += [alg, proxy]
80
# test for the removal of an algorithm
81
app.TopAlg.remove(alg)
82
83
# --------------------------------------------------------------
84
# Event related parameters
85
# --------------------------------------------------------------
86
app.EvtMax = 1
# events to be processed (default is 10)
87
app.EvtSel =
"NONE"
# do not use any event input
88
app.HistogramPersistency =
"NONE"
89
90
# --------------------------------------------------------------
91
# MessageSvc Properties testing
92
# --------------------------------------------------------------
93
msgSvc =
MessageSvc
()
94
msgSvc.setDebug += [
"EventLoopMgr"
]
95
msgSvc.setVerbose += [
"MsgTest"
]
96
# msgSvc.setDebug += ["MsgTest"]
97
# msgSvc.setInfo += ["MsgTest"]
98
# msgSvc.setError += ["MsgTest"]
99
msgSvc.setWarning += [
"MsgTest"
]
100
# msgSvc.setFatal += ["MsgTest"]
101
# msgSvc.setAlways += ["MsgTest"]
ApplicationMgr
The Application Manager class.
Definition
ApplicationMgr.h:54
GaudiKernel.PropertyProxy.PropertyProxy
Definition
PropertyProxy.py:89
MessageSvc
Definition
MessageSvc.h:36
PropertyAlg
Trivial Algorithm for tutorial purposes.
Definition
PropertyAlg.h:28
Gaudi.Configuration
Definition
Configuration.py:1
GaudiTestSuite
options
Properties.py
Generated on
for The Gaudi Framework by
1.17.0