The Gaudi Framework  master (29688f1e)
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 AlgResourcePool,
20 GaudiPersistency,
21 HiveReadAlgorithm,
22 HiveSlimEventLoopMgr,
23 HiveWhiteBoard,
24 StoreSnifferAlg,
25)
26from Gaudi.Configuration import *
27
28# Output Levels
29MessageSvc(OutputLevel=WARNING)
30IncidentSvc(OutputLevel=INFO)
31RootCnvSvc(OutputLevel=INFO)
32
33GaudiPersistency()
34
36 OutputLevel=DEBUG,
37 PrintFreq=50,
38 FirstEvent=1,
39 Input=[
40 "DATAFILE='PFN:HandleWB_ROOTIO.dst' SVC='Gaudi::RootEvtSelector' OPT='READ'"
41 ],
42)
43FileCatalog(Catalogs=["xmlcatalog_file:HandleWB_ROOTIO.xml"])
44
45product_name = "MyCollision"
46product_name_full_path = "/Event/" + product_name
47
49 "Loader",
50 OutputLevel=INFO,
51 NeededResources={"ROOTIO": 1, "SOMETHINGELSE": 1},
52 Cardinality=2, # framework should be able to fix this config problem
53)
54
55sniffer = StoreSnifferAlg()
56reader = ReadHandleAlg("Reader", Cardinality=4, OutputLevel=INFO)
57reader.Input.Path = product_name
58
59evtslots = 1
60algoparallel = 10
61
62whiteboard = HiveWhiteBoard("EventDataSvc", EventSlots=evtslots)
63
64eventloopmgr = HiveSlimEventLoopMgr(OutputLevel=INFO)
65
66# Configure the available resources
67AlgResourcePool(AvailableResources={"ROOTIO": 1, "SOMETHINGELSE": 1})
68
69# We must put the full path in this deprecated expression of dependencies.
70# Using a controlflow for the output would be the way to go
72 ThreadPoolSize=algoparallel,
73 OutputLevel=WARNING,
74 DataLoaderAlg=loader.name(),
75 CheckDependencies=True,
76)
77
78# Application setup
80 TopAlg=[loader, sniffer, reader],
81 EvtMax=500,
82 HistogramPersistency="NONE",
83 ExtSvc=[whiteboard],
84 EventLoop=eventloopmgr,
85)
The AlgResourcePool is a concrete implementation of the IAlgResourcePool interface.
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...