The Gaudi Framework  master (37c0b60a)
DataOnDemand.py
Go to the documentation of this file.
1 #!/usr/bin/env gaudirun.py
2 
15 from Configurables import DataCreator, GaudiTestSuiteCommonConf, MyDataAlgorithm
16 from Gaudi.Configuration import *
17 
18 GaudiTestSuiteCommonConf()
19 
20 mdigi = DataCreator("MuonDigits", Data="Rec/Muon/Digits")
21 mfoo = DataCreator("MuonFoos", Data="Rec/Muon/Foos")
22 mold = DataCreator("MuonOld", Data="Rec/Muon/Old")
23 dondem = DataOnDemandSvc(
24  UsePreceedingPath=True,
25  NodeMap={
26  "Rec": "DataObject",
27  "Rec/Muon": "DataObject",
28  "Rec/Foo": "DataObject",
29  },
30  AlgMap={mdigi.Data: mdigi, mfoo.Data: mfoo},
31  # obsolete property:
32  Algorithms=["DATA='%s' TYPE='%s'" % (mold.Data, mold.getFullName())],
33  # obsolete property:
34  Nodes=["DATA='Rec/Obsolete' TYPE='DataObject'"],
35  Dump=False,
36 )
37 
38 ApplicationMgr(TopAlg=[MyDataAlgorithm()], ExtSvc=[dondem], EvtMax=10, EvtSel="NONE")
39 
40 EventDataSvc().EnableFaultHandler = True
Gaudi.Configuration
Definition: Configuration.py:1
ApplicationMgr
Definition: ApplicationMgr.h:57
DataOnDemandSvc
Definition: DataOnDemandSvc.h:100