11 from __future__
import print_function
14 from Configurables
import AlgTimingAuditor, EventLoopMgr
15 from Configurables
import Gaudi__Examples__EventCounter
as GE_EventCounter
16 from Configurables
import Gaudi_Test_MySuperAlg
as MySuperAlg
17 from Configurables
import GaudiExamplesCommonConf, HelloWorld, ParentAlg, StopperAlg
26 GaudiExamplesCommonConf()
28 s1 = MySuperAlg(
"s1", OutputLevel=INFO)
29 s2 = MySuperAlg(
"s2", OutputLevel=WARNING)
32 MySuperAlg(
"s2", PercentPass=75, OutputLevel=DEBUG)
37 sand = HelloWorld(
"AND") & GE_EventCounter(
"ANDCounter")
38 sor = HelloWorld(
"OR") | GE_EventCounter(
"ORCounter")
42 raise RuntimeError(
"we should not be able to retype to SuperAlgorithm")
43 except AssertionError:
46 all = ParentAlg() >> StopperAlg(StopCount=20) >> top >> sand >> sor
48 print(
"# --- Configured Control Flow Expression:")
51 EventLoopMgr(PrintControlFlowExpression=
True)
58 ExtSvc=[
"ToolSvc",
"AuditorSvc",
"Gaudi::Monitoring::MessageSvcSink"],
62 AuditorSvc().Auditors.append(AlgTimingAuditor(
"TIMER"))