Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v31r0 (aeb156f0)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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, 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 
16 
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
57  TopAlg=[loader, sniffer, reader],
58  EvtMax=500,
59  HistogramPersistency="NONE",
60  ExtSvc=[whiteboard],
61  EventLoop=eventloopmgr)
Small algorithm, which traverses the data store and prints a summary of the leafs accessed during the...
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:38