The Gaudi Framework
master (0ea74171)
Toggle main menu visibility
Loading...
Searching...
No Matches
AtlasMCRecoScenario.py
Go to the documentation of this file.
1
#!/usr/bin/env gaudirun.py
2
12
13
from
Configurables
import
(
14
AlgResourcePool,
15
AvalancheSchedulerSvc,
16
CPUCrunchSvc,
17
HiveSlimEventLoopMgr,
18
HiveWhiteBoard,
19
)
20
from
Gaudi.Configuration
import
*
21
22
# convenience machinery for assembling custom graphs of algorithm precedence rules (w/ CPUCrunchers as algorithms)
23
from
GaudiHive
import
precedence
24
25
# metaconfig
26
evtslots = 1
27
evtMax = 1
28
algosInFlight = 4
29
threads = 4
30
31
InertMessageSvc
(OutputLevel=INFO)
32
33
whiteboard =
HiveWhiteBoard
(
"EventDataSvc"
, EventSlots=evtslots, OutputLevel=INFO)
34
35
slimeventloopmgr =
HiveSlimEventLoopMgr
(
36
SchedulerName=
"AvalancheSchedulerSvc"
, OutputLevel=DEBUG
37
)
38
39
scheduler =
AvalancheSchedulerSvc
(ThreadPoolSize=threads, OutputLevel=DEBUG)
40
41
AlgResourcePool
(OutputLevel=DEBUG)
42
43
CPUCrunchSvc
(shortCalib=
True
)
44
45
# timeValue = precedence.UniformTimeValue(avgRuntime=0.2)
46
timeValue =
precedence.RealTimeValue
(
47
path=
"atlas/mcreco/averageTiming.mcreco.TriggerOff.json"
, defaultTime=0.0
48
)
49
ifIObound =
precedence.UniformBooleanValue
(
False
)
50
51
sequencer =
precedence.CruncherSequence
(
52
timeValue,
53
ifIObound,
54
sleepFraction=0.0,
55
cfgPath=
"atlas/mcreco/cf.mcreco.TriggerOff.graphml"
,
56
dfgPath=
"atlas/mcreco/df.mcreco.TriggerOff.3rdEvent.graphml"
,
57
topSequencer=
"AthSequencer/AthMasterSeq"
,
58
cardinality=algosInFlight,
59
).get()
60
61
ApplicationMgr
(
62
EvtMax=evtMax,
63
EvtSel=
"NONE"
,
64
ExtSvc=[whiteboard],
65
EventLoop=slimeventloopmgr,
66
TopAlg=[sequencer],
67
MessageSvcType=
"InertMessageSvc"
,
68
OutputLevel=DEBUG,
69
)
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
CPUCrunchSvc
Definition
CPUCrunchSvc.h:22
HiveSlimEventLoopMgr
Definition
HiveSlimEventLoopMgr.h:31
HiveWhiteBoard
Data service base class.
Definition
HiveWhiteBoard.cpp:100
InertMessageSvc
Thread safe extension to the standard MessageSvc.
Definition
InertMessageSvc.h:32
precedence.CruncherSequence
Definition
precedence.py:166
precedence.RealTimeValue
Definition
precedence.py:74
precedence.UniformBooleanValue
Definition
precedence.py:113
Gaudi.Configuration
Definition
Configuration.py:1
GaudiHive
options
AtlasMCRecoScenario.py
Generated on
for The Gaudi Framework by
1.17.0