13 A test for control flow scheduling within sub-event contexts.
14 The sub-event control flow node has a child node attached.
16 The ViewTester is an algorithm specifically designed to create sub-event
17 contexts, pass them to the scheduler, and report on the current context.
19 Six instances of ViewTester are used as follows:
20 - Algorithm A1 creates two sub-event contexts
21 - Algorithms A2 and A3 run within the sub-event contexts
22 - Algorithms B1 and B2 run within the sub-event contexts,
23 on a child control flow node
24 - Algorithm A4 runs in the whole event context, after the sub-events
28 from Configurables
import (
30 AvalancheSchedulerSvc,
52 whiteboard = HiveWhiteBoard(
"EventDataSvc", EventSlots=evtslots)
60 slimeventloopmgr = HiveSlimEventLoopMgr(
61 SchedulerName=
"AvalancheSchedulerSvc", OutputLevel=DEBUG
71 scheduler = AvalancheSchedulerSvc(ThreadPoolSize=threads, OutputLevel=INFO)
77 AlgResourcePool(OutputLevel=DEBUG)
83 a1 = Test__ViewTester(
"A1")
84 a1.baseViewName =
"view"
85 a1.viewNumber = viewsPerEvt
86 a1.viewNodeName =
"viewNode"
88 a2 = Test__ViewTester(
"A2")
91 a3 = Test__ViewTester(
"A3")
94 a4 = Test__ViewTester(
"A4")
97 b1 = Test__ViewTester(
"B1")
100 b2 = Test__ViewTester(
"B2")
103 for algo
in [a1, a2, a3, a4, b1, b2]:
104 algo.Cardinality = cardinality
105 algo.OutputLevel = DEBUG
107 nodeInView = Gaudi__Sequencer(
108 "nodeInView", Members=[b1, b2], Sequential=
False, OutputLevel=VERBOSE
111 viewNode = Gaudi__Sequencer(
112 "viewNode", Members=[a2, nodeInView, a3], Sequential=
False, OutputLevel=VERBOSE
115 createViewSeq = Gaudi__Sequencer(
116 "createViewSeq", Members=[a1, viewNode, a4], Sequential=
True, OutputLevel=VERBOSE
126 EventLoop=slimeventloopmgr,
127 TopAlg=[createViewSeq],
128 MessageSvcType=
"InertMessageSvc",