9def commonServicesCfg(flags):
11 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
12 from AthenaConfiguration.ComponentFactory import CompFactory
13
14
15 from PyUtils.Helpers import ROOTSetup
16 ROOTSetup(batch=True)
17
18
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
42 cfg.addAuditor( CompFactory.SGCommitAuditor() )
43
44
45 cfg.addService( CompFactory.CoreDumpSvc(
46 CoreDumpStream = "stdout",
47 CallOldHandler = False,
48 FastStackTrace = True,
49 StackTrace = True,
50 DumpCoreFile = True,
51 FatalHandler = 0,
52 KillOnSigInt = False,
53 TimeOut = 120e9),
54 create = True )
55
56
57 cfg.addService( CompFactory.IOVSvc(
58 updateInterval = "RUN",
59 preLoadData = True,
60 preLoadExtensibleFolders = False,
61 forceResetAtBeginRun = False) )
62
63
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
72 cfg.setAppProperty('AuditAlgorithms', True)
73 cfg.setAppProperty('InitializationLoopCheck', False)
74
75 return cfg