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" ]
53from AthenaConfiguration.TestDefaults
import defaultGeometryTags
54flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN3
59from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
60acc = MainServicesCfg( flags )
63from AthenaPoolExampleAlgorithms.AthenaPoolExampleConfig
import AthenaPoolExampleReadCfg, AthenaPoolExampleWriteCfg
64acc.merge( AthenaPoolExampleReadCfg(flags, readCatalogs = [
"file:Catalog1.xml"]) )
65acc.merge( AthenaPoolExampleWriteCfg(flags, streamName,
66 writeCatalog =
"file:Catalog1.xml",
67 disableEventTag = noTag) )
70from xAODEventInfoCnv.xAODEventInfoCnvConfig
import EventInfoCnvAlgCfg
71acc.merge( EventInfoCnvAlgCfg(flags, disableBeamSpot =
True) )
73streamCA = OutputStreamCfg(flags, streamName, disableEventTag = noTag,
74 ItemList = [
"EventInfo#*",
"ExampleHitContainer#MyHits"])
75stream = streamCA.getEventAlgo( outputStreamName( streamName ) )
76stream.ExtendProvenanceRecord =
False
81sc = acc.run(flags.Exec.MaxEvents)
82sys.exit(sc.isFailure())