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