14 from Configurables
import GaudiTestSuiteCommonConf, MyAlgorithm, MyTool
17 GaudiTestSuiteCommonConf()
19 myalg = MyAlgorithm(
"MyAlg")
21 myalg.addTool(
MyTool(Int=101, Double=101.1e10, String=
"hundred one", Bool=
False))
27 String=
"two hundred and one",
33 "MyTool_conf1", Int=1, Double=2, String=
"three", Bool=
True, OutputLevel=INFO
37 "MyTool_conf2", Int=10, Double=20, String=
"xyz", Bool=
False, OutputLevel=INFO
40 myToolWithName = myalg.addTool(tool_conf2,
"ToolWithName")
42 myalg.ToolWithName.String =
"xyz"
44 assert myToolWithName.String ==
"xyz"
45 assert myalg.ToolWithName == myToolWithName
47 myToolWithName.String =
"abc"
49 myalg.PrivToolHandle.String =
"Is a private tool"
51 pubtool =
MyTool(
"TestPubToolHandle", String=
"Is a public tool")
52 myalg.PubToolHandle = pubtool
55 myalg.InvalidToolHandle =
""
57 ApplicationMgr(EvtMax=10, EvtSel=
"NONE", HistogramPersistency=
"NONE", TopAlg=[myalg])
61 from Configurables
import TestTool, TestToolAlg
63 tA = TestTool(
"ToolA", Tools=[
"TestTool/ToolB"], OutputLevel=DEBUG)
64 tB = TestTool(
"ToolB", Tools=[
"TestTool/ToolA"], OutputLevel=DEBUG)
65 testalg = TestToolAlg(Tools=[
"TestTool/ToolA"])