15 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
16 from AthenaConfiguration.ComponentFactory
import CompFactory
18 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg, outputStreamName
20 streamName =
"WritexAODElectrons"
21 outputFileName =
"SimplePoolFile_xAOD.root"
25 flags.Input.Files = [
"SimplePoolFile3.root"]
26 flags.addFlag(f
"Output.{streamName}FileName", outputFileName)
27 flags.Exec.MaxEvents = -1
28 flags.Common.MsgSuppression =
False
30 "PoolSvc",
"AthenaPoolCnvSvc",
"AthenaPoolAddressProviderSvc",
"MetaDataSvc"]
34 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
38 from AthenaPoolExampleAlgorithms.AthenaPoolExampleConfig
import AthenaPoolExampleReadCfg, AthenaPoolExampleWriteCfg
41 writeCatalog =
"file:Catalog1.xml") )
44 acc.addEventAlgo( CompFactory.AthPoolEx.ReadData(
"ReadData", OutputLevel = DEBUG) )
45 acc.addEventAlgo( CompFactory.AthPoolEx.WriteExampleElectron(
"WriteExampleElectron", OutputLevel = DEBUG) )
49 ItemList = [
"ExampleTrackContainer#MyTracks",
50 "xAOD::ExampleElectronContainer#TestContainer",
51 "xAOD::ExampleElectronAuxContainer#TestContainerAux.-decor2"] )
58 stream.WritingTool.OutputLevel = 3
59 stream.HelperTools[0].OutputLevel = 3
63 sc = acc.run(flags.Exec.MaxEvents)
64 sys.exit(sc.isFailure())