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