13 from Configurables
import AlgTimingAuditor, EventLoopMgr
14 from Configurables
import Gaudi__TestSuite__EventCounter
as GE_EventCounter
15 from Configurables
import Gaudi_Test_MySuperAlg
as MySuperAlg
16 from Configurables
import GaudiTestSuiteCommonConf, HelloWorld, ParentAlg, StopperAlg
18 from GaudiConfig.ControlFlow
import seq
25 GaudiTestSuiteCommonConf()
27 s1 = MySuperAlg(
"s1", OutputLevel=INFO)
28 s2 = MySuperAlg(
"s2", OutputLevel=WARNING)
31 MySuperAlg(
"s2", PercentPass=75, OutputLevel=DEBUG)
36 sand = HelloWorld(
"AND") & GE_EventCounter(
"ANDCounter")
37 sor = HelloWorld(
"OR") | GE_EventCounter(
"ORCounter")
41 raise RuntimeError(
"we should not be able to retype to SuperAlgorithm")
42 except AssertionError:
45 all = ParentAlg() >> StopperAlg(StopCount=20) >> top >> sand >> sor
47 print(
"# --- Configured Control Flow Expression:")
50 EventLoopMgr(PrintControlFlowExpression=
True)
57 ExtSvc=[
"ToolSvc",
"AuditorSvc",
"Gaudi::Monitoring::MessageSvcSink"],
61 AuditorSvc().Auditors.append(AlgTimingAuditor(
"TIMER"))