Пример #1
0
def getAddressRemappingSvc():
    """Return the AddressRemappingSvc configurable."""
    from AthenaCommon.AppMgr import ServiceMgr as svcMgr
    from SGComps.SGCompsConf import AddressRemappingSvc, ProxyProviderSvc
    pps = ProxyProviderSvc()
    ars = AddressRemappingSvc()
    svcMgr += pps
    svcMgr += ars
    if 'AddressRemappingSvc' not in pps.ProviderNames:
        pps.ProviderNames += ['AddressRemappingSvc']
    return ars
Пример #2
0
# for EventType
from ByteStreamCnvSvc.ByteStreamCnvSvcConf import ByteStreamCnvSvc
ServiceMgr += ByteStreamCnvSvc()

# Properties
ServiceMgr.EventSelector.ByteStreamInputSvc = "ByteStreamInputSvc"
ServiceMgr.EventPersistencySvc.CnvServices += ["ByteStreamCnvSvc"]

# ByteStreamAddressProviderSvc
from ByteStreamCnvSvcBase.ByteStreamCnvSvcBaseConf import ByteStreamAddressProviderSvc
ServiceMgr += ByteStreamAddressProviderSvc()

# proxy provider
from SGComps.SGCompsConf import ProxyProviderSvc
ServiceMgr += ProxyProviderSvc()
ServiceMgr.ProxyProviderSvc = svcMgr.ProxyProviderSvc
ServiceMgr.ProxyProviderSvc.ProviderNames += ["ByteStreamAddressProviderSvc"]

###############################
# from
# include( "ByteStreamCnvSvcBase/BSAddProvSvc_RIO_jobOptions.py" )
ServiceMgr.ByteStreamAddressProviderSvc.TypeNames += [
    "Trk::PixelClusterContainer/PixelOnlineClusters"
    #        "Trk::SCT_ClusterContainer/SCT_OnlineClusters",
    #        "Trk::TRT_DriftCircleContainer/TRT_DriftCircle"
]

###############################
# from
# include( "ByteStreamCnvSvcBase/BSAddProvSvc_RDO_jobOptions.py" )
Пример #3
0
#EventSelector.SkipEvents=262

# ByteStreamAddressProviderSvc
from ByteStreamCnvSvcBase.ByteStreamCnvSvcBaseConf import ByteStreamAddressProviderSvc
svcMgr += ByteStreamAddressProviderSvc()
ByteStreamAddressProviderSvc = svcMgr.ByteStreamAddressProviderSvc
ByteStreamAddressProviderSvc.TypeNames += ["HLT::HLTResult/HLTResult_L2"]
ByteStreamAddressProviderSvc.TypeNames += ["HLT::HLTResult/HLTResult_EF"]
ByteStreamAddressProviderSvc.TypeNames += ["HLT::HLTResult/HLTResult_HLT"]
# Address examples for DataScouting HLT results
#ByteStreamAddressProviderSvc.TypeNames += [ "HLT::HLTResult/DataScouting_03" ]
#ByteStreamAddressProviderSvc.TypeNames += [ "HLT::HLTResult/DataScouting_05" ]

# proxy provider
from SGComps.SGCompsConf import ProxyProviderSvc
svcMgr += ProxyProviderSvc()
ProxyProviderSvc = svcMgr.ProxyProviderSvc
ProxyProviderSvc.ProviderNames += ["ByteStreamAddressProviderSvc"]

from AthenaCommon.AlgSequence import AlgSequence
job = AlgSequence()
print job

from TrigBSExtraction.TrigBSExtractionConf import TrigBSExtraction
extr = TrigBSExtraction()
from TrigNavigation.TrigNavigationConfig import HLTNavigationOffline
extr.Navigation = HLTNavigationOffline()
# example for adding DataScouting results to decode
#extr.DSResultKeys += [ "DataScouting_03" ]
#extr.DSResultKeys += [ "DataScouting_05" ]
Пример #4
0
ByteStreamCnvSvc.InitCnvs += ["PixelRDO_Container", "PixelRDO_TB04_Collection"]
ByteStreamCnvSvc.InitCnvs += ["SCT_RDO_Container", "SCT_RDO_Collection"]
ByteStreamCnvSvc.InitCnvs += [
    "TRT_RDO_Container", "InDetRawDataCollection<TRT_RDORawData>"
]
ServiceMgr += ByteStreamCnvSvc
print ByteStreamCnvSvc

# and ByteStreamCnvSvc persistency service
ServiceMgr.EventPersistencySvc.CnvServices += ["ByteStreamCnvSvc"]
print ServiceMgr.EventPersistencySvc

# set up ByteStreamAddressProvider
from ByteStreamCnvSvcBase.ByteStreamCnvSvcBaseConf import ByteStreamAddressProviderSvc
ByteStreamAddressProviderSvc = ByteStreamAddressProviderSvc(
    "ByteStreamAddressProviderSvc")
ByteStreamAddressProviderSvc.TypeNames += ["PixelRDO_Container/PixelRDOs"]
ByteStreamAddressProviderSvc.TypeNames += ["SCT_RDO_Container/SCT_RDOs"]
ByteStreamAddressProviderSvc.TypeNames += ["TRT_RDO_Container/TRT_RDOs"]
ServiceMgr += ByteStreamAddressProviderSvc
print ByteStreamAddressProviderSvc

# load proxy provider service
from SGComps.SGCompsConf import ProxyProviderSvc
ProxyProviderSvc = ProxyProviderSvc()
ProxyProviderSvc.ProviderNames += ["ByteStreamAddressProviderSvc"]
ServiceMgr += ProxyProviderSvc
print ProxyProviderSvc

#