DetFlags.detdescr.Muon_setOn() DetFlags.detdescr.ID_setOn() if hasattr(DetFlags,'BField_on'): DetFlags.BField_setOn() from TrkDetDescrSvc.AtlasTrackingGeometrySvc import AtlasTrackingGeometrySvc AtlasTrackingGeometrySvc = svcMgr.AtlasTrackingGeometrySvc #---------------------------------------------------------------------------------# # MT-specific code # Get number of processes and threads from AthenaCommon.ConcurrencyFlags import jobproperties as jp nThreads = jp.ConcurrencyFlags.NumThreads() nProc = jp.ConcurrencyFlags.NumProcs() if nThreads >=1 : from AthenaCommon.AlgScheduler import AlgScheduler AlgScheduler.OutputLevel( INFO ) AlgScheduler.ShowControlFlow( True ) AlgScheduler.ShowDataDependencies( True ) AlgScheduler.setDataLoaderAlg( 'SGInputLoader' ) # Support for the MT-MP hybrid mode if (nProc > 0) : from AthenaCommon.Logging import log as msg if (theApp.EvtMax == -1) : msg.fatal('EvtMax must be >0 for hybrid configuration') sys.exit(AthenaCommon.ExitCodes.CONFIGURATION_ERROR) if ( theApp.EvtMax % nProc != 0 ) : msg.warning('EvtMax[%s] is not divisible by nProcs[%s]: MP Workers will not process all requested events',theApp.EvtMax,nProc)
from AthenaServices.AthenaServicesConf import AthenaHiveEventLoopMgr svcMgr += AthenaHiveEventLoopMgr() # svcMgr.AthenaHiveEventLoopMgr.OutputLevel = DEBUG theApp.EventLoop = "AthenaHiveEventLoopMgr" numStores = 1 from StoreGate.StoreGateConf import SG__HiveMgrSvc svcMgr += SG__HiveMgrSvc("EventDataSvc") svcMgr.EventDataSvc.NSlots = numStores from AthenaCommon.AlgScheduler import AlgScheduler AlgScheduler.OutputLevel(DEBUG) AlgScheduler.ShowControlFlow(True) AlgScheduler.ShowDataDependencies(True) AlgScheduler.setThreadPoolSize(1) svcMgr += AthenaHiveEventLoopMgr() svcMgr.AthenaHiveEventLoopMgr.WhiteboardSvc = "EventDataSvc" svcMgr.AthenaHiveEventLoopMgr.OutputLevel = DEBUG from StoreGate.StoreGateConf import SG__HiveMgrSvc svcMgr += SG__HiveMgrSvc("EventDataSvc") svcMgr.EventDataSvc.NSlots = numStores svcMgr.EventDataSvc.OutputLevel = DEBUG from StoreGate.StoreGateConf import StoreGateSvc svcMgr += StoreGateSvc()