ATLAS Offline Software
Loading...
Searching...
No Matches
python.TriggerUnixStandardSetup Namespace Reference

Functions

 commonServicesCfg (flags)

Function Documentation

◆ commonServicesCfg()

python.TriggerUnixStandardSetup.commonServicesCfg ( flags)

Definition at line 9 of file TriggerUnixStandardSetup.py.

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