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