| The Gaudi Framework v32r1 (f65d50dc)

ReadWhiteBoard.py
Go to the documentation of this file.
1
4
5 from Gaudi.Configuration import *
6 from Configurables import Gaudi__RootCnvSvc as RootCnvSvc, GaudiPersistency, StoreSnifferAlg
7 from Configurables import WriteHandleAlg, ReadHandleAlg, HiveWhiteBoard, HiveSlimEventLoopMgr, HiveReadAlgorithm, AvalancheSchedulerSvc, AlgResourcePool
8
9 # Output Levels
10 MessageSvc(OutputLevel=WARNING)
11 IncidentSvc(OutputLevel=INFO)
12 RootCnvSvc(OutputLevel=INFO)
13 SequencerTimerTool(OutputLevel=WARNING)
14
15 GaudiPersistency()
16
17 EventSelector(
18 OutputLevel=DEBUG,
19 PrintFreq=50,
20 FirstEvent=1,
21 Input=[
22 "DATAFILE='PFN:HandleWB_ROOTIO.dst' SVC='Gaudi::RootEvtSelector' OPT='READ'"
23 ])
24 FileCatalog(Catalogs=["xmlcatalog_file:HandleWB_ROOTIO.xml"])
25
26 product_name = "MyCollision"
27 product_name_full_path = "/Event/" + product_name
28
29 loader = HiveReadAlgorithm(
30 "Loader",
31 OutputLevel=INFO,
32 NeededResources=['ROOTIO', 'SOMETHINGELSE'],
33 Cardinality=2 # framework should be able to fix this config problem
34 )
35
36 sniffer = StoreSnifferAlg()
37 reader = ReadHandleAlg("Reader", Cardinality=4, OutputLevel=INFO)
38 reader.Input.Path = product_name
39
40 evtslots = 1
41 algoparallel = 10
42
43 whiteboard = HiveWhiteBoard("EventDataSvc", EventSlots=evtslots)
44
45 eventloopmgr = HiveSlimEventLoopMgr(OutputLevel=INFO)
46
47 # We must put the full path in this deprecated expression of dependencies.
48 # Using a controlflow for the output would be the way to go
49 scheduler = AvalancheSchedulerSvc(
50 ThreadPoolSize=algoparallel,
51 OutputLevel=WARNING,
52 DataLoaderAlg=loader.name(),
53 CheckDependencies=True)
54
55 # Application setup
56 ApplicationMgr(
57 TopAlg=[loader, sniffer, reader],
58 EvtMax=500,
59 HistogramPersistency="NONE",
60 ExtSvc=[whiteboard],
61 EventLoop=eventloopmgr)
StoreSnifferAlg
Small algorithm, which traverses the data store and prints a summary of the leafs accessed during the...
Definition: StoreSnifferAlg.cpp:27
Gaudi.Configuration
Definition: Configuration.py:1
Gaudi.Configuration.GaudiPersistency
Definition: Configuration.py:113
ApplicationMgr
The Application Manager class.
Definition: ApplicationMgr.h:45
SequencerTimerTool
Implements the time measurement inside a sequencer.
Definition: SequencerTimerTool.h:25
EventSelector
Definition of class EventSelector.
Definition: EventSelector.h:53
IncidentSvc
Default implementation of the IIncidentSvc interface.
Definition: IncidentSvc.h:38
MessageSvc
Definition: MessageSvc.h:30