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