16 from Configurables
import Gaudi__RootCnvSvc
as RootCnvSvc, GaudiPersistency
17 from Configurables
import WriteHandleAlg, ReadHandleAlg, HiveWhiteBoard, HiveSlimEventLoopMgr, HiveReadAlgorithm, AvalancheSchedulerSvc, AlgResourcePool
22 RootCnvSvc(OutputLevel=INFO)
28 dst.ItemList = [
"/Event#999"]
29 dst.Output =
"DATAFILE='PFN:HandleWB_ROOTOutput.dst' SVC='Gaudi::RootCnvSvc' OPT='RECREATE'"
30 dst.NeededResources = [
'ROOTIO']
39 "DATAFILE='PFN:HandleWB_ROOTIO.dst' SVC='Gaudi::RootEvtSelector' OPT='READ'"
41 FileCatalog(Catalogs=[
"xmlcatalog_file:HandleWB_ROOTIO.xml"])
43 product_name =
"MyCollision"
44 product_name_full_path =
"/Event/" + product_name
46 loader = HiveReadAlgorithm(
47 "Loader", OutputLevel=INFO, NeededResources=[
'ROOTIO'])
49 reader = ReadHandleAlg(
"Reader", OutputLevel=INFO, NeededResources=[
"ROOTIO"])
50 reader.Input.Path = product_name
55 whiteboard = HiveWhiteBoard(
"EventDataSvc", EventSlots=evtslots)
57 eventloopmgr = HiveSlimEventLoopMgr(OutputLevel=INFO)
61 scheduler = AvalancheSchedulerSvc(
62 ThreadPoolSize=algoparallel,
64 CheckDependencies=
True,
65 DataLoaderAlg=loader.name())
68 TopAlg=[loader, reader, dst],
70 HistogramPersistency=
"NONE",
72 EventLoop=eventloopmgr)