The Gaudi Framework
master (5c735ca6)
Toggle main menu visibility
Loading...
Searching...
No Matches
WriteWhiteBoard.py
Go to the documentation of this file.
1
14
15
from
Configurables
import
AlgResourcePool, AvalancheSchedulerSvc
16
from
Configurables
import
Gaudi__RootCnvSvc
as
RootCnvSvc
17
from
Configurables
import
Gaudi__TestSuite__WriteHandleAlg
as
WriteHandleAlg
18
from
Configurables
import
GaudiPersistency, HiveSlimEventLoopMgr, HiveWhiteBoard
19
from
Gaudi.Configuration
import
*
20
21
# Output setup
22
# - DST
23
dst =
OutputStream
(
"RootDst"
)
24
25
dst.ItemList = [
"/Event#999"
]
26
dst.Output = (
27
"DATAFILE='PFN:HandleWB_ROOTIO.dst' SVC='Gaudi::RootCnvSvc' OPT='RECREATE'"
28
)
29
30
# - MiniDST
31
mini =
OutputStream
(
"RootMini"
)
32
mini.ItemList = [
"/Event#1"
]
33
mini.Output = (
34
"DATAFILE='PFN:HandleWB_ROOTIO.mdst' SVC='Gaudi::RootCnvSvc' OPT='RECREATE'"
35
)
36
mini.OutputLevel = VERBOSE
37
38
# - File Summary Record
39
fsr =
RecordStream
(
"FileRecords"
)
40
fsr.ItemList = [
"/FileRecords#999"
]
41
fsr.Output = dst.Output
42
fsr.EvtDataSvc =
FileRecordDataSvc
()
43
fsr.EvtConversionSvc = FileRecordPersistencySvc()
44
45
FileCatalog(Catalogs=[
"xmlcatalog_file:HandleWB_ROOTIO.xml"
])
46
47
# Output Levels
48
MessageSvc
(OutputLevel=WARNING)
49
IncidentSvc
(OutputLevel=DEBUG)
50
RootCnvSvc(OutputLevel=INFO)
51
AlgResourcePool
(OutputLevel=DEBUG)
52
GaudiPersistency()
53
54
product_name =
"MyCollision"
55
product_name_full_path =
"/Event/"
+ product_name
56
57
writer = WriteHandleAlg(
"Writer"
, UseHandle=
True
, Cardinality=1, OutputLevel=WARNING)
58
59
writer.Output.Path =
"/Event/"
+ product_name
60
61
evtslots = 1
62
algoparallel = 1
63
64
whiteboard =
HiveWhiteBoard
(
"EventDataSvc"
, EventSlots=evtslots)
65
66
eventloopmgr =
HiveSlimEventLoopMgr
(OutputLevel=INFO)
67
68
# We must put the full path in this deprecated expression of dependencies.
69
# Using a controlflow for the output would be the way to go
70
scheduler =
AvalancheSchedulerSvc
(ThreadPoolSize=algoparallel, OutputLevel=INFO)
71
72
# Application setup
73
ApplicationMgr
(
74
TopAlg=[writer, dst],
75
EvtMax=500,
76
EvtSel=
"NONE"
,
# do not use any event input
77
HistogramPersistency=
"NONE"
,
78
ExtSvc=[whiteboard],
79
EventLoop=eventloopmgr,
80
)
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
FileRecordDataSvc
A FileRecordDataSvc is the base class for event services.
Definition
FileRecordDataSvc.cpp:48
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
OutputStream
A small to stream Data I/O.
Definition
OutputStream.h:37
RecordStream
Extension of OutputStream to write run records after last event.
Definition
RecordStream.h:22
Gaudi.Configuration
Definition
Configuration.py:1
GaudiHive
options
WriteWhiteBoard.py
Generated on
for The Gaudi Framework by
1.17.0