13 A test for scheduling multiple sub-event contexts.
14 The main sequence has two steps of creating and running sub-events.
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 Seven 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 - Algorithm A4 creates two more sub-event contexts
23 - Algorithms A5 and A6 run within the new sub-event contexts
24 - Algorithm A7 runs in the whole event context, after the sub-events
27 from Configurables
import (
29 AvalancheSchedulerSvc,
51 whiteboard = HiveWhiteBoard(
"EventDataSvc", EventSlots=evtslots)
59 slimeventloopmgr = HiveSlimEventLoopMgr(
60 SchedulerName=
"AvalancheSchedulerSvc", OutputLevel=DEBUG
70 scheduler = AvalancheSchedulerSvc(ThreadPoolSize=threads, OutputLevel=INFO)
76 AlgResourcePool(OutputLevel=DEBUG)
82 a1 = Test__ViewTester(
"A1")
83 a1.baseViewName =
"viewOne"
84 a1.viewNumber = viewsPerEvt
85 a1.viewNodeName =
"viewNodeOne"
87 a2 = Test__ViewTester(
"A2")
90 a3 = Test__ViewTester(
"A3")
93 a4 = Test__ViewTester(
"A4")
94 a4.baseViewName =
"viewTwo"
95 a4.viewNumber = viewsPerEvt
96 a4.viewNodeName =
"viewNodeTwo"
98 a5 = Test__ViewTester(
"A5")
101 a6 = Test__ViewTester(
"A6")
104 a7 = Test__ViewTester(
"A7")
107 for algo
in [a1, a2, a3, a4, a5, a6, a7]:
108 algo.Cardinality = cardinality
109 algo.OutputLevel = DEBUG
111 viewNodeOne = GaudiSequencer(
112 "viewNodeOne", Members=[a2, a3], Sequential=
False, OutputLevel=VERBOSE
115 viewNodeTwo = GaudiSequencer(
116 "viewNodeTwo", Members=[a5, a6], Sequential=
False, OutputLevel=VERBOSE
119 createViewSeq = GaudiSequencer(
121 Members=[a1, viewNodeOne, a4, viewNodeTwo, a7],
133 EventLoop=slimeventloopmgr,
134 TopAlg=[createViewSeq],
135 MessageSvcType=
"InertMessageSvc",