2from AthenaConfiguration.ComponentFactory
import CompFactory
3from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
5from AthenaCommon.Logging
import logging
6_log = logging.getLogger(__name__)
10 result = ComponentAccumulator()
12 from MuonTruthAlgsR4.MuonTruthAlgsConfig
import MuonTruthAlgsCfg
13 result.merge(MuonTruthAlgsCfg(flags, useSDO=
True, recoAssoc =
False))
19 result = ComponentAccumulator()
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
36 result.merge(ActsGeometryContextAlgCfg(flags))
41if __name__ ==
"__main__":
42 from MuonGeoModelTestR4.testGeoModel
import setupGeoR4TestCfg, SetupArgParser
43 from MuonConfig.MuonConfigUtils
import executeTest
44 parser = SetupArgParser()
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
50 flags = initConfigFlags()
51 flags.Common.MsgSuppression =
False
53 flags, acc = setupGeoR4TestCfg(args, flags)
56 from MuonConfig.MuonByteStreamCnvTestConfig
import RpcRdoToRpcDigitCfg
57 acc.merge(RpcRdoToRpcDigitCfg(flags))
59 from xAODTruthCnv.xAODTruthCnvConfig
import GEN_EVNT2xAODCfg
60 acc.merge(GEN_EVNT2xAODCfg(flags,name=
"GEN_EVNT2xAOD",AODContainerName=
"TruthEvent"))
64 name =
"L0MuonRPCSim",
L0MuonRPCSimCfg(flags, name="L0MuonRPCSim", **kwargs)