The Gaudi Framework  master (e68eea06)
Loading...
Searching...
No Matches
WriteAndReadHandleError.py
Go to the documentation of this file.
14
15from Configurables import Gaudi__RootCnvSvc as RootCnvSvc
16from Configurables import Gaudi__TestSuite__ReadHandleAlg as ReadHandleAlg
17from Configurables import Gaudi__TestSuite__WriteHandleAlg as WriteHandleAlg
18from Configurables import GaudiPersistency
19from Gaudi.Configuration import *
20
21# Output setup
22# - DST
23dst = OutputStream("RootDst")
24
25dst.ItemList = ["/Event#999"]
26dst.Output = (
27 "DATAFILE='PFN:Handle_ROOTIO_err.dst' SVC='Gaudi::RootCnvSvc' OPT='RECREATE'"
28)
29
30# - MiniDST
31mini = OutputStream("RootMini")
32mini.ItemList = ["/Event#1"]
33mini.Output = (
34 "DATAFILE='PFN:Handle_ROOTIO_err.mdst' SVC='Gaudi::RootCnvSvc' OPT='RECREATE'"
35)
36
37# - File Summary Record
38fsr = RecordStream("FileRecords")
39fsr.ItemList = ["/FileRecords#999"]
40fsr.Output = dst.Output
41fsr.EvtDataSvc = FileRecordDataSvc()
42fsr.EvtConversionSvc = FileRecordPersistencySvc()
43
44FileCatalog(Catalogs=["xmlcatalog_file:Handle_ROOTIO_err.xml"])
45
46# Output Levels
47MessageSvc(OutputLevel=INFO)
48IncidentSvc(OutputLevel=INFO)
49RootCnvSvc(OutputLevel=INFO)
50
51GaudiPersistency()
52
53writer = WriteHandleAlg("Writer", UseHandle=True, OutputLevel=DEBUG)
54writer.Output.Path = "/Event/MyCollision"
55
56reader = ReadHandleAlg("Reader", OutputLevel=DEBUG)
57reader.Input.Path = "MyCollisionXOPSX" # <-- Mistake
58
59# Application setup
61# - I/O
62app.OutStream += [dst, mini, fsr]
63# - Algorithms
64app.TopAlg = [writer, reader]
65# - Events
66app.EvtMax = 10
67app.EvtSel = "NONE" # do not use any event input
68app.HistogramPersistency = "NONE"
The Application Manager class.
A FileRecordDataSvc is the base class for event services.
Default implementation of the IIncidentSvc interface.
Definition IncidentSvc.h:35
A small to stream Data I/O.
Extension of OutputStream to write run records after last event.