00001
00002
00003 __all__ = ['DybEventMgrConf', 'Configure']
00004
00005 class Configure:
00006 'Class to configure DybEventMgr'
00007
00008 def __init__(self,use_aes = True):
00009 'Set default configuration for DybEventMgr. Turns on the AES by default.'
00010
00011 from DybEventMgrConf import DybDataSvc
00012 dds = DybDataSvc("EventDataSvc")
00013 dds.ForceLeaves = True
00014 dds.UseAes = use_aes
00015
00016 from DybEventMgrConf import EvtStoreQuery
00017 EvtQ = EvtStoreQuery("EvtStoreQuery")
00018 EvtQ.UseAes = use_aes
00019
00020 from Gaudi.Configuration import ApplicationMgr
00021 theApp = ApplicationMgr()
00022
00023 theApp.SvcMapping = [
00024 'EvtDataSvc/EventDataArchiveSvc',
00025 'DybDataSvc/EventDataSvc',
00026
00027 "DetDataSvc/DetectorDataSvc",
00028 "HistogramSvc/HistogramDataSvc",
00029 "HbookCnv::PersSvc/HbookHistSvc",
00030 "RootHistCnv::PersSvc/RootHistSvc",
00031 "EvtPersistencySvc/EventPersistencySvc",
00032 "DetPersistencySvc/DetectorPersistencySvc",
00033 "HistogramPersistencySvc/HistogramPersistencySvc",
00034
00035 "EvtStoreQuery/EvtStoreQuery",
00036 ]
00037
00038 return
00039 pass
00040