ATLAS Offline Software
AtlasUnixStandardJob.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2021 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 
32  # StoreGate services configuration
33  import StoreGate.StoreGateConf as StoreGateConf
34  svcMgr += StoreGateConf.StoreGateSvc()
35  svcMgr += StoreGateConf.StoreGateSvc("DetectorStore")
36  svcMgr += StoreGateConf.StoreGateSvc("HistoryStore")
37  svcMgr += StoreGateConf.StoreGateSvc("ConditionStore")
38 
39  #ClassIDSvc configuration
40  import CLIDComps.CLIDCompsConf as CLIDCompsConf
41  svcMgr += CLIDCompsConf.ClassIDSvc()
42  svcMgr.ClassIDSvc.CLIDDBFiles += [ "Gaudi_clid.db" ]
43 
44  #Ignore certain Service loops
45  theApp.InitializationLoopCheck = False
46 
47  # dictionary services
48  # the dict loader
49  import AthenaServices.AthenaServicesConf as AthenaServicesConf
50  if not hasattr(svcMgr, 'AthDictLoaderSvc'):
51  svcMgr += AthenaServicesConf.AthDictLoaderSvc()
52  theApp.CreateSvc += [svcMgr.AthDictLoaderSvc.getFullJobOptName()]
53 
54  # add-in a service to handle core-dumps
55  if not hasattr(svcMgr, 'CoreDumpSvc'):
56  svcMgr += AthenaServicesConf.CoreDumpSvc()
57  svcMgr.CoreDumpSvc.FastStackTrace = True
58  theApp.CreateSvc += [ svcMgr.CoreDumpSvc.getFullJobOptName() ]
59 
60 
62 
63 
64 del _setupAtlasUnixStandardJob
python.AtlasUnixStandardJob._setupAtlasUnixStandardJob
def _setupAtlasUnixStandardJob()
Definition: AtlasUnixStandardJob.py:8