17from AthenaConfiguration.AllConfigFlags
import initConfigFlags
18from AthenaConfiguration.ComponentFactory
import CompFactory
22flags = initConfigFlags()
23flags.Input.Files = [
"EmptyPoolFile.root",
"SimplePoolFile1.root",
24 "EmptyPoolFile.root",
"SimplePoolFile2.root",
"SimplePoolFile3.root"]
25flags.Exec.MaxEvents = -1
26flags.Common.MsgSuppression =
False
27flags.Exec.DebugMessageComponents = [
"ReadData",
"PoolSvc",
"AthenaPoolCnvSvc",
28 "AthenaPoolAddressProviderSvc",
"MetaDataSvc",
"EventSelector" ]
32from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
33acc = MainServicesCfg( flags )
36from AthenaPoolExampleAlgorithms.AthenaPoolExampleConfig
import AthenaPoolExampleReadCfg
37acc.merge( AthenaPoolExampleReadCfg(flags, readCatalogs = [
"file:Catalog1.xml"]) )
40acc.addEventAlgo( CompFactory.AthPoolEx.ReadData(
"ReadData", OutputLevel = DEBUG) )
42evSelector = acc.getService(
"EventSelector")
43evSelector.SkipEvents = 8
44evSelector.SkipEventSequence = [ 9, 10 ]
49poolAttribs = acc.getService(
"AthenaPoolCnvSvc").InputPoolAttributes
52poolAttribs += [
"DatabaseName = '*'; TREE_CACHE_LEARN_EVENTS = '6'" ]
54poolAttribs += [
"DatabaseName = '*'; ContainerName = 'CollectionTree'; TREE_CACHE = '100000'" ]
57poolAttribs += [
"DatabaseName = '*'; TREE_CACHE_LEARN_EVENTS = 'int'" ]
58poolAttribs += [
"DatabaseName = '*'; TREE_CACHE_SIZE = 'int'" ]
66printOpts = acc.getService(
"AthenaPoolCnvSvc").PrintInputAttrPerEvt
67printOpts += [
"DatabaseName = '*'; BYTES_READ = 'double'" ]
68printOpts += [
"DatabaseName = '*'; READ_CALLS = 'int'" ]
73sc = acc.run(flags.Exec.MaxEvents)
74sys.exit(sc.isFailure())