The Gaudi Framework  v36r1 (3e2fb5a8)
ReEntAlg.py
Go to the documentation of this file.
1 
14 from Gaudi.Configuration import *
15 from Configurables import ReEntAlg
16 
17 from Configurables import AlgResourcePool, HiveSlimEventLoopMgr, HiveWhiteBoard, AvalancheSchedulerSvc
18 # from Configurables import GaudiExamplesCommonConf
19 # GaudiExamplesCommonConf()
20 
21 nSlots = 3
22 nThread = 3
23 
24 algCard = 0
25 
26 # msgFmt = "% F%40W%S%4W%s%e%7W%R%T %0W%M"
27 # msgSvc = MessageSvc()
28 # msgSvc.Format = msgFmt
29 
30 scheduler = AvalancheSchedulerSvc(ThreadPoolSize=nThread)
31 algResourcePool = AlgResourcePool()
32 slimeventloopmgr = HiveSlimEventLoopMgr(SchedulerName=scheduler)
33 whiteboard = HiveWhiteBoard("EventDataSvc", EventSlots=nSlots)
34 
35 myralg = ReEntAlg(
36  'ReEntAlg', OutputLevel=INFO, Cardinality=algCard, SleepFor=2000)
37 
39  EvtMax=10,
40  EvtSel='NONE',
41  HistogramPersistency='NONE',
42  EventLoop=slimeventloopmgr,
43  ExtSvc=[algResourcePool, whiteboard],
44  TopAlg=[myralg],
45  OutputLevel=INFO,
46  MessageSvcType="InertMessageSvc")
ReEntAlg
an algorithm to test reentrant Algorithms
Definition: ReEntAlg.h:20
AlgResourcePool
Definition: AlgResourcePool.h:42
Gaudi.Configuration
Definition: Configuration.py:1
AvalancheSchedulerSvc
Definition: AvalancheSchedulerSvc.h:112
HiveSlimEventLoopMgr
Definition: HiveSlimEventLoopMgr.h:32
ApplicationMgr
Definition: ApplicationMgr.h:57
HiveWhiteBoard
Definition: HiveWhiteBoard.cpp:128