| The Gaudi Framework v27r1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

CPUCruncher.py
Go to the documentation of this file.
1 #!/usr/bin/env gaudirun.py
2
3 from Gaudi.Configuration import *
4 from Configurables import HiveWhiteBoard, HiveEventLoopMgr, CPUCruncher
5
6 evtslots = 10
7
8 whiteboard = HiveWhiteBoard("EventDataSvc",
9 EventSlots = evtslots)
10
11 eventloopmgr = HiveEventLoopMgr(MaxEventsParallel = evtslots,
12 MaxAlgosParallel = 20,
13 NumThreads = 8,
14 AlgosDependencies = [[],['a1'],['a1'],['a2','a3']])
15
16 a1 = CPUCruncher("A1",
17 varRuntime=.1,
18 avgRuntime=.5,
19 shortCalib = True )
20 a1.outKeys = ['/Event/a1']
21
22 a2 = CPUCruncher("A2")
23 a2.inpKeys = ['/Event/a1']
24 a2.outKeys = ['/Event/a2']
25
26 a3 = CPUCruncher("A3")
27 a3.inpKeys = ['/Event/a1']
28 a3.outKeys = ['/Event/a3']
29
30 a4 = CPUCruncher("A4")
31 a4.inpKeys = ['/Event/a2','/Event/a3']
32 a4.outKeys = ['/Event/a4']
33
34 ApplicationMgr( EvtMax = 10,
35 EvtSel = 'NONE',
36 ExtSvc =[whiteboard],
37 EventLoop = eventloopmgr,
38 TopAlg = [a1,a2,a3,a4] )
CPUCruncher
A class that implements a search for prime numbers.
Definition: CPUCruncher.h:19
Gaudi.Configuration
Definition: Configuration.py:1
HiveWhiteBoard
Data service base class.
Definition: HiveWhiteBoard.cpp:87
ApplicationMgr
The Application Manager class.
Definition: ApplicationMgr.h:46
HiveEventLoopMgr
Definition: HiveEventLoopMgr.h:32