| The Gaudi Framework v32r1 (f65d50dc)

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