The Gaudi Framework
master (9f3f8895)
Toggle main menu visibility
Loading...
Searching...
No Matches
ReadAndWriteWhiteBoard.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
)
25
from
Gaudi.Configuration
import
*
26
27
# Output Levels
28
MessageSvc
(OutputLevel=WARNING)
29
IncidentSvc
(OutputLevel=DEBUG)
30
RootCnvSvc(OutputLevel=INFO)
31
32
# Output setup
33
# - DST
34
dst =
OutputStream
(
"RootDst"
)
35
dst.ItemList = [
"/Event#999"
]
36
dst.Output = (
37
"DATAFILE='PFN:HandleWB_ROOTOutput.dst' SVC='Gaudi::RootCnvSvc' OPT='RECREATE'"
38
)
39
dst.NeededResources = {
"ROOTIO"
: 1}
40
41
GaudiPersistency()
42
43
EventSelector
(
44
OutputLevel=DEBUG,
45
PrintFreq=50,
46
FirstEvent=1,
47
Input=[
48
"DATAFILE='PFN:HandleWB_ROOTIO.dst' SVC='Gaudi::RootEvtSelector' OPT='READ'"
49
],
50
)
51
FileCatalog(Catalogs=[
"xmlcatalog_file:HandleWB_ROOTIO.xml"
])
52
53
product_name =
"MyCollision"
54
product_name_full_path =
"/Event/"
+ product_name
55
56
loader =
HiveReadAlgorithm
(
"Loader"
, OutputLevel=INFO, NeededResources={
"ROOTIO"
: 1})
57
58
reader = ReadHandleAlg(
"Reader"
, OutputLevel=INFO, NeededResources={
"ROOTIO"
: 1})
59
reader.Input.Path = product_name
60
61
evtslots = 6
62
algoparallel = 20
63
64
whiteboard =
HiveWhiteBoard
(
"EventDataSvc"
, EventSlots=evtslots)
65
66
eventloopmgr =
HiveSlimEventLoopMgr
(OutputLevel=INFO)
67
68
# Configure the available resources
69
AlgResourcePool
(AvailableResources={
"ROOTIO"
: 1})
70
71
# We must put the full path in this deprecated expression of dependencies.
72
# Using a controlflow for the output would be the way to go
73
scheduler =
AvalancheSchedulerSvc
(
74
ThreadPoolSize=algoparallel,
75
OutputLevel=WARNING,
76
CheckDependencies=
True
,
77
DataLoaderAlg=loader.name(),
78
)
79
80
ApplicationMgr
(
81
TopAlg=[loader, reader, dst],
82
EvtMax=44,
83
HistogramPersistency=
"NONE"
,
84
ExtSvc=[whiteboard],
85
EventLoop=eventloopmgr,
86
)
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.cpp:39
HiveWhiteBoard
Data service base class.
Definition
HiveWhiteBoard.cpp:100
IncidentSvc
Default implementation of the IIncidentSvc interface.
Definition
IncidentSvc.h:35
MessageSvc
Definition
MessageSvc.h:36
OutputStream
A small to stream Data I/O.
Definition
OutputStream.h:37
Gaudi.Configuration
Definition
Configuration.py:1
GaudiHive
options
ReadAndWriteWhiteBoard.py
Generated on
for The Gaudi Framework by
1.17.0