11 from Configurables
import (
13 AvalancheSchedulerSvc,
14 ContextEventCounterData,
15 ContextEventCounterPtr,
36 whiteboard = HiveWhiteBoard(
"EventDataSvc", EventSlots=evtslots)
44 slimeventloopmgr = HiveSlimEventLoopMgr(OutputLevel=DEBUG)
53 scheduler = AvalancheSchedulerSvc(ThreadPoolSize=algosInFlight, OutputLevel=DEBUG)
59 AlgResourcePool(OutputLevel=DEBUG)
61 CPUCrunchSvc(shortCalib=
True)
67 a1 = CPUCruncher(
"A1")
68 a1.outKeys = [
"/Event/a1"]
70 a2 = CPUCruncher(
"A2")
71 a2.inpKeys = [
"/Event/a1"]
72 a2.outKeys = [
"/Event/a2"]
74 a3 = CPUCruncher(
"A3")
75 a3.inpKeys = [
"/Event/a1"]
76 a3.outKeys = [
"/Event/a3"]
78 a4 = CPUCruncher(
"A4")
79 a4.inpKeys = [
"/Event/a2"]
80 a4.outKeys = [
"/Event/a4"]
82 for algo
in [a1, a2, a3, a4]:
83 algo.OutputLevel = DEBUG
88 algo.Cardinality = cardinality
91 "CriticalSection", Members=[a1, a2, a4], Sequential=
True, OutputLevel=VERBOSE
101 EventLoop=slimeventloopmgr,
103 MessageSvcType=
"InertMessageSvc",