18 from Configurables
import (
20 AvalancheSchedulerSvc,
33 msgFmt =
"% F%40W%S%4W%s%e%7W%R%T %0W%M"
35 msgSvc.Format = msgFmt
38 IncidentSvc(OutputLevel=DEBUG)
39 CPUCrunchSvc(shortCalib=
True)
47 whiteboard = HiveWhiteBoard(
"EventDataSvc", EventSlots=evtslots)
49 slimeventloopmgr = HiveSlimEventLoopMgr(OutputLevel=INFO)
51 scheduler = AvalancheSchedulerSvc(ThreadPoolSize=algosInFlight, OutputLevel=DEBUG)
53 AlgResourcePool(OutputLevel=INFO)
58 EventLoopInitProcAlg = IncidentProcAlg(
"EventLoopInitProcessingAlg", OutputLevel=DEBUG)
59 EventLoopFinalProcAlg = IncidentProcAlg(
60 "EventLoopFinalProcessingAlg", OutputLevel=DEBUG
63 AITestSvc1 = IncidentAsyncTestSvc(
64 "IncidentAwareService1",
67 IncidentNames=[
"BeginEvent",
"EndEvent",
"BeginRun",
"EndRun",
"AbortEvent"],
70 AITestSvc2 = IncidentAsyncTestSvc(
71 "IncidentAwareService2",
72 FileOffset=10000000 * 100,
73 EventMultiplier=1000 * 1000,
74 IncidentNames=[
"BeginEvent",
"EndEvent"],
77 AITestAlg1 = IncidentAsyncTestAlg(
78 "IncidentAwareTestAlg1",
79 ServiceName=
"IncidentAwareService1",
81 inpKeys=[
"/Event/a1"],
84 AITestAlg2 = IncidentAsyncTestAlg(
85 "IncidentAwareTestAlg2",
86 ServiceName=
"IncidentAwareService2",
88 inpKeys=[
"/Event/a2"],
91 FakeInput = CPUCruncher(
93 outKeys=[
"/Event/a1",
"/Event/a3",
"/Event/a4"],
98 Producer1 = CPUCruncher(
99 "Producer1", inpKeys=[
"/Event/a1",
"/Event/a3"], outKeys=[
"/Event/a5",
"/Event/a6"]
102 Filter = CPUCruncher(
"Filter", inpKeys=[
"/Event/a4"])
104 Producer2 = CPUCruncher(
"Producer2", inpKeys=[
"/Event/a3"], outKeys=[
"/Event/a2"])
106 Filter2 = CPUCruncher(
"Filter2", inpKeys=[
"/Event/a2"])
108 sequence0 = Gaudi__Sequencer(
"Sequence0")
109 sequence0.ModeOR =
False
110 sequence0.ShortCircuit =
False
111 sequence0.Members += [EventLoopInitProcAlg]
112 sequencex = Gaudi__Sequencer(
"SequenceX")
113 sequencex.ModeOR =
False
114 sequencex.ShortCircuit =
False
115 sequencex.Members += [EventLoopFinalProcAlg]
116 sequence1 = Gaudi__Sequencer(
"Sequence1")
117 sequence1.Members += [FakeInput, Producer1, Filter, Producer2, AITestAlg1, AITestAlg2]
118 sequence1.ModeOR =
False
119 sequence1.ShortCircuit =
False
120 sequence2 = Gaudi__Sequencer(
"Sequence2")
121 sequence2.Members += [sequence0, sequence1, Filter2, sequencex]
126 ExtSvc=[whiteboard, AITestSvc1, AITestSvc2],
127 EventLoop=slimeventloopmgr,
129 MessageSvcType=
"InertMessageSvc",