13 A test for issue 13 in gitlab.
14 Two different sets of sub-event contexts are created, and the
15 same algorithms (attached to a common control flow node) run in each
17 The ViewTester is an algorithm specifically designed to create sub-event
18 contexts, pass them to the scheduler, and report on the current context.
20 Five instances of ViewTester are used as follows:
21 - Algorithm A1 creates two sub-event contexts
22 - Algorithms A2 and A3 run within the sub-event contexts
23 - Algorithm A4 creates two more sub-event contexts
24 - Algorithms A2 and A3 run again, in the new contexts
25 - Algorithm A5 runs in the whole event context, after the sub-events
29 from Configurables
import (
31 AvalancheSchedulerSvc,
52 whiteboard = HiveWhiteBoard(
"EventDataSvc", EventSlots=evtslots)
60 slimeventloopmgr = HiveSlimEventLoopMgr(
61 SchedulerName=
"AvalancheSchedulerSvc", OutputLevel=INFO
71 scheduler = AvalancheSchedulerSvc(ThreadPoolSize=threads, OutputLevel=INFO)
77 AlgResourcePool(OutputLevel=INFO)
83 a1 = Test__ViewTester(
"A1")
84 a1.baseViewName =
"viewOne"
85 a1.viewNumber = viewsPerEvt
86 a1.viewNodeName =
"viewNodeOne"
88 a2 = Test__ViewTester(
"A2")
91 a3 = Test__ViewTester(
"A3")
94 a4 = Test__ViewTester(
"A4")
95 a4.baseViewName =
"viewTwo"
96 a4.viewNumber = viewsPerEvt
97 a4.viewNodeName =
"viewNodeTwo"
99 a5 = Test__ViewTester(
"A5")
102 for algo
in [a1, a2, a3, a4, a5]:
103 algo.Cardinality = cardinality
104 algo.OutputLevel = INFO
106 extraNode = Gaudi__Sequencer(
107 "extraNode", Members=[a2, a3], Sequential=
True, OutputLevel=INFO
110 viewNodeOne = Gaudi__Sequencer(
118 viewNodeTwo = Gaudi__Sequencer(
126 createViewSeq = Gaudi__Sequencer(
128 Members=[a1, viewNodeOne, a4, viewNodeTwo, a5],
140 EventLoop=slimeventloopmgr,
141 TopAlg=[createViewSeq],
142 MessageSvcType=
"InertMessageSvc",