15 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
16 from AthenaConfiguration.ComponentFactory
import CompFactory
18 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg, outputStreamName
20 streamName =
"ReWrite"
21 outputFileName =
"SimplePoolFile3.root"
26 flags.Input.Files = [
"SimplePoolFile1.root"]
27 flags.addFlag(f
"Output.{streamName}FileName", outputFileName)
28 flags.Exec.MaxEvents = -1
29 flags.Common.MsgSuppression =
False
31 "PoolSvc",
"AthenaPoolCnvSvc",
"AthenaPoolAddressProviderSvc",
"MetaDataSvc"]
35 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
39 from AthenaPoolExampleAlgorithms.AthenaPoolExampleConfig
import AthenaPoolExampleReadCfg, AthenaPoolExampleWriteCfg
42 writeCatalog =
"file:Catalog1.xml",
43 disableEventTag = noTag ) )
46 acc.addEventAlgo( CompFactory.AthPoolEx.ReadData(
"ReadData", OutputLevel = DEBUG) )
47 acc.addEventAlgo( CompFactory.AthPoolEx.ReWriteData(
"ReWriteData", OutputLevel = DEBUG) )
50 from xAODEventInfoCnv.xAODEventInfoCnvConfig
import EventInfoCnvAlgCfg
55 ItemList = [
"ExampleTrackContainer#MyTracks" ] )
62 stream.WritingTool.OutputLevel = 3
63 stream.HelperTools[0].OutputLevel = 3
67 sc = acc.run(flags.Exec.MaxEvents)
68 sys.exit(sc.isFailure())