16 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
17 from AthenaConfiguration.ComponentFactory
import CompFactory
22 flags.Input.Files = [
"EmptyPoolFile.root",
"SimplePoolReplica1.root",
23 "EmptyPoolFile.root",
"SimplePoolFile2.root",
"SimplePoolFile4.root"]
24 flags.Exec.MaxEvents = -1
25 flags.Common.MsgSuppression =
False
26 flags.Exec.DebugMessageComponents = [
"ReadData",
"PoolSvc",
27 "AthenaPoolAddressProviderSvc",
"MetaDataSvc",
"EventSelector"]
31 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
35 from AthenaPoolExampleAlgorithms.AthenaPoolExampleConfig
import AthenaPoolExampleReadCfg
39 acc.addEventAlgo( CompFactory.AthPoolEx.ReadData(
"ReadData", OutputLevel = DEBUG) )
41 evSelector = acc.getService(
"EventSelector")
42 evSelector.SkipEvents = 8
43 evSelector.SkipEventSequence = [ 9, 10 ]
50 poolAttribs = acc.getService(
"AthenaPoolCnvSvc").InputPoolAttributes
53 poolAttribs += [
"DatabaseName = '*'; TREE_CACHE_LEARN_EVENTS = '6'" ]
55 poolAttribs += [
"DatabaseName = '*'; ContainerName = 'CollectionTree'; TREE_CACHE = '100000'" ]
58 poolAttribs += [
"DatabaseName = '*'; TREE_CACHE_LEARN_EVENTS = 'int'" ]
59 poolAttribs += [
"DatabaseName = '*'; TREE_CACHE_SIZE = 'int'" ]
67 printOpts = acc.getService(
"AthenaPoolCnvSvc").PrintInputAttrPerEvt
68 printOpts += [
"DatabaseName = '*'; BYTES_READ = 'double'" ]
69 printOpts += [
"DatabaseName = '*'; READ_CALLS = 'int'" ]
72 QueryTag = CompFactory.AthPoolEx.QueryTag(
"QueryTag", OutputLevel = DEBUG)
77 sc = acc.run(flags.Exec.MaxEvents)
78 sys.exit(sc.isFailure())