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)
31 result.addEventAlgo(alg)
32 from ActsAlignmentAlgs.AlignmentAlgsConfig
import ActsGeometryContextAlgCfg
33 result.merge(ActsGeometryContextAlgCfg(flags))
38if __name__ ==
"__main__":
39 from MuonGeoModelTestR4.testGeoModel
import setupGeoR4TestCfg, SetupArgParser, MuonPhaseIITestDefaults
40 from MuonConfig.MuonConfigUtils
import executeTest
41 parser = SetupArgParser()
42 parser.set_defaults(inputFile= MuonPhaseIITestDefaults.RDO_R3)
43 parser.set_defaults(nEvents = 20)
45 args = parser.parse_args()
46 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
47 flags = initConfigFlags()
48 flags.Common.MsgSuppression =
False
50 flags, acc = setupGeoR4TestCfg(args, flags)
53 from MuonConfig.MuonByteStreamCnvTestConfig
import RpcRdoToRpcDigitCfg
54 acc.merge(RpcRdoToRpcDigitCfg(flags))
56 from DerivationFrameworkMCTruth.MCTruthCommonConfig
import HepMCtoXAODTruthCfg
57 acc.merge(HepMCtoXAODTruthCfg(flags))
61 name =
"L0MuonRPCSim",
64 from MuonConfig.MuonConfigUtils
import setupHistSvcCfg
65 acc.merge(setupHistSvcCfg(flags, outFile=
"L0MuonRPCSim.root", outStream=
"EXPERT"))
L0MuonRPCSimCfg(flags, name="L0MuonRPCSim", **kwargs)