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 xAODEventInfoCnv.xAODEventInfoCnvConfig
import EventInfoCnvAlgCfg
38 from AthenaPoolExampleAlgorithms.AthenaPoolExampleConfig
import AthenaPoolExampleWriteCfg
40 writeCatalog =
"file:Catalog2.xml",
41 disableEventTag = noTag ) )
44 acc.addEventAlgo( CompFactory.AthPoolEx.WriteData(
"WriteData", OutputLevel = DEBUG) )
45 acc.addEventAlgo( CompFactory.AthPoolEx.WriteCond(
"WriteCond",
46 DetStore = acc.getService(
"MetaDataStore"),
47 ConditionName =
"PedestalWriteData",
48 OutputLevel = DEBUG) )
50 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
51 acc.merge(
OutputStreamCfg( flags, outputStreamName, disableEventTag = noTag,
52 ItemList = [
"EventInfo#*",
"ExampleHitContainer#MyHits"],
53 MetadataItemList = [
"ExampleHitContainer#PedestalWriteData"],
58 sc = acc.run(flags.Exec.MaxEvents)
59 sys.exit(sc.isFailure())