8def _setupAtlasUnixGeneratorJob():
9 from AthenaCommon import AtlasUnixStandardJob
10 from AthenaCommon.AppMgr import theApp
11 from AthenaCommon.AppMgr import ServiceMgr as svcMgr
12 from AthenaCommon.Logging import logging
13 log = logging.getLogger('AtlasUnixGeneratorJob')
14
15
16 from McEventSelector.McEventSelectorConf import McCnvSvc
18 if hasattr(svcMgr, 'EventSelector'):
19 log.warning('EventSelector of type %s already exists. Will not add McEventSelector.', svcMgr.EventSelector.getType())
20 else:
21 from McEventSelector.McEventSelectorConf import McEventSelector
23 theApp.EvtSel = svcMgr.EventSelector.getFullName()
24
25
26 svcMgr.EventPersistencySvc.CnvServices += [ "McCnvSvc" ]
27
28
29 from AthenaCommon.AlgSequence import AthSequencer
31 if not hasattr(topSequence, "EventInfoCnvAlg"):
32 from xAODEventInfoCnv.xAODEventInfoCnvConf import xAODMaker__EventInfoCnvAlg
33 topSequence += xAODMaker__EventInfoCnvAlg(AODKey = 'McEventInfo')
34
35 return
36