The Gaudi Framework  v33r1 (b1225454)
AtlasMCRecoScenario.py
Go to the documentation of this file.
1 #!/usr/bin/env gaudirun.py
2 
12 
13 from Gaudi.Configuration import *
14 from Configurables import HiveWhiteBoard, HiveSlimEventLoopMgr, AvalancheSchedulerSvc, AlgResourcePool, CPUCrunchSvc
15 
16 # convenience machinery for assembling custom graphs of algorithm precedence rules (w/ CPUCrunchers as algorithms)
17 from GaudiHive import precedence
18 
19 # metaconfig
20 evtslots = 1
21 evtMax = 1
22 algosInFlight = 4
23 
24 InertMessageSvc(OutputLevel=INFO)
25 
26 whiteboard = HiveWhiteBoard(
27  "EventDataSvc", EventSlots=evtslots, OutputLevel=INFO)
28 
29 slimeventloopmgr = HiveSlimEventLoopMgr(
30  SchedulerName="AvalancheSchedulerSvc", OutputLevel=DEBUG)
31 
32 scheduler = AvalancheSchedulerSvc(
33  ThreadPoolSize=algosInFlight, OutputLevel=DEBUG)
34 
35 AlgResourcePool(OutputLevel=DEBUG)
36 
37 CPUCrunchSvc(shortCalib=True)
38 
39 #timeValue = precedence.UniformTimeValue(avgRuntime=0.2)
40 timeValue = precedence.RealTimeValue(
41  path="atlas/mcreco/averageTiming.mcreco.TriggerOff.json", defaultTime=0.0)
42 ifIObound = precedence.UniformBooleanValue(False)
43 
44 sequencer = precedence.CruncherSequence(
45  timeValue,
46  ifIObound,
47  sleepFraction=0.0,
48  cfgPath="atlas/mcreco/cf.mcreco.TriggerOff.graphml",
49  dfgPath="atlas/mcreco/df.mcreco.TriggerOff.3rdEvent.graphml",
50  topSequencer='AthSequencer/AthMasterSeq').get()
51 
53  EvtMax=evtMax,
54  EvtSel='NONE',
55  ExtSvc=[whiteboard],
56  EventLoop=slimeventloopmgr,
57  TopAlg=[sequencer],
58  MessageSvcType="InertMessageSvc",
59  OutputLevel=DEBUG)
Thread safe extension to the standard MessageSvc.
auto get(const Handle &handle, const Algo &, const EventContext &) -> decltype(details::deref(handle.get()))
The Application Manager class.