The Gaudi Framework
master (2e57474e)
Toggle main menu visibility
Loading...
Searching...
No Matches
WriteAndReadHandleError.py
Go to the documentation of this file.
1
14
15
from
Configurables
import
Gaudi__RootCnvSvc
as
RootCnvSvc
16
from
Configurables
import
Gaudi__TestSuite__ReadHandleAlg
as
ReadHandleAlg
17
from
Configurables
import
Gaudi__TestSuite__WriteHandleAlg
as
WriteHandleAlg
18
from
Configurables
import
GaudiPersistency
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:Handle_ROOTIO_err.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:Handle_ROOTIO_err.mdst' SVC='Gaudi::RootCnvSvc' OPT='RECREATE'"
35
)
36
37
# - File Summary Record
38
fsr =
RecordStream
(
"FileRecords"
)
39
fsr.ItemList = [
"/FileRecords#999"
]
40
fsr.Output = dst.Output
41
fsr.EvtDataSvc =
FileRecordDataSvc
()
42
fsr.EvtConversionSvc = FileRecordPersistencySvc()
43
44
FileCatalog(Catalogs=[
"xmlcatalog_file:Handle_ROOTIO_err.xml"
])
45
46
# Output Levels
47
MessageSvc
(OutputLevel=INFO)
48
IncidentSvc
(OutputLevel=INFO)
49
RootCnvSvc(OutputLevel=INFO)
50
51
GaudiPersistency()
52
53
writer = WriteHandleAlg(
"Writer"
, UseHandle=
True
, OutputLevel=DEBUG)
54
writer.Output.Path =
"/Event/MyCollision"
55
56
reader = ReadHandleAlg(
"Reader"
, OutputLevel=DEBUG)
57
reader.Input.Path =
"MyCollisionXOPSX"
# <-- Mistake
58
59
# Application setup
60
app =
ApplicationMgr
()
61
# - I/O
62
app.OutStream += [dst, mini, fsr]
63
# - Algorithms
64
app.TopAlg = [writer, reader]
65
# - Events
66
app.EvtMax = 10
67
app.EvtSel =
"NONE"
# do not use any event input
68
app.HistogramPersistency =
"NONE"
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
WriteAndReadHandleError.py
Generated on
for The Gaudi Framework by
1.17.0