The Gaudi Framework  master (37c0b60a)
SlimEventLoopScheduledStop.py
Go to the documentation of this file.
1 
14 from Configurables import (
15  ApplicationMgr,
16  AvalancheSchedulerSvc,
17  GaudiExamplesCommonConf,
18  HiveSlimEventLoopMgr,
19  HiveWhiteBoard,
20  StopperAlg,
21 )
22 from Gaudi.Configuration import ERROR, WARNING
23 
24 threads = 1
25 
26 GaudiExamplesCommonConf()
27 
28 myalg = StopperAlg(
29  "StopperAlg",
30 )
31 
32 slimeventloopmgr = HiveSlimEventLoopMgr(
33  SchedulerName="AvalancheSchedulerSvc", OutputLevel=ERROR
34 )
35 whiteboard = HiveWhiteBoard("EventDataSvc")
36 
37 scheduler = AvalancheSchedulerSvc(ThreadPoolSize=threads, OutputLevel=WARNING)
38 
39 ApplicationMgr(
40  TopAlg=[myalg],
41  EvtMax=10,
42  EvtSel="NONE",
43  EventLoop=slimeventloopmgr,
44  ExtSvc=[whiteboard],
45 )
Gaudi.Configuration
Definition: Configuration.py:1