2 from AthenaConfiguration.ComponentFactory
import CompFactory
3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
5 from AthenaCommon.Logging
import logging
6 _log = logging.getLogger(__name__)
12 from MuonTruthAlgsR4.MuonTruthAlgsConfig
import MuonTruthAlgsCfg
22 alg = CompFactory.L0Muon.RPCSimulation(name = name, **kwargs)
24 from AthenaMonitoringKernel.GenericMonitoringTool
import GenericMonitoringTool
26 monTool.HistPath =
'L0MuonRPCSim'
27 monTool.defineHistogram(
'track_input_eta', path=
'EXPERT', type=
'TH1F', title=
';#eta_{#mu}^{truth};Muons', xbins=50, xmin=-3, xmax=3)
30 from MuonConfig.MuonConfigUtils
import setupHistSvcCfg
31 result.merge(
setupHistSvcCfg(flags, outFile=f
"{name}.root", outStream=
"EXPERT"))
34 result.addEventAlgo(alg)
35 from ActsAlignmentAlgs.AlignmentAlgsConfig
import ActsGeometryContextAlgCfg
41 if __name__ ==
"__main__":
42 from MuonGeoModelTestR4.testGeoModel
import setupGeoR4TestCfg, SetupArgParser
43 from MuonConfig.MuonConfigUtils
import executeTest
45 parser.set_defaults(inputFile= [
"/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/MuonGeomRTT/myRDO.R3.pool.root"])
46 parser.set_defaults(nEvents = 20)
48 args = parser.parse_args()
49 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
51 flags.Common.MsgSuppression =
False
56 from MuonConfig.MuonByteStreamCnvTestConfig
import RpcRdoToRpcDigitCfg
59 from xAODTruthCnv.xAODTruthCnvConfig
import GEN_EVNT2xAODCfg
64 name =
"L0MuonRPCSim",