ATLAS Offline Software
TriggerUnixStandardSetup.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 
7 
8 
9 def commonServicesCfg(flags):
10  from AthenaCommon.Constants import INFO
11  from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
12  from AthenaConfiguration.ComponentFactory import CompFactory
13 
14  # set ROOT to batch mode (ATR-21890)
15  from PyUtils.Helpers import ROOT6Setup
16  ROOT6Setup(batch=True)
17 
18  # Basic services
19  cfg = ComponentAccumulator()
20  cfg.addService(CompFactory.ClassIDSvc(CLIDDBFiles = ['clid.db','Gaudi_clid.db']))
21 
22  cfg.addService(CompFactory.AlgContextSvc(BypassIncidents=True))
23  cfg.addAuditor(CompFactory.AlgContextAuditor())
24 
25  cfg.addService(CompFactory.StoreGateSvc())
26  cfg.addService(CompFactory.StoreGateSvc("DetectorStore"))
27  cfg.addService(CompFactory.StoreGateSvc("HistoryStore"))
28  cfg.addService(CompFactory.StoreGateSvc("ConditionStore"))
29 
30  cfg.addService( CompFactory.SG.HiveMgrSvc(
31  "EventDataSvc",
32  NSlots = flags.Concurrency.NumConcurrentEvents) )
33 
34  cfg.addService( CompFactory.AlgResourcePool(
35  OutputLevel = INFO,
36  TopAlg=["AthSequencer/AthMasterSeq"]) )
37 
38  from AthenaConfiguration.MainServicesConfig import AvalancheSchedulerSvcCfg
39  cfg.merge( AvalancheSchedulerSvcCfg(flags, maxParallelismExtra=1) )
40 
41  # SGCommitAuditor to sweep new DataObjects at end of Alg execute
42  cfg.addAuditor( CompFactory.SGCommitAuditor() )
43 
44  # CoreDumpSvc
45  cfg.addService( CompFactory.CoreDumpSvc(
46  CoreDumpStream = "stdout",
47  CallOldHandler = False, # avoid calling e.g. ROOT signal handler
48  FastStackTrace = True, # first produce a fast stacktrace
49  StackTrace = True, # then produce full stacktrace using gdb
50  DumpCoreFile = True, # also produce core file (if allowed by ulimit -c)
51  FatalHandler = 0, # no extra fatal handler
52  KillOnSigInt = False, # let HLTMPPU handle Ctrl-C (ATR-30452)
53  TimeOut = 120e9), # timeout for stack trace generation changed to 120s (ATR-17112,ATR-25404)
54  create = True ) # always create the service
55 
56  # IOVSvc
57  cfg.addService( CompFactory.IOVSvc(
58  updateInterval = "RUN",
59  preLoadData = True,
60  preLoadExtensibleFolders = False, # ATR-19392
61  forceResetAtBeginRun = False) )
62 
63  # PerfMon
64  if flags.PerfMon.doFastMonMT or flags.PerfMon.doFullMonMT:
65  from PerfMonComps.PerfMonCompsConfig import PerfMonMTSvcCfg
66  cfg.merge( PerfMonMTSvcCfg(flags) )
67 
68  from TrigServices.TrigServicesConfig import TrigServicesCfg
69  cfg.merge( TrigServicesCfg(flags) )
70 
71  # ApplicationMgr properties
72  cfg.setAppProperty('AuditAlgorithms', True)
73  cfg.setAppProperty('InitializationLoopCheck', False)
74 
75  return cfg
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.PerfMonCompsConfig.PerfMonMTSvcCfg
def PerfMonMTSvcCfg(flags, **kwargs)
A minimal new-style configuration for PerfMonMTSvc.
Definition: PerfMonCompsConfig.py:10
Constants
some useful constants -------------------------------------------------—
python.Helpers.ROOT6Setup
def ROOT6Setup(batch=False)
Definition: Tools/PyUtils/python/Helpers.py:19
python.MainServicesConfig.AvalancheSchedulerSvcCfg
def AvalancheSchedulerSvcCfg(flags, **kwargs)
Definition: MainServicesConfig.py:25
python.TrigServicesConfig.TrigServicesCfg
def TrigServicesCfg(flags)
Definition: TrigServicesConfig.py:175
python.TriggerUnixStandardSetup.commonServicesCfg
def commonServicesCfg(flags)
Definition: TriggerUnixStandardSetup.py:9