15from AthenaConfiguration.AllConfigFlags
import initConfigFlags
16from AthenaConfiguration.ComponentFactory
import CompFactory
20flags = initConfigFlags()
21flags.Input.Files = [
"SimplePoolFile5.root"]
22flags.Common.MsgSuppression =
False
23flags.Exec.DebugMessageComponents = [
"EventSelector",
24 "PoolSvc",
"AthenaPoolCnvSvc",
"AthenaPoolAddressProviderSvc",
"MetaDataSvc"]
28from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
29acc = MainServicesCfg( flags )
32from AthenaPoolExampleAlgorithms.AthenaPoolExampleConfig
import AthenaPoolExampleReadCfg
33acc.merge( AthenaPoolExampleReadCfg(flags, readCatalogs = [
"file:Catalog2.xml"]) )
35acc.getService(
"MetaDataSvc").MetaDataTools += [
"AthPoolEx::ReadMeta"]
38acc.addEventAlgo( CompFactory.AthPoolEx.ReadData(
"ReadData", OutputLevel = DEBUG) )
42sc = acc.run( flags.Exec.MaxEvents )
43sys.exit( sc.isFailure() )