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