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