2 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
6 kwargs.setdefault(
"streamName",
"MuonSimTestStream")
7 kwargs.setdefault(
"AcceptAlgs",[])
14 from MuonSensitiveDetectorsR4.SensitiveDetectorsCfg
import OutputSimContainersCfg
15 container_items = [
"xAOD::TruthParticleContainer#",
16 "xAOD::TruthParticleAuxContainer#",
21 from xAODMetaDataCnv.InfileMetaDataConfig
import propagateMetaData, MetaDataHelperLists
22 from AthenaConfiguration.Enums
import MetadataCategory
24 mdLists = MetaDataHelperLists()
25 for mdCategory
in (MetadataCategory.FileMetaData, MetadataCategory.EventStreamInfo):
28 result.merge(caConfig)
29 kwargs.setdefault(
"MetadataItemList" , mdLists.mdItems)
30 kwargs.setdefault(
"HelperTools", mdLists.helperTools)
31 from AthenaServices.MetaDataSvcConfig
import MetaDataSvcCfg
34 tools=mdLists.mdTools,
35 toolNames=mdLists.mdToolNames))
36 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
37 kwargs.setdefault(
"ItemList", container_items)
41 if __name__==
"__main__":
42 from MuonGeoModelTestR4.testGeoModel
import setupGeoR4TestCfg, SetupArgParser, executeTest
44 parser.set_defaults(nEvents = -1)
45 parser.set_defaults(outRootFile=
"SimHits.pool.root")
47 args = parser.parse_args()
48 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
51 from AthenaConfiguration.Enums
import ProductionStep
52 flags.Common.ProductionStep = ProductionStep.Simulation
54 from SimulationConfig.SimEnums
import SimulationFlavour
55 flags.Sim.ISF.Simulator = SimulationFlavour.AtlasG4
56 flags.addFlag(
"Output.MuonSimTestStreamFileName", args.outRootFile)
60 from BeamEffects.BeamEffectsAlgConfig
import BeamEffectsAlgCfg
63 from G4AtlasAlg.G4AtlasAlgConfig
import G4AtlasAlgCfg
72 from xAODTruthCnv.xAODTruthCnvConfig
import GEN_EVNT2xAODCfg
73 cfg.merge(
GEN_EVNT2xAODCfg(flags,name=
"GEN_EVNT2xAOD",AODContainerName=
"TruthEvent"))