The Gaudi Framework
master (bdbe7744)
Toggle main menu visibility
Loading...
Searching...
No Matches
AsyncTimeline.py
Go to the documentation of this file.
1
11
12
from
Configurables
import
Gaudi__TestSuite__AsyncSleeperAlg
as
AsyncSleeperAlg
13
from
Configurables
import
TimelineSvc
14
from
Configurables
import
Gaudi__Sequencer
as
Sequencer
15
from
Configurables
import
(
16
AvalancheSchedulerSvc,
17
HiveSlimEventLoopMgr,
18
HiveWhiteBoard,
19
)
20
from
Gaudi.Configuration
import
*
21
22
threads = 2
23
offloadThreads = 2
24
evtslots = 1
25
26
# Configure parallel services
27
slimeventloopmgr =
HiveSlimEventLoopMgr
(
28
SchedulerName=
"AvalancheSchedulerSvc"
, OutputLevel=ERROR
29
)
30
whiteboard =
HiveWhiteBoard
(
"EventDataSvc"
, EventSlots=evtslots)
31
scheduler =
AvalancheSchedulerSvc
(
32
ThreadPoolSize=threads, NumOffloadThreads=offloadThreads, OutputLevel=WARNING
33
)
34
35
# Application setup
36
app =
ApplicationMgr
()
37
# - Algorithms
38
singleSleepAlg = AsyncSleeperAlg(
39
"SingleSleepAlg"
, SuspensionDuration=100, SuspensionPoints=1
40
)
# Single suspension -> two timeline events
41
doubleSleepAlg = AsyncSleeperAlg(
42
"DoubleSleepAlg"
, SuspensionDuration=100, SuspensionPoints=2
43
)
# Two suspensions -> three timeline events
44
sleepersSequencer = Sequencer(
45
"Sleepers"
, Sequential=
True
, Members=[singleSleepAlg, doubleSleepAlg]
46
)
# No data dependencies between the two algorithms but executed in sequence due to the sequential flag.
47
48
app.TopAlg = [sleepersSequencer]
49
# - Events
50
app.EvtMax = 2
51
app.EvtSel =
"NONE"
52
app.HistogramPersistency =
"NONE"
53
app.EventLoop = slimeventloopmgr
54
app.ExtSvc = [whiteboard]
55
# - Activate timeline service
56
TimelineSvc
(RecordTimeline=
True
, DumpTimeline=
True
, TimelineFile=
"myAsyncTimeline.csv"
)
ApplicationMgr
The Application Manager class.
Definition
ApplicationMgr.h:54
AvalancheSchedulerSvc
Definition
AvalancheSchedulerSvc.h:114
HiveSlimEventLoopMgr
Definition
HiveSlimEventLoopMgr.h:31
HiveWhiteBoard
Data service base class.
Definition
HiveWhiteBoard.cpp:100
TimelineSvc
Definition
TimelineSvc.h:21
Gaudi.Configuration
Definition
Configuration.py:1
GaudiTestSuite
options
AsyncTimeline.py
Generated on
for The Gaudi Framework by
1.17.0