3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
7 """Basic services configuration for AthenaPoolExamples that read imput"""
10 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
12 acc.getService(
"PoolSvc").ReadCatalog += readCatalogs
15 from xAODMetaDataCnv.InfileMetaDataConfig
import createEventStreamInfo, propagateMetaData, MetaDataHelperLists
16 from AthenaConfiguration.Enums
import MetadataCategory
17 mdLists = MetaDataHelperLists()
23 mdLists.mdItems += [
"IOVMetaDataContainer#*"]
29 from AthenaServices.MetaDataSvcConfig
import MetaDataSvcCfg
30 acc.merge(
MetaDataSvcCfg( flags, tools = mdLists.mdTools, toolNames = mdLists.mdToolNames ) )
32 from AthenaConfiguration.MainServicesConfig
import MessageSvcCfg
34 from AthenaConfiguration.Utils
import setupLoggingLevels
41 """Basic services configuration for AthenaPoolExamples that write output"""
43 if not flags.Input.Files:
45 from McEventSelector.McEventSelectorConfig
import McEventSelectorCfg
48 EventsPerRun = 0x100999999,
49 FirstEvent = 0x100000001,
53 TimeStampInterval = 5 ) )
56 from AthenaPoolCnvSvc.PoolWriteConfig
import PoolWriteCfg
58 if writeCatalog
is not None:
60 acc.getService(
"PoolSvc").WriteCatalog = writeCatalog
63 from xAODMetaDataCnv.InfileMetaDataConfig
import createEventStreamInfo, propagateMetaData, MetaDataHelperLists
64 from AthenaConfiguration.Enums
import MetadataCategory
65 mdLists = MetaDataHelperLists()
67 lists, caConfig =
propagateMetaData( flags, outputStreamName, MetadataCategory.FileMetaData )
71 mdLists.mdItems += [
"IOVMetaDataContainer#*"]
77 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
78 acc.merge(
OutputStreamCfg( flags, outputStreamName, disableEventTag = disableEventTag,
79 MetadataItemList = mdLists.mdItems,
80 HelperTools = mdLists.helperTools ) )
83 from AthenaServices.MetaDataSvcConfig
import MetaDataSvcCfg
84 acc.merge(
MetaDataSvcCfg( flags, tools = mdLists.mdTools, toolNames = mdLists.mdToolNames ) )
86 from AthenaConfiguration.MainServicesConfig
import MessageSvcCfg
88 from AthenaConfiguration.Utils
import setupLoggingLevels