3 A test for basic functionality of sub-event scheduling. 4 Algorithms A2 and A3 should run twice per event, in sub-event contexts. 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 Four 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 - Algorithm A4 runs in the whole event context, after the sub-events 16 from Configurables
import (HiveWhiteBoard, HiveSlimEventLoopMgr,
17 AvalancheSchedulerSvc, AlgResourcePool, CPUCruncher,
18 GaudiSequencer, Test__ViewTester)
42 SchedulerName=
"AvalancheSchedulerSvc", OutputLevel=INFO)
63 a1 = Test__ViewTester(
"A1")
64 a1.baseViewName =
'view' 65 a1.viewNumber = viewsPerEvt
66 a1.viewNodeName =
'viewNode' 68 a2 = Test__ViewTester(
"A2")
71 a3 = Test__ViewTester(
"A3")
74 a4 = Test__ViewTester(
"A4")
77 for algo
in [a1, a2, a3, a4]:
78 algo.Cardinality = cardinality
79 algo.OutputLevel = INFO
82 "viewNode", Members=[a2, a3], Sequential=
False, OutputLevel=INFO)
86 Members=[a1, viewNode, a4],
97 EventLoop=slimeventloopmgr,
98 TopAlg=[createViewSeq],
99 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.