The Gaudi Framework  master (adcf1ca6)
Loading...
Searching...
No Matches
Properties.py
Go to the documentation of this file.
11
12# common configuration plus output level threshold
13from Configurables import GaudiTestSuiteCommonConf
14from Gaudi.Configuration import *
15
16GaudiTestSuiteCommonConf(OutputLevel=INFO)
17
18from GaudiKernel import SystemOfUnits as units
19
20# test the job opts search path mechanism
21# The environment variable JOBOPTSEARCHPATH controls it
22importOptions("optsub1/dummy1.opts")
23
24from Configurables import PropertyAlg, PropertyProxy
25
26# --------------------------------------------------------------
27# Algorithms Private Options
28# --------------------------------------------------------------
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")
72
73# --------------------------------------------------------------
74# Private Application Configuration options
75# --------------------------------------------------------------
77app.TopAlg = [alg]
78# test for the multiple inclusion of the same alg
79app.TopAlg += [alg, proxy]
80# test for the removal of an algorithm
81app.TopAlg.remove(alg)
82
83# --------------------------------------------------------------
84# Event related parameters
85# --------------------------------------------------------------
86app.EvtMax = 1 # events to be processed (default is 10)
87app.EvtSel = "NONE" # do not use any event input
88app.HistogramPersistency = "NONE"
89
90# --------------------------------------------------------------
91# MessageSvc Properties testing
92# --------------------------------------------------------------
93msgSvc = MessageSvc()
94msgSvc.setDebug += ["EventLoopMgr"]
95msgSvc.setVerbose += ["MsgTest"]
96# msgSvc.setDebug += ["MsgTest"]
97# msgSvc.setInfo += ["MsgTest"]
98# msgSvc.setError += ["MsgTest"]
99msgSvc.setWarning += ["MsgTest"]
100# msgSvc.setFatal += ["MsgTest"]
101# msgSvc.setAlways += ["MsgTest"]
The Application Manager class.
Trivial Algorithm for tutorial purposes.
Definition PropertyAlg.h:28