16from AthenaConfiguration.AllConfigFlags
import initConfigFlags
17from AthenaConfiguration.ComponentFactory
import CompFactory
21flags = initConfigFlags()
22flags.Input.Files = [
"EmptyPoolFile.root",
"SimplePoolReplica1.root",
23 "EmptyPoolFile.root",
"SimplePoolFile2.root",
"SimplePoolFile4.root"]
24flags.Exec.MaxEvents = -1
25flags.Common.MsgSuppression =
False
26flags.Exec.DebugMessageComponents = [
"ReadData",
"PoolSvc",
27 "AthenaPoolAddressProviderSvc",
"MetaDataSvc",
"EventSelector"]
30from AthenaConfiguration.TestDefaults
import defaultGeometryTags
31flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN3
36from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
37acc = MainServicesCfg( flags )
40from AthenaPoolExampleAlgorithms.AthenaPoolExampleConfig
import AthenaPoolExampleReadCfg
41acc.merge( AthenaPoolExampleReadCfg(flags, readCatalogs = [
"file:Catalog1.xml"]) )
44acc.addEventAlgo( CompFactory.AthPoolEx.ReadData(
"ReadData", OutputLevel = DEBUG) )
46evSelector = acc.getService(
"EventSelector")
47evSelector.SkipEvents = 8
48evSelector.SkipEventSequence = [ 9, 10 ]
54poolAttribs = acc.getService(
"AthenaPoolCnvSvc").InputPoolAttributes
57poolAttribs += [
"DatabaseName = '*'; ContainerName = 'CollectionTree'; TREE_CACHE = '100000'" ]
60poolAttribs += [
"DatabaseName = '*'; TREE_CACHE_SIZE = 'int'" ]
68printOpts = acc.getService(
"AthenaPoolCnvSvc").PrintInputAttrPerEvt
69printOpts += [
"DatabaseName = '*'; BYTES_READ = 'double'" ]
70printOpts += [
"DatabaseName = '*'; READ_CALLS = 'int'" ]
75sc = acc.run(flags.Exec.MaxEvents)
76sys.exit(sc.isFailure())