8def L0MuonMDTSimCfg(flags, name = "L0MuonMDTSim", **kwargs):
9
10 result = ComponentAccumulator()
11
12 alg = CompFactory.L0Muon.MDTSimulation(name = name, **kwargs)
13
14 from AthenaMonitoringKernel.GenericMonitoringTool import GenericMonitoringTool
16 monTool.HistPath = 'L0MuonMDTSim'
17 monTool.defineHistogram('track_input_eta', path='EXPERT', type='TH1F', title=';#eta_{#mu}^{truth};Muons', xbins=50, xmin=-3, xmax=3)
18
19 alg.MonTool = monTool
20 from MuonConfig.MuonConfigUtils import setupHistSvcCfg
21 result.merge(setupHistSvcCfg(flags, outFile = f"{name}.root", outStream="EXPERT"))
22 result.addEventAlgo(alg)
23 return result
24
25