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 (HiveWhiteBoard, HiveSlimEventLoopMgr,
29 AvalancheSchedulerSvc, AlgResourcePool, CPUCruncher,
30 GaudiSequencer, Test__ViewTester)
45 whiteboard = HiveWhiteBoard(
"EventDataSvc", EventSlots=evtslots)
53 slimeventloopmgr = HiveSlimEventLoopMgr(
54 SchedulerName=
"AvalancheSchedulerSvc", OutputLevel=DEBUG)
63 scheduler = AvalancheSchedulerSvc(ThreadPoolSize=threads, OutputLevel=INFO)
69 AlgResourcePool(OutputLevel=DEBUG)
75 a1 = Test__ViewTester(
"A1")
76 a1.baseViewName =
'view'
77 a1.viewNumber = viewsPerEvt
78 a1.viewNodeName =
'viewNode'
80 a2 = Test__ViewTester(
"A2")
83 a3 = Test__ViewTester(
"A3")
86 a4 = Test__ViewTester(
"A4")
89 b1 = Test__ViewTester(
"B1")
92 b2 = Test__ViewTester(
"B2")
95 for algo
in [a1, a2, a3, a4, b1, b2]:
96 algo.Cardinality = cardinality
97 algo.OutputLevel = DEBUG
99 nodeInView = GaudiSequencer(
100 "nodeInView", Members=[b1, b2], Sequential=
False, OutputLevel=VERBOSE)
102 viewNode = GaudiSequencer(
104 Members=[a2, nodeInView, a3],
108 createViewSeq = GaudiSequencer(
110 Members=[a1, viewNode, a4],
121 EventLoop=slimeventloopmgr,
122 TopAlg=[createViewSeq],
123 MessageSvcType=
"InertMessageSvc")