262 from AthenaCommon.Logging
import log
263 log.setLevel(flags.Exec.OutputLevel)
265 if flags.Exec.Interactive ==
"run":
266 LoopMgr=
"PyAthenaEventLoopMgr"
267 log.info(
"Interactive mode, switching to %s", LoopMgr)
270 if flags.Concurrency.NumThreads > 0:
271 if flags.Concurrency.NumConcurrentEvents==0:
272 raise Exception(
"Requested Concurrency.NumThreads>0 and Concurrency.NumConcurrentEvents==0, "
273 "which will not process events!")
274 if flags.Exec.MTEventService:
275 LoopMgr =
"AthenaMtesEventLoopMgr"
277 LoopMgr =
"AthenaHiveEventLoopMgr"
279 if flags.Concurrency.NumProcs > 0:
280 LoopMgr =
"AthMpEvtLoopMgr"
289 cfg.addService(CompFactory.ClassIDSvc(CLIDDBFiles = [
'clid.db',
'Gaudi_clid.db']))
291 cfg.addService(CompFactory.AlgContextSvc(BypassIncidents=
True))
292 cfg.addAuditor(CompFactory.AlgContextAuditor())
294 cfg.addService(CompFactory.StoreGateSvc(Dump=flags.Debug.DumpEvtStore))
295 cfg.addService(CompFactory.StoreGateSvc(
"DetectorStore",Dump=flags.Debug.DumpDetStore))
296 cfg.addService(CompFactory.StoreGateSvc(
"HistoryStore"))
297 cfg.addService(CompFactory.StoreGateSvc(
"ConditionStore",Dump=flags.Debug.DumpCondStore))
301 from AthenaConfiguration.FPEAndCoreDumpConfig
import FPEAndCoreDumpCfg
307 cfg.addService(CompFactory.ExceptionSvc(Catch=
"NONE"))
310 cfg.setAppProperty(
'AuditAlgorithms',
True)
311 cfg.setAppProperty(
'InitializationLoopCheck',
False)
312 cfg.setAppProperty(
'EvtMax', flags.Exec.MaxEvents)
313 if flags.Exec.OutputLevel > INFO:
315 cfg.setAppProperty(
'AppName',
'')
316 cfg.setAppProperty(
'OutputLevel', flags.Exec.OutputLevel)
318 if flags.Exec.DebugStage !=
"":
319 cfg.setDebugStage(flags.Exec.DebugStage)
321 cfg.interactive=flags.Exec.Interactive
323 if flags.Concurrency.NumProcs > 0:
327 if flags.Concurrency.NumThreads > 0:
328 if flags.Exec.MTEventService:
333 cfg.addAuditor( CompFactory.SGCommitAuditor() )
334 elif LoopMgr ==
'AthenaEventLoopMgr':
338 if flags.PerfMon.doFastMonMT
or flags.PerfMon.doFullMonMT:
339 from PerfMonComps.PerfMonCompsConfig
import PerfMonMTSvcCfg
342 if flags.PerfMon.doGPerfProf:
343 from PerfMonGPerfTools.GPT_ProfilerServiceConfig
import GPT_ProfilerServiceCfg
346 if len(flags.PerfMon.Valgrind.ProfiledAlgs)>0:
347 from Valkyrie.ValkyrieConfig
import ValgrindServiceCfg