2 from AthenaConfiguration.ComponentFactory
import CompFactory
3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
5 from AthenaCommon.Logging
import logging
6 _log = logging.getLogger(__name__)
13 from MuonTruthAlgsR4.MuonTruthAlgsConfig
import TruthSegmentMakerCfg, TruthSegmentToTruthPartAssocCfg, SdoMultiTruthMakerCfg
14 from MuonConfig.MuonTruthAlgsConfig
import TruthMuonMakerAlgCfg, MuonTruthHitCountsAlgCfg
29 alg = CompFactory.L0Muon.RPCSimulation(name = name, **kwargs)
31 from AthenaMonitoringKernel.GenericMonitoringTool
import GenericMonitoringTool
33 monTool.HistPath =
'L0MuonRPCSim'
34 monTool.defineHistogram(
'track_input_eta', path=
'EXPERT', type=
'TH1F', title=
';#eta_{#mu}^{truth};Muons', xbins=50, xmin=-3, xmax=3)
37 from MuonGeoModelTestR4.testGeoModel
import setupHistSvcCfg
38 result.merge(
setupHistSvcCfg(flags, outFile=f
"{name}.root", outStream=
"EXPERT"))
41 result.addEventAlgo(alg)
42 from ActsAlignmentAlgs.AlignmentAlgsConfig
import ActsGeometryContextAlgCfg
48 if __name__ ==
"__main__":
49 from MuonGeoModelTestR4.testGeoModel
import setupGeoR4TestCfg, SetupArgParser, executeTest
51 parser.set_defaults(inputFile= [
"/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/MuonGeomRTT/myRDO.R3.pool.root"])
52 parser.set_defaults(nEvents = 20)
54 args = parser.parse_args()
55 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
57 flags.Common.MsgSuppression =
False
62 from MuonConfig.MuonByteStreamCnvTestConfig
import RpcRdoToRpcDigitCfg
65 from xAODTruthCnv.xAODTruthCnvConfig
import GEN_EVNT2xAODCfg
70 name =
"L0MuonRPCSim",