40def configure(gaudi=None):
41 """the configurtaion of the job"""
42
43
44 if not gaudi:
45 gaudi = gaudimodule.AppMgr()
46
47
48 gaudi.config(files=["../options/Common.opts"])
49
50
51
52 gaudi.TopAlg = ["PropertyAlg"]
53
54
55 gaudi.TopAlg += ["PropertyAlg", "PropertyProxy"]
56
57
58 gaudi.TopAlg.remove("PropertyAlg")
59
60
61
62 msgSvc = gaudi.service("MessageSvc")
63 msgSvc.OutputLevel = 3
64
65
66 gaudi.EvtSel = "NONE"
67 gaudi.HistogramPersistency = "NONE"
68
69
70
71 alg = gaudi.algorithm("PropertyAlg")
72
73 alg.OutputLevel = 3
74
75 alg.Int = 101
76 alg.Double = 101.1e10
77 alg.String = "hundred one"
78 alg.Bool = False
79
80 alg.IntArray = [1, 2, 3, 5]
81 alg.DoubleArray = [-11.0, 2.0, 3.3, 0.4e-03]
82 alg.StringArray = ["one", "two", "four"]
83 alg.BoolArray = [False, True, False]
84 alg.EmptyArray = []
85
86 alg.PInt = 101
87 alg.PDouble = 101.0e5
88 alg.PString = "hundred one"
89 alg.PBool = True
90
91 alg.PIntArray = [1, 2, 3, 5]
92 alg.PDoubleArray = [1.1, 2.0, 3.3]
93 alg.PStringArray = ["one", "two", "four"]
94 alg.PBoolArray = [True, False, True, False]
95
96 proxy = gaudi.algorithm("PropertyProxy")
97 proxy.String = "This is set by the proxy"
98
99 msgSvc.setDebug = ["EventLoopMgr"]
100 msgSvc.setVerbose = ["MsgTest"]
101
102 return SUCCESS
103
104
105
106
107
108
109