ATLAS Offline Software
Loading...
Searching...
No Matches
python.AtlasUnixGeneratorJob Namespace Reference

Functions

 _setupAtlasUnixGeneratorJob ()

Function Documentation

◆ _setupAtlasUnixGeneratorJob()

python.AtlasUnixGeneratorJob._setupAtlasUnixGeneratorJob ( )
protected

Definition at line 8 of file AtlasUnixGeneratorJob.py.

8def _setupAtlasUnixGeneratorJob():
9 from AthenaCommon import AtlasUnixStandardJob # noqa: F401
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 # General Application Configuration options
16 from McEventSelector.McEventSelectorConf import McCnvSvc
17 svcMgr += 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
22 svcMgr += McEventSelector("EventSelector")
23 theApp.EvtSel = svcMgr.EventSelector.getFullName()
24
25 # Persistency services
26 svcMgr.EventPersistencySvc.CnvServices += [ "McCnvSvc" ]
27
28 # Temporarily inject the xAOD::EventInfo converter here to allow for adiabatic migration of the clients
29 from AthenaCommon.AlgSequence import AthSequencer
30 topSequence = AthSequencer("AthAlgSeq")
31 if not hasattr(topSequence, "EventInfoCnvAlg"):
32 from xAODEventInfoCnv.xAODEventInfoCnvConf import xAODMaker__EventInfoCnvAlg
33 topSequence += xAODMaker__EventInfoCnvAlg(AODKey = 'McEventInfo')
34
35 return
36
ClassName: AthSequencer.