39 """Basic services configuration for AthenaPoolExamples that write output"""
41 if not flags.Input.Files:
43 from McEventSelector.McEventSelectorConfig
import McEventSelectorCfg
46 EventsPerRun = 0x100999999,
47 FirstEvent = 0x100000001,
51 TimeStampInterval = 5 ) )
54 from AthenaPoolCnvSvc.PoolWriteConfig
import PoolWriteCfg
56 if writeCatalog
is not None:
58 acc.getService(
"PoolSvc").WriteCatalog = writeCatalog
61 from xAODMetaDataCnv.InfileMetaDataConfig
import createIOVMetaData, propagateMetaData, MetaDataHelperLists
62 from AthenaConfiguration.Enums
import MetadataCategory
63 mdLists = MetaDataHelperLists()
64 for mdCategory
in ( MetadataCategory.FileMetaData, MetadataCategory.EventStreamInfo ):
73 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
74 acc.merge(
OutputStreamCfg( flags, outputStreamName, disableEventTag = disableEventTag,
75 MetadataItemList = mdLists.mdItems,
76 HelperTools = mdLists.helperTools ) )
79 from AthenaServices.MetaDataSvcConfig
import MetaDataSvcCfg
80 acc.merge(
MetaDataSvcCfg( flags, tools = mdLists.mdTools, toolNames = mdLists.mdToolNames ) )
82 from AthenaConfiguration.MainServicesConfig
import MessageSvcCfg
84 from AthenaConfiguration.Utils
import setupLoggingLevels