6 from xAODEventInfoCnv.xAODEventInfoCnvConf
import xAODMaker__EventInfoCnvAlg
10 outkey = "EventInfo" ):
12 Helper function that schedules the algorithm for creating an xAOD::EventInfo
13 object out of the AOD's EventInfo one.
16 sequence: Optional sequence to which the components should be added.
17 If not specified, the main algorithm sequence is used.
18 stream: Optional stream that the objects should be written to.
19 If not specified, the objects are added to StreamXAOD.
20 key: Optional StoreGate key for the AOD object that is supposed to be
24 from AthenaCommon.Logging
import logging
25 logger = logging.getLogger(
"xAODEventInfoCreator" )
28 logger.info(
"Creating xAOD::EventInfo" )
32 from AthenaCommon.AlgSequence
import AlgSequence
38 from OutputStreamAthenaPool.MultipleStreamManager
import MSMgr
39 stream = MSMgr.GetStream(
"StreamXAOD" )
43 alg = xAODMaker__EventInfoCnvAlg()
49 stream.AddItem(
"xAOD::EventInfo#%s" % outkey )
50 stream.AddItem(
"xAOD::EventAuxInfo#%sAux." % outkey )
51 stream.AddItem(
"xAOD::EventInfoContainer#PileUp%s" % outkey )
52 stream.AddItem(
"xAOD::EventInfoAuxContainer#PileUp%sAux." % outkey )