4 from Configurables
import HiveWhiteBoard, HiveSlimEventLoopMgr, ForwardSchedulerSvc, CPUCruncher
14 whiteboard = HiveWhiteBoard(
"EventDataSvc",
17 slimeventloopmgr = HiveSlimEventLoopMgr(OutputLevel=INFO)
19 scheduler = ForwardSchedulerSvc(MaxAlgosInFlight=algosInFlight,
22 a1 = CPUCruncher(
"A1",
26 a1.outKeys = [
'/Event/a1']
28 a2 = CPUCruncher(
"A2",
30 a2.inpKeys = [
'/Event/a1']
31 a2.outKeys = [
'/Event/a2']
33 a3 = CPUCruncher(
"A3",
35 a3.inpKeys = [
'/Event/a1']
36 a3.outKeys = [
'/Event/a3UPS!']
38 a4 = CPUCruncher(
"A4",
40 a4.inpKeys = [
'/Event/a2',
'/Event/a3']
41 a4.outKeys = [
'/Event/a4']
43 for algo
in [a1, a2, a3, a4]:
44 algo.Cardinality = cardinality
45 algo.OutputLevel = WARNING
50 EventLoop=slimeventloopmgr,
51 TopAlg=[a1, a2, a3, a4],
52 MessageSvcType=
"InertMessageSvc")
Thread safe extension to the standard MessageSvc.
The Application Manager class.