13A test for scheduling multiple sub-event contexts.
14The main sequence has two steps of creating and running sub-events.
16The ViewTester is an algorithm specifically designed to create sub-event
17contexts, pass them to the scheduler, and report on the current context.
19Seven 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
28from Configurables
import (
30 AvalancheSchedulerSvc,
61 SchedulerName=
"AvalancheSchedulerSvc", OutputLevel=DEBUG
83a1 = Test__ViewTester(
"A1")
84a1.baseViewName =
"viewOne"
85a1.viewNumber = viewsPerEvt
86a1.viewNodeName =
"viewNodeOne"
88a2 = Test__ViewTester(
"A2")
91a3 = Test__ViewTester(
"A3")
94a4 = Test__ViewTester(
"A4")
95a4.baseViewName =
"viewTwo"
96a4.viewNumber = viewsPerEvt
97a4.viewNodeName =
"viewNodeTwo"
99a5 = Test__ViewTester(
"A5")
102a6 = Test__ViewTester(
"A6")
105a7 = Test__ViewTester(
"A7")
108for algo
in [a1, a2, a3, a4, a5, a6, a7]:
109 algo.Cardinality = cardinality
110 algo.OutputLevel = DEBUG
112viewNodeOne = Gaudi__Sequencer(
113 "viewNodeOne", Members=[a2, a3], Sequential=
False, OutputLevel=VERBOSE
116viewNodeTwo = Gaudi__Sequencer(
117 "viewNodeTwo", Members=[a5, a6], Sequential=
False, OutputLevel=VERBOSE
120createViewSeq = Gaudi__Sequencer(
122 Members=[a1, viewNodeOne, a4, viewNodeTwo, a7],
134 EventLoop=slimeventloopmgr,
135 TopAlg=[createViewSeq],
136 MessageSvcType=
"InertMessageSvc",
The AlgResourcePool is a concrete implementation of the IAlgResourcePool interface.
The Application Manager class.