6def L0MuonTGCSimCfg(flags, name = "L0Muon.TGCSimulation", **kwargs):
7
8 result = ComponentAccumulator()
9
10 alg = CompFactory.L0Muon.TGCSimulation(name = name, **kwargs)
11
12 from AthenaMonitoringKernel.GenericMonitoringTool import GenericMonitoringTool
14 monTool.defineHistogram('nTgcDigits', path='EXPERT', type='TH1F', title=';n_{Digit}^{TGC};Events', xbins=50, xmin=0, xmax=100)
15
16 alg.MonTool = monTool
17
18 histSvc = CompFactory.THistSvc(Output=["EXPERT DATAFILE='" + name + ".root' OPT='RECREATE'"])
19
20 result.addEventAlgo(alg)
21 result.addService(histSvc)
22 return result
23
24