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')
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())
21 from McEventSelector.McEventSelectorConf
import McEventSelector
23 theApp.EvtSel = svcMgr.EventSelector.getFullName()
26 svcMgr.EventPersistencySvc.CnvServices += [
"McCnvSvc" ]
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')