The Gaudi Framework  master (fb0007c6)
Loading...
Searching...
No Matches
ReadWhiteBoard.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 StoreSnifferAlg,
24)
25from Gaudi.Configuration import *
26
27# Output Levels
28MessageSvc(OutputLevel=WARNING)
29IncidentSvc(OutputLevel=INFO)
30RootCnvSvc(OutputLevel=INFO)
31
32GaudiPersistency()
33
35 OutputLevel=DEBUG,
36 PrintFreq=50,
37 FirstEvent=1,
38 Input=[
39 "DATAFILE='PFN:HandleWB_ROOTIO.dst' SVC='Gaudi::RootEvtSelector' OPT='READ'"
40 ],
41)
42FileCatalog(Catalogs=["xmlcatalog_file:HandleWB_ROOTIO.xml"])
43
44product_name = "MyCollision"
45product_name_full_path = "/Event/" + product_name
46
48 "Loader",
49 OutputLevel=INFO,
50 NeededResources=["ROOTIO", "SOMETHINGELSE"],
51 Cardinality=2, # framework should be able to fix this config problem
52)
53
54sniffer = StoreSnifferAlg()
55reader = ReadHandleAlg("Reader", Cardinality=4, OutputLevel=INFO)
56reader.Input.Path = product_name
57
58evtslots = 1
59algoparallel = 10
60
61whiteboard = HiveWhiteBoard("EventDataSvc", EventSlots=evtslots)
62
63eventloopmgr = HiveSlimEventLoopMgr(OutputLevel=INFO)
64
65# We must put the full path in this deprecated expression of dependencies.
66# Using a controlflow for the output would be the way to go
68 ThreadPoolSize=algoparallel,
69 OutputLevel=WARNING,
70 DataLoaderAlg=loader.name(),
71 CheckDependencies=True,
72)
73
74# Application setup
76 TopAlg=[loader, sniffer, reader],
77 EvtMax=500,
78 HistogramPersistency="NONE",
79 ExtSvc=[whiteboard],
80 EventLoop=eventloopmgr,
81)
The Application Manager class.
Definition of class EventSelector.
Data service base class.
Default implementation of the IIncidentSvc interface.
Definition IncidentSvc.h:35
Small algorithm, which traverses the data store and prints a summary of the leafs accessed during the...