3 A test for control flow scheduling within sub-event contexts. 4 The sub-event control flow node has a child node attached. 6 The ViewTester is an algorithm specifically designed to create sub-event 7 contexts, pass them to the scheduler, and report on the current context. 9 Six instances of ViewTester are used as follows: 10 - Algorithm A1 creates two sub-event contexts 11 - Algorithms A2 and A3 run within the sub-event contexts 12 - Algorithms B1 and B2 run within the sub-event contexts, 13 on a child control flow node 14 - Algorithm A4 runs in the whole event context, after the sub-events 18 from Configurables
import (HiveWhiteBoard, HiveSlimEventLoopMgr,
19 AvalancheSchedulerSvc, AlgResourcePool, CPUCruncher,
20 GaudiSequencer, Test__ViewTester)
44 SchedulerName=
"AvalancheSchedulerSvc", OutputLevel=DEBUG)
65 a1 = Test__ViewTester(
"A1")
66 a1.baseViewName =
'view' 67 a1.viewNumber = viewsPerEvt
68 a1.viewNodeName =
'viewNode' 70 a2 = Test__ViewTester(
"A2")
73 a3 = Test__ViewTester(
"A3")
76 a4 = Test__ViewTester(
"A4")
79 b1 = Test__ViewTester(
"B1")
82 b2 = Test__ViewTester(
"B2")
85 for algo
in [a1, a2, a3, a4, b1, b2]:
86 algo.Cardinality = cardinality
87 algo.OutputLevel = DEBUG
90 "nodeInView", Members=[b1, b2], Sequential=
False, OutputLevel=VERBOSE)
94 Members=[a2, nodeInView, a3],
100 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.