The Gaudi Framework  master (82fdf313)
Loading...
Searching...
No Matches
ReadAndWriteWhiteBoard.py
Go to the documentation of this file.
14
15from Configurables import AvalancheSchedulerSvc
16from Configurables import Gaudi__RootCnvSvc as RootCnvSvc
17from Configurables import Gaudi__TestSuite__ReadHandleAlg as ReadHandleAlg
18from Configurables import (
19 GaudiPersistency,
20 HiveReadAlgorithm,
21 HiveSlimEventLoopMgr,
22 HiveWhiteBoard,
23)
24from Gaudi.Configuration import *
25
26# Output Levels
27MessageSvc(OutputLevel=WARNING)
28IncidentSvc(OutputLevel=DEBUG)
29RootCnvSvc(OutputLevel=INFO)
30
31# Output setup
32# - DST
33dst = OutputStream("RootDst")
34dst.ItemList = ["/Event#999"]
35dst.Output = (
36 "DATAFILE='PFN:HandleWB_ROOTOutput.dst' SVC='Gaudi::RootCnvSvc' OPT='RECREATE'"
37)
38dst.NeededResources = ["ROOTIO"]
39
40GaudiPersistency()
41
43 OutputLevel=DEBUG,
44 PrintFreq=50,
45 FirstEvent=1,
46 Input=[
47 "DATAFILE='PFN:HandleWB_ROOTIO.dst' SVC='Gaudi::RootEvtSelector' OPT='READ'"
48 ],
49)
50FileCatalog(Catalogs=["xmlcatalog_file:HandleWB_ROOTIO.xml"])
51
52product_name = "MyCollision"
53product_name_full_path = "/Event/" + product_name
54
55loader = HiveReadAlgorithm("Loader", OutputLevel=INFO, NeededResources=["ROOTIO"])
56
57reader = ReadHandleAlg("Reader", OutputLevel=INFO, NeededResources=["ROOTIO"])
58reader.Input.Path = product_name
59
60evtslots = 6
61algoparallel = 20
62
63whiteboard = HiveWhiteBoard("EventDataSvc", EventSlots=evtslots)
64
65eventloopmgr = HiveSlimEventLoopMgr(OutputLevel=INFO)
66
67# We must put the full path in this deprecated expression of dependencies.
68# Using a controlflow for the output would be the way to go
70 ThreadPoolSize=algoparallel,
71 OutputLevel=WARNING,
72 CheckDependencies=True,
73 DataLoaderAlg=loader.name(),
74)
75
77 TopAlg=[loader, reader, dst],
78 EvtMax=44,
79 HistogramPersistency="NONE",
80 ExtSvc=[whiteboard],
81 EventLoop=eventloopmgr,
82)
The Application Manager class.
Definition of class EventSelector.
Data service base class.
Default implementation of the IIncidentSvc interface.
Definition IncidentSvc.h:35
A small to stream Data I/O.