The Gaudi Framework
v41r0 (bdbe7744)
Toggle main menu visibility
Loading...
Searching...
No Matches
Write.py
Go to the documentation of this file.
1
14
15
from
Configurables
import
Gaudi__RootCnvSvc
as
RootCnvSvc
16
from
Configurables
import
GaudiPersistency
17
from
Gaudi.Configuration
import
*
18
19
# Output setup
20
# - DST
21
dst =
OutputStream
(
"RootDst"
)
22
# dst.ItemList = ["/Event#1",
23
# "/Event/Collision_0#999",
24
# "/Event/Collision_2#1",
25
# "/Event/MyTracks#1",
26
# ]
27
dst.ItemList = [
"/Event#999"
]
28
dst.Output =
"DATAFILE='PFN:ROOTIO.dst' SVC='Gaudi::RootCnvSvc' OPT='RECREATE'"
29
30
# - MiniDST
31
mini =
OutputStream
(
"RootMini"
)
32
mini.ItemList = [
"/Event#1"
]
33
mini.Output =
"DATAFILE='PFN:ROOTIO.mdst' SVC='Gaudi::RootCnvSvc' OPT='RECREATE'"
34
35
# - File Summary Record
36
fsr =
RecordStream
(
"FileRecords"
)
37
fsr.ItemList = [
"/FileRecords#999"
]
38
fsr.Output = dst.Output
39
fsr.EvtDataSvc =
FileRecordDataSvc
()
40
fsr.EvtConversionSvc = FileRecordPersistencySvc()
41
42
FileCatalog(Catalogs=[
"xmlcatalog_file:ROOTIO.xml"
])
43
44
# Output Levels
45
MessageSvc
(OutputLevel=VERBOSE)
46
IncidentSvc
(OutputLevel=DEBUG)
47
RootCnvSvc(OutputLevel=INFO)
48
AlgExecStateSvc
(OutputLevel=INFO)
49
50
GaudiPersistency()
51
52
# Application setup
53
app =
ApplicationMgr
()
54
# - I/O
55
app.OutStream += [dst, mini, fsr]
56
# - Algorithms
57
app.TopAlg = [
"WriteAlg"
,
"ReadAlg"
]
58
# - Events
59
app.EvtMax = 1000
60
app.EvtSel =
"NONE"
# do not use any event input
61
app.HistogramPersistency =
"NONE"
AlgExecStateSvc
A service that keeps track of the execution state of Algorithm.
Definition
AlgExecStateSvc.h:27
ApplicationMgr
The Application Manager class.
Definition
ApplicationMgr.h:54
FileRecordDataSvc
A FileRecordDataSvc is the base class for event services.
Definition
FileRecordDataSvc.cpp:48
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
GaudiTestSuite
options
ROOT_IO
Write.py
Generated on
for The Gaudi Framework by
1.17.0