ATLAS Offline Software
Loading...
Searching...
No Matches
TriggerUnixStandardSetup.py
Go to the documentation of this file.
1# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
3
7
9 """Populate flags with the default settings for online running"""
10
11 from AthenaConfiguration.Enums import Format
12 flags.Common.isOnline = True
13 flags.Input.Files = []
14 flags.Input.isMC = False
15 flags.Input.Format = Format.BS
16 flags.Trigger.doHLT = True # This distinguishes the HLT setup from online reco (GM, EventDisplay)
17 flags.Trigger.Online.isPartition = True # athenaHLT and partition at P1
18 flags.Trigger.EDMVersion = 3
19 flags.Trigger.writeBS = True
20 flags.Scheduler.CheckDependencies = True
21 flags.Scheduler.ShowDataDeps = True
22 flags.Scheduler.ShowControlFlow = True
23 flags.Scheduler.ShowDataFlow = True
24 flags.Scheduler.EnableVerboseViews = True
25 flags.Scheduler.AutoLoadUnmetDependencies = False
26 flags.Input.FailOnUnknownCollections = True
27
28
30 from AthenaCommon.Constants import INFO
31 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
32 from AthenaConfiguration.ComponentFactory import CompFactory
33
34 # Basic services
35 cfg = ComponentAccumulator()
36 cfg.addService(CompFactory.ClassIDSvc(CLIDDBFiles = ['clid.db','Gaudi_clid.db']))
37
38 cfg.addService(CompFactory.AlgContextSvc(BypassIncidents=True))
39 cfg.addAuditor(CompFactory.AlgContextAuditor())
40
41 cfg.addService(CompFactory.StoreGateSvc())
42 cfg.addService(CompFactory.StoreGateSvc("DetectorStore"))
43 cfg.addService(CompFactory.StoreGateSvc("HistoryStore"))
44 cfg.addService(CompFactory.StoreGateSvc("ConditionStore"))
45
46 cfg.addService( CompFactory.SG.HiveMgrSvc(
47 "EventDataSvc",
48 NSlots = flags.Concurrency.NumConcurrentEvents) )
49
50 cfg.addService( CompFactory.AlgResourcePool(
51 OutputLevel = INFO,
52 TopAlg=["AthSequencer/AthMasterSeq"]) )
53
54 from AthenaConfiguration.MainServicesConfig import AvalancheSchedulerSvcCfg
55 cfg.merge( AvalancheSchedulerSvcCfg(flags, maxParallelismExtra=1) )
56
57 # SGCommitAuditor to sweep new DataObjects at end of Alg execute
58 cfg.addAuditor( CompFactory.SGCommitAuditor() )
59
60 # CoreDumpSvc
61 cfg.addService( CompFactory.CoreDumpSvc(
62 CoreDumpStream = "stdout",
63 CallOldHandler = False, # avoid calling e.g. ROOT signal handler
64 FastStackTrace = True, # first produce a fast stacktrace
65 StackTrace = True, # then produce full stacktrace using gdb
66 DumpCoreFile = True, # also produce core file (if allowed by ulimit -c)
67 FatalHandler = 0, # no extra fatal handler
68 KillOnSigInt = True, # athenaEF runs the event loop in-process (ATR-32990)
69 TimeOut = 120e9), # timeout for stack trace generation changed to 120s (ATR-17112,ATR-25404)
70 create = True ) # always create the service
71
72 # IOVSvc
73 cfg.addService( CompFactory.IOVSvc(
74 updateInterval = "RUN",
75 preLoadData = True,
76 preLoadExtensibleFolders = False, # ATR-19392
77 forceResetAtBeginRun = False) )
78
79 # PerfMon
80 if flags.PerfMon.doFastMonMT or flags.PerfMon.doFullMonMT:
81 from PerfMonComps.PerfMonCompsConfig import PerfMonMTSvcCfg
82 cfg.merge( PerfMonMTSvcCfg(flags) )
83
84 from TrigServices.TrigServicesConfig import TrigServicesCfg
85 cfg.merge( TrigServicesCfg(flags) )
86
87 # ApplicationMgr properties
88 cfg.setAppProperty('AuditAlgorithms', True)
89 cfg.setAppProperty('InitializationLoopCheck', False)
90
91 return cfg