4 A test for basic functionality of sub-event scheduling. 5 Algorithms A2 and A3 should run twice per event, in sub-event contexts. 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 Four 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 runs in the whole event context, after the sub-events 17 from Configurables
import (HiveWhiteBoard, HiveSlimEventLoopMgr,
18 AvalancheSchedulerSvc, AlgResourcePool,
19 CPUCruncher, GaudiSequencer, Test__ViewTester)
43 SchedulerName=
"AvalancheSchedulerSvc", OutputLevel=INFO)
64 a1 = Test__ViewTester(
"A1")
65 a1.baseViewName =
'view' 66 a1.viewNumber = viewsPerEvt
67 a1.viewNodeName =
'viewNode' 69 a2 = Test__ViewTester(
"A2")
72 a3 = Test__ViewTester(
"A3")
75 a4 = Test__ViewTester(
"A4")
78 for algo
in [a1, a2, a3, a4]:
79 algo.Cardinality = cardinality
80 algo.OutputLevel = INFO
88 Members=[a1, viewNode, a4],
98 EventLoop=slimeventloopmgr,
99 TopAlg=[createViewSeq],
100 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.