The Gaudi Framework  master (37c0b60a)
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)
47  path="atlas/mcreco/averageTiming.mcreco.TriggerOff.json", defaultTime=0.0
48 )
50 
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 
62  EvtMax=evtMax,
63  EvtSel="NONE",
64  ExtSvc=[whiteboard],
65  EventLoop=slimeventloopmgr,
66  TopAlg=[sequencer],
67  MessageSvcType="InertMessageSvc",
68  OutputLevel=DEBUG,
69 )
GaudiPartProp.decorators.get
get
decorate the vector of properties
Definition: decorators.py:283
InertMessageSvc
Definition: InertMessageSvc.h:36
precedence.RealTimeValue
Definition: precedence.py:74
Gaudi.Configuration
Definition: Configuration.py:1
precedence.CruncherSequence
Definition: precedence.py:166
ApplicationMgr
Definition: ApplicationMgr.h:57
precedence.UniformBooleanValue
Definition: precedence.py:113