14 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
15 from AthenaConfiguration.ComponentFactory
import CompFactory
18 outputFileName =
"ROOTTREE:SimplePoolFile5.root"
19 outputStreamName =
"ExampleMeta"
24 flags.Input.Files = []
25 flags.addFlag(f
"Output.{outputStreamName}FileName", outputFileName)
26 flags.Exec.MaxEvents = 10
27 flags.Common.MsgSuppression =
False
28 flags.Exec.DebugMessageComponents = [
"PoolSvc",
"AthenaPoolCnvSvc",
"AthenaPoolAddressProviderSvc",
"MetaDataSvc"]
32 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
35 from AthenaPoolExampleAlgorithms.AthenaPoolExampleConfig
import AthenaPoolExampleWriteCfg
37 writeCatalog =
"file:Catalog2.xml",
38 disableEventTag = noTag ) )
41 acc.addEventAlgo( CompFactory.AthPoolEx.WriteData(
"WriteData", OutputLevel = DEBUG) )
42 acc.addEventAlgo( CompFactory.AthPoolEx.WriteCond(
"WriteCond",
43 DetStore = acc.getService(
"MetaDataStore"),
44 ConditionName =
"PedestalWriteData",
45 OutputLevel = DEBUG) )
47 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
48 acc.merge(
OutputStreamCfg( flags, outputStreamName, disableEventTag = noTag,
49 ItemList = [
"EventInfo#*",
"ExampleHitContainer#MyHits"],
50 MetadataItemList = [
"ExampleHitContainer#PedestalWriteData"],
55 sc = acc.run(flags.Exec.MaxEvents)
56 sys.exit(sc.isFailure())