The Gaudi Framework  master (ff829712)
Loading...
Searching...
No Matches
Write630FwdCompat.py
Go to the documentation of this file.
14
15from Configurables import Gaudi__RootCnvSvc as RootCnvSvc
16from Configurables import GaudiPersistency
17from Gaudi.Configuration import *
18
19# Output setup
20# - DST
21dst = OutputStream("RootDst")
22# dst.ItemList = ["/Event#1",
23# "/Event/Collision_0#999",
24# "/Event/Collision_2#1",
25# "/Event/MyTracks#1",
26# ]
27dst.ItemList = ["/Event#999"]
28dst.Output = "DATAFILE='PFN:ROOTIO_630fwd.dst' SVC='Gaudi::RootCnvSvc' OPT='RECREATE'"
29
30# - MiniDST
31mini = OutputStream("RootMini")
32mini.ItemList = ["/Event#1"]
33mini.Output = "DATAFILE='PFN:ROOTIO_630fwd.mdst' SVC='Gaudi::RootCnvSvc' OPT='RECREATE'"
34
35# - File Summary Record
36fsr = RecordStream("FileRecords")
37fsr.ItemList = ["/FileRecords#999"]
38fsr.Output = dst.Output
39fsr.EvtDataSvc = FileRecordDataSvc()
40fsr.EvtConversionSvc = FileRecordPersistencySvc()
41
42FileCatalog(Catalogs=["xmlcatalog_file:ROOTIO_630fwd.xml"])
43
44RootCnvSvc(ROOT630ForwardCompatibility=True)
45
46GaudiPersistency()
47
48# Application setup
49app = ApplicationMgr(OutputLevel=INFO)
50# - I/O
51app.OutStream += [dst, mini, fsr]
52# - Algorithms
53app.TopAlg = ["WriteAlg", "ReadAlg"]
54# - Events
55app.EvtMax = 1000
56app.EvtSel = "NONE" # do not use any event input
57app.HistogramPersistency = "NONE"
The Application Manager class.
A FileRecordDataSvc is the base class for event services.
A small to stream Data I/O.
Extension of OutputStream to write run records after last event.