The Gaudi Framework  master (82fdf313)
Loading...
Searching...
No Matches
Write.py
Go to the documentation of this file.
14
15from Configurables import Gaudi__RootCnvSvc as RootCnvSvc
16from Configurables import GaudiPersistency
17from Configurables import GaudiTesting__EvenEventsFilter as EvenFilter
18from Configurables import GaudiTesting__OddEventsFilter as OddFilter
19from Configurables import GaudiTesting__PutDataObjectAlg as DataCreator
20from Gaudi.Configuration import *
21
22# create data in the TES
23creator = DataCreator("DataCreator")
24creator.Paths = ["A", "B", "C", "D"]
25
26# Filter algorithms
27oddEvts = OddFilter("OddEvents")
28evenEvts = EvenFilter("EvenEvents")
29
30# Output setup
31# - DST
32stream = OutputStream()
33stream.Output = (
34 "DATAFILE='PFN:ConditionalOutput.dst' SVC='Gaudi::RootCnvSvc' OPT='RECREATE'"
35)
36# stream.ItemList = ['A', 'B', 'C']
37stream.AlgDependentItemList[oddEvts.name()] = ["/Event/A#1", "/Event/B#1"]
38stream.AlgDependentItemList[evenEvts.name()] = ["/Event/A#1", "/Event/C#1"]
39
40FileCatalog(Catalogs=["xmlcatalog_file:ConditionalOutput.xml"])
41
42# Output Levels
43MessageSvc(OutputLevel=VERBOSE)
44IncidentSvc(OutputLevel=DEBUG)
45RootCnvSvc(OutputLevel=INFO)
46
47GaudiPersistency()
48
49# Application setup
51# - I/O
52app.OutStream += [stream]
53# - Algorithms
54app.TopAlg = [creator, oddEvts, evenEvts]
55# - Events
56app.EvtMax = 10
57app.EvtSel = "NONE" # do not use any event input
58app.HistogramPersistency = "NONE"
The Application Manager class.
Trivial Algorithm for test purposes.
Definition DataCreator.h:20
Default implementation of the IIncidentSvc interface.
Definition IncidentSvc.h:35
A small to stream Data I/O.