12 from Configurables
import AlgTimingAuditor, ApplicationMgr, AuditorSvc, EventLoopMgr
13 from Configurables
import Gaudi__TestSuite__EventCounter
as EventCounter
14 from Configurables
import Gaudi__TestSuite__Prescaler
as Prescaler
15 from Configurables
import GaudiTestSuiteCommonConf, HelloWorld, ParentAlg, StopperAlg
17 from GaudiConfig.ControlFlow
import seq
24 GaudiTestSuiteCommonConf()
29 p1 = Prescaler(
"Prescaler1", PercentPass=50.0)
30 p2 = Prescaler(
"Prescaler2", PercentPass=10.0)
31 h = HelloWorld(OutputLevel=DEBUG)
32 c1 = EventCounter(
"Counter1")
33 c2 = EventCounter(
"Counter2")
45 sand = HelloWorld(
"AND") & EventCounter(
"ANDCounter")
46 sor = HelloWorld(
"OR") | EventCounter(
"ORCounter")
55 all = ParentAlg() >> StopperAlg(StopCount=20) >> top >> sand >> sor
57 print(
"# --- Configured Control Flow Expression:")
60 EventLoopMgr(PrintControlFlowExpression=
True)
66 ExtSvc=[
"ToolSvc",
"AuditorSvc",
"Gaudi::Monitoring::MessageSvcSink"],
70 AuditorSvc().Auditors += [AlgTimingAuditor(
"TIMER")]