The Gaudi Framework  v36r1 (3e2fb5a8)
AutoLoadUnmetDataInputs.py
Go to the documentation of this file.
1 #!/usr/bin/env gaudirun.py
2 
12 """
13 Find and attribute unmet data inputs as outputs to a Data Loader algorithm.
14 """
15 
16 from Gaudi.Configuration import *
17 from Configurables import HiveWhiteBoard, HiveSlimEventLoopMgr, AvalancheSchedulerSvc, CPUCruncher, CPUCrunchSvc
18 
19 # metaconfig
20 evtslots = 1
21 evtMax = 3
22 algosInFlight = 1
23 
24 whiteboard = HiveWhiteBoard(
25  "EventDataSvc", EventSlots=evtslots, OutputLevel=INFO)
26 
27 slimeventloopmgr = HiveSlimEventLoopMgr(SchedulerName="AvalancheSchedulerSvc")
28 
29 AvalancheSchedulerSvc(
30  ThreadPoolSize=algosInFlight, CheckDependencies=True, DataLoaderAlg="AlgA")
31 
32 CPUCrunchSvc(shortCalib=True)
33 
34 # Assemble the data flow graph
35 a1 = CPUCruncher("AlgA", Loader=True, OutputLevel=VERBOSE)
36 
37 a2 = CPUCruncher("AlgB", OutputLevel=VERBOSE)
38 a2.inpKeys = ['/Event/A1']
39 
40 a3 = CPUCruncher("AlgC", OutputLevel=VERBOSE)
41 a3.inpKeys = ['/Event/A2']
42 
43 for a in [a1, a2, a3]:
44  a.avgRuntime = .01
45 
47  EvtMax=evtMax,
48  EvtSel='NONE',
49  ExtSvc=[whiteboard],
50  EventLoop=slimeventloopmgr,
51  TopAlg=[a1, a2, a3],
52  MessageSvcType="InertMessageSvc",
53  OutputLevel=DEBUG)
Gaudi.Configuration
Definition: Configuration.py:1
ApplicationMgr
Definition: ApplicationMgr.h:57