4 A test for control flow scheduling within sub-event contexts. 5 The sub-event control flow node has a child node attached. 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 Six 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 - Algorithms B1 and B2 run within the sub-event contexts, 14 on a child control flow node 15 - Algorithm A4 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 =
'view' 68 a1.viewNumber = viewsPerEvt
69 a1.viewNodeName =
'viewNode' 71 a2 = Test__ViewTester(
"A2")
74 a3 = Test__ViewTester(
"A3")
77 a4 = Test__ViewTester(
"A4")
80 b1 = Test__ViewTester(
"B1")
83 b2 = Test__ViewTester(
"B2")
86 for algo
in [a1, a2, a3, a4, b1, b2]:
87 algo.Cardinality = cardinality
88 algo.OutputLevel = DEBUG
96 Members=[a2, nodeInView, a3],
101 Members=[a1, viewNode, a4],
111 EventLoop=slimeventloopmgr,
112 TopAlg=[createViewSeq],
113 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.