def _setupAtlasUnixStandardJob(): from .AppMgr import theApp from .AppMgr import ServiceMgr as svcMgr ## basic Gaudi services import GaudiSvc.GaudiSvcConf as GaudiSvcConf svcMgr += GaudiSvcConf.IncidentSvc() svcMgr += GaudiSvcConf.EvtPersistencySvc("EventPersistencySvc") svcMgr += GaudiSvcConf.HistogramSvc("HistogramDataSvc") svcMgr += GaudiSvcConf.NTupleSvc() # ToolSvc is already added in AppMgr.py. svcMgr += GaudiSvcConf.RndmGenSvc() svcMgr += GaudiSvcConf.ChronoStatSvc() import GaudiAud.GaudiAudConf as GaudiAudConf svcMgr.AuditorSvc += GaudiAudConf.AlgContextAuditor() # make the message service available # from GaudiSvc.GaudiSvcConf import MessageSvc svcMgr.MessageSvc = theApp.service("MessageSvc") # already instantiated # StoreGate services configuration import StoreGate.StoreGateConf as StoreGateConf svcMgr += StoreGateConf.StoreGateSvc() svcMgr += StoreGateConf.StoreGateSvc("DetectorStore") svcMgr += StoreGateConf.StoreGateSvc("HistoryStore") svcMgr += StoreGateConf.StoreGateSvc("ConditionStore") #ClassIDSvc configuration import CLIDComps.CLIDCompsConf as CLIDCompsConf svcMgr += CLIDCompsConf.ClassIDSvc() svcMgr.ClassIDSvc.CLIDDBFiles += ["Gaudi_clid.db"] #Ignore certain Service loops theApp.InitializationLoopCheck = False # dictionary services # the dict loader import AthenaServices.AthenaServicesConf as AthenaServicesConf if not hasattr(svcMgr, 'AthDictLoaderSvc'): svcMgr += AthenaServicesConf.AthDictLoaderSvc() theApp.CreateSvc += [svcMgr.AthDictLoaderSvc.getFullJobOptName()] # add-in a service to handle core-dumps if not hasattr(svcMgr, 'CoreDumpSvc'): svcMgr += AthenaServicesConf.CoreDumpSvc() theApp.CreateSvc += [svcMgr.CoreDumpSvc.getFullJobOptName()]
from AthenaPoolTest.AthenaPoolTestConf import AthenaPoolTestDataReader topSequence += AthenaPoolTestDataReader("AthenaPoolTestDataReader") #-------------------------------------------------------------- # Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL ) #-------------------------------------------------------------- svcMgr.MessageSvc.OutputLevel = WARNING svcMgr.MessageSvc.debugLimit = 100000 #rds ClassIDSvc = Service( "ClassIDSvc" ) #rds ClassIDSvc.OutputLevel = 3 AthenaPoolTestDataReader.OutputLevel = DEBUG #svcMgr.StoreGateSvc = Service( "StoreGateSvc" ) #svcMgr.StoreGateSvc.Dump = TRUE from AthenaServices import AthenaServicesConf AthenaEventLoopMgr = AthenaServicesConf.AthenaEventLoopMgr() AthenaEventLoopMgr.OutputLevel = INFO # Turn on the tree cache for the CollectionTree - tree cache only # works for one tree. And set tree cache size - default is 10 MB (10 000 000) svcMgr.AthenaPoolCnvSvc.InputPoolAttributes += [ "DatabaseName = '*'; ContainerName = 'CollectionTree'; TREE_CACHE = '100000'" ] # Set number of events for learning before turning on cache - default is 5 svcMgr.AthenaPoolCnvSvc.InputPoolAttributes += [ "DatabaseName = '*'; TREE_CACHE_LEARN_EVENTS = '6'" ] # Print out values - must have PoolSvc in info mode svcMgr.PoolSvc.OutputLevel = INFO svcMgr.AthenaPoolCnvSvc.InputPoolAttributes += [
def _setupAtlasUnixStandardJob(): from AppMgr import theApp from AppMgr import ServiceMgr as svcMgr import SystemOfUnits as Units from Constants import VERBOSE, DEBUG, INFO, ERROR ## basic Gaudi services import GaudiSvc.GaudiSvcConf as GaudiSvcConf svcMgr += GaudiSvcConf.IncidentSvc() svcMgr += GaudiSvcConf.EvtPersistencySvc( "EventPersistencySvc" ) svcMgr += GaudiSvcConf.HistogramSvc( "HistogramDataSvc" ) svcMgr += GaudiSvcConf.NTupleSvc() svcMgr += GaudiSvcConf.ToolSvc() svcMgr += GaudiSvcConf.RndmGenSvc() svcMgr += GaudiSvcConf.ChronoStatSvc() import GaudiAud.GaudiAudConf as GaudiAudConf svcMgr.AuditorSvc += GaudiAudConf.AlgContextAuditor() # make sure StatusCodeSvc messages are always printed svcMgr += GaudiSvcConf.StatusCodeSvc() svcMgr.StatusCodeSvc.OutputLevel = INFO svcMgr.StatusCodeSvc.Filter += [ "Reflex::NewDelFunctionsT<StatusCode>::delete_T(void*)", "ROOT::Reflex::NewDelFunctionsT<StatusCode>::delete_T(void*)", ] # make sure StatusCodes are always checked svcMgr.StatusCodeSvc.AbortOnError=True # make the message service available # from GaudiSvc.GaudiSvcConf import MessageSvc svcMgr.MessageSvc = theApp.service( "MessageSvc" ) # already instantiated # StoreGate services configuration import StoreGate.StoreGateConf as StoreGateConf svcMgr += StoreGateConf.StoreGateSvc() svcMgr += StoreGateConf.StoreGateSvc("DetectorStore") svcMgr += StoreGateConf.StoreGateSvc("HistoryStore") #ClassIDSvc configuration import CLIDComps.CLIDCompsConf as CLIDCompsConf svcMgr += CLIDCompsConf.ClassIDSvc() svcMgr.ClassIDSvc.CLIDDBFiles += [ "Gaudi_clid.db" ] #Ignore certain Service loops try: theApp.InitializationLoopCheck = False ## theApp.LoopCheckIgnore += [ ## "StoreGateSvc", "DetectorStore", ## "PerfMonSvc", "AuditorSvc", "GeoModelSvc", ## "IOVSvc" ## ] except AttributeError: # gaudi v19r9... were art thou ? pass # dictionary services # the dict loader import AthenaServices.AthenaServicesConf as AthenaServicesConf if not hasattr(svcMgr, 'AthDictLoaderSvc'): svcMgr += AthenaServicesConf.AthDictLoaderSvc() theApp.CreateSvc += [svcMgr.AthDictLoaderSvc.getFullJobOptName()] # the dict checker if not hasattr(svcMgr, 'AthenaSealSvc'): svcMgr += AthenaServicesConf.AthenaSealSvc() theApp.CreateSvc += [svcMgr.AthenaSealSvc.getFullJobOptName()] # add-in a service to handle core-dumps if not hasattr(svcMgr, 'CoreDumpSvc'): svcMgr += AthenaServicesConf.CoreDumpSvc() theApp.CreateSvc += [ svcMgr.CoreDumpSvc.getFullJobOptName() ]
#-------------------------------------------------------------- # Algorithms #-------------------------------------------------------------- from AthenaCommon import CfgGetter topSequence += CfgGetter.getAlgorithm("CopyMcEventCollection") topSequence += CfgGetter.getAlgorithm("CopyTimings") #-------------------------------------------------------------- # Athena EventLoop Manager #-------------------------------------------------------------- from AthenaCommon.ConcurrencyFlags import jobproperties as jp nThreads = jp.ConcurrencyFlags.NumThreads() from AthenaServices import AthenaServicesConf if nThreads > 0: EventLoop = AthenaServicesConf.AthenaHiveEventLoopMgr() else: EventLoop = AthenaServicesConf.AthenaEventLoopMgr() EventLoop.UseSecondaryEventNumber = True EventLoop.OutputLevel = INFO svcMgr += EventLoop #-------------------------------------------------------------- # DEBUG messaging #-------------------------------------------------------------- svcMgr.ProxyProviderSvc.OutputLevel = DEBUG svcMgr.AthenaPoolAddressProviderSvcPrimary.OutputLevel = DEBUG svcMgr.AthenaPoolAddressProviderSvcSecondary.OutputLevel = DEBUG svcMgr.DoubleEventSelector.OutputLevel = DEBUG #--------------------------------------------------------------