The Gaudi Framework
master (1a7a3838)
Toggle main menu visibility
Loading...
Searching...
No Matches
ReadWhiteBoard.py
Go to the documentation of this file.
1
14
15
from
Configurables
import
AvalancheSchedulerSvc
16
from
Configurables
import
Gaudi__RootCnvSvc
as
RootCnvSvc
17
from
Configurables
import
Gaudi__TestSuite__ReadHandleAlg
as
ReadHandleAlg
18
from
Configurables
import
(
19
AlgResourcePool,
20
GaudiPersistency,
21
HiveReadAlgorithm,
22
HiveSlimEventLoopMgr,
23
HiveWhiteBoard,
24
StoreSnifferAlg,
25
)
26
from
Gaudi.Configuration
import
*
27
28
# Output Levels
29
MessageSvc
(OutputLevel=WARNING)
30
IncidentSvc
(OutputLevel=INFO)
31
RootCnvSvc(OutputLevel=INFO)
32
33
GaudiPersistency()
34
35
EventSelector
(
36
OutputLevel=DEBUG,
37
PrintFreq=50,
38
FirstEvent=1,
39
Input=[
40
"DATAFILE='PFN:HandleWB_ROOTIO.dst' SVC='Gaudi::RootEvtSelector' OPT='READ'"
41
],
42
)
43
FileCatalog(Catalogs=[
"xmlcatalog_file:HandleWB_ROOTIO.xml"
])
44
45
product_name =
"MyCollision"
46
product_name_full_path =
"/Event/"
+ product_name
47
48
loader =
HiveReadAlgorithm
(
49
"Loader"
,
50
OutputLevel=INFO,
51
NeededResources={
"ROOTIO"
: 1,
"SOMETHINGELSE"
: 1},
52
Cardinality=2,
# framework should be able to fix this config problem
53
)
54
55
sniffer =
StoreSnifferAlg
()
56
reader = ReadHandleAlg(
"Reader"
, Cardinality=4, OutputLevel=INFO)
57
reader.Input.Path = product_name
58
59
evtslots = 1
60
algoparallel = 10
61
62
whiteboard =
HiveWhiteBoard
(
"EventDataSvc"
, EventSlots=evtslots)
63
64
eventloopmgr =
HiveSlimEventLoopMgr
(OutputLevel=INFO)
65
66
# Configure the available resources
67
AlgResourcePool
(AvailableResources={
"ROOTIO"
: 1,
"SOMETHINGELSE"
: 1})
68
69
# We must put the full path in this deprecated expression of dependencies.
70
# Using a controlflow for the output would be the way to go
71
scheduler =
AvalancheSchedulerSvc
(
72
ThreadPoolSize=algoparallel,
73
OutputLevel=WARNING,
74
DataLoaderAlg=loader.name(),
75
CheckDependencies=
True
,
76
)
77
78
# Application setup
79
ApplicationMgr
(
80
TopAlg=[loader, sniffer, reader],
81
EvtMax=500,
82
HistogramPersistency=
"NONE"
,
83
ExtSvc=[whiteboard],
84
EventLoop=eventloopmgr,
85
)
AlgResourcePool
The AlgResourcePool is a concrete implementation of the IAlgResourcePool interface.
Definition
AlgResourcePool.h:35
ApplicationMgr
The Application Manager class.
Definition
ApplicationMgr.h:54
AvalancheSchedulerSvc
Definition
AvalancheSchedulerSvc.h:114
EventSelector
Definition of class EventSelector.
Definition
EventSelector.h:41
HiveReadAlgorithm
Definition
HiveReadAlgorithm.cpp:15
HiveSlimEventLoopMgr
Definition
HiveSlimEventLoopMgr.h:31
HiveWhiteBoard
Data service base class.
Definition
HiveWhiteBoard.cpp:129
IncidentSvc
Default implementation of the IIncidentSvc interface.
Definition
IncidentSvc.h:35
MessageSvc
Definition
MessageSvc.h:36
StoreSnifferAlg
Small algorithm, which traverses the data store and prints a summary of the leafs accessed during the...
Definition
StoreSnifferAlg.cpp:39
Gaudi.Configuration
Definition
Configuration.py:1
GaudiHive
options
ReadWhiteBoard.py
Generated on
for The Gaudi Framework by
1.17.0