15from AthenaConfiguration.AllConfigFlags
import initConfigFlags
16from AthenaConfiguration.ComponentFactory
import CompFactory
20flags = initConfigFlags()
21flags.Input.Files = [
"SimplePoolFile_xAOD.root" ]
22flags.Exec.MaxEvents = -1
23flags.Common.MsgSuppression =
False
24flags.Exec.DebugMessageComponents = [
"ReadExampleElectron",
"PoolSvc",
"AthenaPoolCnvSvc",
25 "AthenaPoolAddressProviderSvc",
"MetaDataSvc",
"EventSelector" ]
29from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
30acc = MainServicesCfg( flags )
33from AthenaPoolExampleAlgorithms.AthenaPoolExampleConfig
import AthenaPoolExampleReadCfg
34acc.merge( AthenaPoolExampleReadCfg(flags, readCatalogs = [
"file:Catalog1.xml"]) )
37acc.addEventAlgo( CompFactory.AthPoolEx.ReadExampleElectron(
"ReadExampleElectron", OutputLevel = DEBUG) )
41sc = acc.run(flags.Exec.MaxEvents)
42sys.exit(sc.isFailure())