ATLAS Offline Software
AtlasUnixStandardJob.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 
7 
9  from .AppMgr import theApp
10  from .AppMgr import ServiceMgr as svcMgr
11 
12 
14  import GaudiSvc.GaudiSvcConf as GaudiSvcConf
15  import GaudiCoreSvc.GaudiCoreSvcConf as GaudiCoreSvcConf
16  import GaudiCommonSvc.GaudiCommonSvcConf as GaudiCommonSvcConf
17  svcMgr += GaudiCoreSvcConf.IncidentSvc()
18  svcMgr += GaudiCommonSvcConf.EvtPersistencySvc( "EventPersistencySvc" )
19  svcMgr += GaudiCommonSvcConf.HistogramSvc( "HistogramDataSvc" )
20  svcMgr += GaudiSvcConf.NTupleSvc()
21  svcMgr += GaudiSvcConf.RndmGenSvc()
22  svcMgr += GaudiCommonSvcConf.ChronoStatSvc()
23  svcMgr += GaudiCommonSvcConf.AlgContextSvc(BypassIncidents=True)
24 
25  import GaudiAud.GaudiAudConf as GaudiAudConf
26  svcMgr.AuditorSvc += GaudiAudConf.AlgContextAuditor()
27 
28  # make the message service available
29  # from GaudiCoreSvc.GaudiCoreSvcConf import MessageSvc
30  svcMgr.MessageSvc = theApp.service( "MessageSvc" ) # already instantiated
31  svcMgr.MessageSvc.enableSuppression = True
32 
33  # StoreGate services configuration
34  import StoreGate.StoreGateConf as StoreGateConf
35  svcMgr += StoreGateConf.StoreGateSvc()
36  svcMgr += StoreGateConf.StoreGateSvc("DetectorStore")
37  svcMgr += StoreGateConf.StoreGateSvc("HistoryStore")
38  svcMgr += StoreGateConf.StoreGateSvc("ConditionStore")
39 
40  #ClassIDSvc configuration
41  import CLIDComps.CLIDCompsConf as CLIDCompsConf
42  svcMgr += CLIDCompsConf.ClassIDSvc()
43  svcMgr.ClassIDSvc.CLIDDBFiles += [ "Gaudi_clid.db" ]
44 
45  #Ignore certain Service loops
46  theApp.InitializationLoopCheck = False
47 
48  # dictionary services
49  # the dict loader
50  import AthenaServices.AthenaServicesConf as AthenaServicesConf
51  if not hasattr(svcMgr, 'AthDictLoaderSvc'):
52  svcMgr += AthenaServicesConf.AthDictLoaderSvc()
53  theApp.CreateSvc += [svcMgr.AthDictLoaderSvc.getFullJobOptName()]
54 
55  # add-in a service to handle core-dumps
56  if not hasattr(svcMgr, 'CoreDumpSvc'):
57  svcMgr += AthenaServicesConf.CoreDumpSvc()
58  svcMgr.CoreDumpSvc.FastStackTrace = True
59  theApp.CreateSvc += [ svcMgr.CoreDumpSvc.getFullJobOptName() ]
60 
61 
63 
64 
65 del _setupAtlasUnixStandardJob
python.AtlasUnixStandardJob._setupAtlasUnixStandardJob
def _setupAtlasUnixStandardJob()
Definition: AtlasUnixStandardJob.py:8