36from AthenaConfiguration.AllConfigFlags
import initConfigFlags
37from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg, outputStreamName
40outputFileName =
"SimplePoolReplica1.root"
44flags = initConfigFlags()
45flags.Input.Files = [
"SimplePoolFile1.root" ]
46flags.addFlag(f
"Output.{streamName}FileName", outputFileName)
47flags.Exec.MaxEvents = -1
48flags.Common.MsgSuppression =
False
49flags.Exec.DebugMessageComponents = [ outputStreamName(streamName),
"EventSelector",
50 "PoolSvc",
"AthenaPoolCnvSvc",
"AthenaPoolAddressProviderSvc",
"MetaDataSvc" ]
54from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
55acc = MainServicesCfg( flags )
58from AthenaPoolExampleAlgorithms.AthenaPoolExampleConfig
import AthenaPoolExampleReadCfg, AthenaPoolExampleWriteCfg
59acc.merge( AthenaPoolExampleReadCfg(flags, readCatalogs = [
"file:Catalog1.xml"]) )
60acc.merge( AthenaPoolExampleWriteCfg(flags, streamName,
61 writeCatalog =
"file:Catalog1.xml",
62 disableEventTag = noTag) )
65from xAODEventInfoCnv.xAODEventInfoCnvConfig
import EventInfoCnvAlgCfg
66acc.merge( EventInfoCnvAlgCfg(flags, disableBeamSpot =
True) )
68streamCA = OutputStreamCfg(flags, streamName, disableEventTag = noTag,
69 ItemList = [
"EventInfo#*",
"ExampleHitContainer#MyHits"])
70stream = streamCA.getEventAlgo( outputStreamName( streamName ) )
71stream.ExtendProvenanceRecord =
False
76sc = acc.run(flags.Exec.MaxEvents)
77sys.exit(sc.isFailure())