4 A test for scheduling multiple sub-event contexts. 5 The main sequence has two steps of creating and running sub-events. 7 The ViewTester is an algorithm specifically designed to create sub-event 8 contexts, pass them to the scheduler, and report on the current context. 10 Seven instances of ViewTester are used as follows: 11 - Algorithm A1 creates two sub-event contexts 12 - Algorithms A2 and A3 run within the sub-event contexts 13 - Algorithm A4 creates two more sub-event contexts 14 - Algorithms A5 and A6 run within the new sub-event contexts 15 - Algorithm A7 runs in the whole event context, after the sub-events 19 from Configurables
import (HiveWhiteBoard, HiveSlimEventLoopMgr,
20 AvalancheSchedulerSvc, AlgResourcePool,
21 CPUCruncher, GaudiSequencer, Test__ViewTester)
45 SchedulerName=
"AvalancheSchedulerSvc", OutputLevel=DEBUG)
66 a1 = Test__ViewTester(
"A1")
67 a1.baseViewName =
'viewOne' 68 a1.viewNumber = viewsPerEvt
69 a1.viewNodeName =
'viewNodeOne' 71 a2 = Test__ViewTester(
"A2")
74 a3 = Test__ViewTester(
"A3")
77 a4 = Test__ViewTester(
"A4")
78 a4.baseViewName =
'viewTwo' 79 a4.viewNumber = viewsPerEvt
80 a4.viewNodeName =
'viewNodeTwo' 82 a5 = Test__ViewTester(
"A5")
85 a6 = Test__ViewTester(
"A6")
88 a7 = Test__ViewTester(
"A7")
91 for algo
in [a1, a2, a3, a4, a5, a6, a7]:
92 algo.Cardinality = cardinality
93 algo.OutputLevel = DEBUG
106 Members=[a1, viewNodeOne, a4, viewNodeTwo, a7],
116 EventLoop=slimeventloopmgr,
117 TopAlg=[createViewSeq],
118 MessageSvcType=
"InertMessageSvc")
Sequencer for executing several algorithms, stopping when one is faulty.
The AlgResourcePool is a concrete implementation of the IAlgResourcePool interface.
The Application Manager class.