29def commonServicesCfg(flags):
31 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
32 from AthenaConfiguration.ComponentFactory import CompFactory
33
34
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
58 cfg.addAuditor( CompFactory.SGCommitAuditor() )
59
60
61 cfg.addService( CompFactory.CoreDumpSvc(
62 CoreDumpStream = "stdout",
63 CallOldHandler = False,
64 FastStackTrace = True,
65 StackTrace = True,
66 DumpCoreFile = True,
67 FatalHandler = 0,
68 KillOnSigInt = True,
69 TimeOut = 120e9),
70 create = True )
71
72
73 cfg.addService( CompFactory.IOVSvc(
74 updateInterval = "RUN",
75 preLoadData = True,
76 preLoadExtensibleFolders = False,
77 forceResetAtBeginRun = False) )
78
79
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
88 cfg.setAppProperty('AuditAlgorithms', True)
89 cfg.setAppProperty('InitializationLoopCheck', False)
90
91 return cfg