4 A test for issue 13 in gitlab. 5 Two different sets of sub-event contexts are created, and the 6 same algorithms (attached to a common control flow node) run in each 8 The ViewTester is an algorithm specifically designed to create sub-event 9 contexts, pass them to the scheduler, and report on the current context. 11 Five instances of ViewTester are used as follows: 12 - Algorithm A1 creates two sub-event contexts 13 - Algorithms A2 and A3 run within the sub-event contexts 14 - Algorithm A4 creates two more sub-event contexts 15 - Algorithms A2 and A3 run again, in the new contexts 16 - Algorithm A5 runs in the whole event context, after the sub-events 20 from Configurables
import (HiveWhiteBoard, HiveSlimEventLoopMgr,
21 AvalancheSchedulerSvc, AlgResourcePool,
22 CPUCruncher, GaudiSequencer, Test__ViewTester)
46 SchedulerName=
"AvalancheSchedulerSvc", OutputLevel=INFO)
67 a1 = Test__ViewTester(
"A1")
68 a1.baseViewName =
'viewOne' 69 a1.viewNumber = viewsPerEvt
70 a1.viewNodeName =
'viewNodeOne' 72 a2 = Test__ViewTester(
"A2")
75 a3 = Test__ViewTester(
"A3")
78 a4 = Test__ViewTester(
"A4")
79 a4.baseViewName =
'viewTwo' 80 a4.viewNumber = viewsPerEvt
81 a4.viewNodeName =
'viewNodeTwo' 83 a5 = Test__ViewTester(
"A5")
86 for algo
in [a1, a2, a3, a4, a5]:
87 algo.Cardinality = cardinality
88 algo.OutputLevel = INFO
106 Members=[a1, viewNodeOne, a4, viewNodeTwo, a5],
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.