9def commonServicesCfg(flags):
11 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
12 from AthenaConfiguration.ComponentFactory import CompFactory
13
14
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
38 cfg.addAuditor( CompFactory.SGCommitAuditor() )
39
40
41 cfg.addService( CompFactory.CoreDumpSvc(
42 CoreDumpStream = "stdout",
43 CallOldHandler = False,
44 FastStackTrace = True,
45 StackTrace = True,
46 DumpCoreFile = True,
47 FatalHandler = 0,
48 KillOnSigInt = False,
49 TimeOut = 120e9),
50 create = True )
51
52
53 cfg.addService( CompFactory.IOVSvc(
54 updateInterval = "RUN",
55 preLoadData = True,
56 preLoadExtensibleFolders = False,
57 forceResetAtBeginRun = False) )
58
59
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
68 cfg.setAppProperty('AuditAlgorithms', True)
69 cfg.setAppProperty('InitializationLoopCheck', False)
70
71 return cfg