The Gaudi Framework
master (9f3f8895)
Toggle main menu visibility
Loading...
Searching...
No Matches
ReEntAlgResources.py
Go to the documentation of this file.
1
11
12
from
Configurables
import
(
13
AlgResourcePool,
14
AvalancheSchedulerSvc,
15
HiveSlimEventLoopMgr,
16
HiveWhiteBoard,
17
ReEntAlg,
18
)
19
from
Gaudi.Configuration
import
ApplicationMgr, WARNING
20
21
nSlots = 4
22
nThread = 4
23
24
scheduler =
AvalancheSchedulerSvc
(ThreadPoolSize=nThread)
25
slimeventloopmgr =
HiveSlimEventLoopMgr
(SchedulerName=scheduler)
26
whiteboard =
HiveWhiteBoard
(
"EventDataSvc"
, EventSlots=nSlots)
27
28
# Configure available and needed resources. Even though enough threads/slots
29
# are available, the algorithm should only be executed concurrently up to the
30
# available number of "Tokens".
31
algResourcePool =
AlgResourcePool
(
32
AvailableResources={
"Tokens"
: 2,
"Dummy"
: 100}, MissingResourceMessageLevel=WARNING
33
)
34
35
myralg =
ReEntAlg
(
"ReEntAlg"
, SleepFor=1000, NeededResources={
"Tokens"
: 1,
"Dummy"
: 5})
36
37
ApplicationMgr
(
38
EvtMax=5,
39
EvtSel=
"NONE"
,
40
HistogramPersistency=
"NONE"
,
41
EventLoop=slimeventloopmgr,
42
ExtSvc=[algResourcePool, whiteboard],
43
TopAlg=[myralg],
44
MessageSvcType=
"InertMessageSvc"
,
45
)
AlgResourcePool
The AlgResourcePool is a concrete implementation of the IAlgResourcePool interface.
Definition
AlgResourcePool.h:35
ApplicationMgr
The Application Manager class.
Definition
ApplicationMgr.h:54
AvalancheSchedulerSvc
Definition
AvalancheSchedulerSvc.h:114
HiveSlimEventLoopMgr
Definition
HiveSlimEventLoopMgr.cpp:39
HiveWhiteBoard
Data service base class.
Definition
HiveWhiteBoard.cpp:100
ReEntAlg
an algorithm to test reentrant Algorithms
Definition
ReEntAlg.h:19
Gaudi.Configuration
Definition
Configuration.py:1
GaudiTestSuite
options
ReEntAlgResources.py
Generated on
for The Gaudi Framework by
1.17.0