18from AthenaConfiguration.AllConfigFlags
import initConfigFlags
19from AthenaConfiguration.ComponentFactory
import CompFactory
23flags = initConfigFlags()
24flags.Input.Files = [
"SimplePoolFile1.root"]
25flags.Exec.MaxEvents = -1
26flags.Common.MsgSuppression =
False
27flags.Exec.DebugMessageComponents = [
"EventSelector",
"CondProxyProvider",
28 "PoolSvc",
"AthenaPoolAddressProviderSvc",
"MetaDataSvc"]
32from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
33acc = MainServicesCfg( flags )
35from AthenaPoolExampleAlgorithms.AthenaPoolExampleConfig
import AthenaPoolExampleReadCfg
36acc.merge( AthenaPoolExampleReadCfg( flags, readCatalogs = [
"file:Catalog1.xml" ] ) )
38acc.addService( CompFactory.CondProxyProvider(
"CondProxyProvider",
39 InputCollections = [
"SimplePoolFile4.root"]
41acc.getService(
"ProxyProviderSvc").ProviderNames += [
"CondProxyProvider"]
44acc.addEventAlgo( CompFactory.AthPoolEx.ReadData(
"ReadData", OutputLevel = DEBUG) )
45acc.addEventAlgo( CompFactory.AthPoolEx.ReadCond(
"ReadCond", OutputLevel = DEBUG) )
49sc = acc.run(flags.Exec.MaxEvents)
50sys.exit(sc.isFailure())