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"]
31from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
32acc = MainServicesCfg( flags )
35from AthenaPoolExampleAlgorithms.AthenaPoolExampleConfig
import AthenaPoolExampleReadCfg
36acc.merge( AthenaPoolExampleReadCfg(flags, readCatalogs = [
"file:Catalog1.xml"]) )
39acc.addEventAlgo( CompFactory.AthPoolEx.ReadData(
"ReadData", OutputLevel = DEBUG) )
41evSelector = acc.getService(
"EventSelector")
42evSelector.SkipEvents = 8
43evSelector.SkipEventSequence = [ 9, 10 ]
50poolAttribs = acc.getService(
"AthenaPoolCnvSvc").InputPoolAttributes
53poolAttribs += [
"DatabaseName = '*'; TREE_CACHE_LEARN_EVENTS = '6'" ]
55poolAttribs += [
"DatabaseName = '*'; ContainerName = 'CollectionTree'; TREE_CACHE = '100000'" ]
58poolAttribs += [
"DatabaseName = '*'; TREE_CACHE_LEARN_EVENTS = 'int'" ]
59poolAttribs += [
"DatabaseName = '*'; TREE_CACHE_SIZE = 'int'" ]
67printOpts = acc.getService(
"AthenaPoolCnvSvc").PrintInputAttrPerEvt
68printOpts += [
"DatabaseName = '*'; BYTES_READ = 'double'" ]
69printOpts += [
"DatabaseName = '*'; READ_CALLS = 'int'" ]
74sc = acc.run(flags.Exec.MaxEvents)
75sys.exit(sc.isFailure())