4def L1MuonMonConfig(helper, isPhaseII=False, **kwargs):
5
6 from AthenaConfiguration.ComponentFactory import CompFactory
7 from MuonSelectorTools.MuonSelectorToolsConfig import MuonLoosenedNonCalibratedSelectionToolCfg
8 from .MuonMatchingToolConfig import MuonMatchingToolConfig
9
10
11 kwargs.setdefault("MuonContainerName", "Muons")
12
13 monAlg = helper.addAlgorithm(CompFactory.L1MuonMon,'L1MuonMonAlg',
14 MuonSelectionTool = helper.result().popToolsAndMerge(MuonLoosenedNonCalibratedSelectionToolCfg(helper.flags,
15 MuQuality=1)),
16 MuonMatchingTool = helper.result().popToolsAndMerge(MuonMatchingToolConfig(helper.flags,
17 isPhaseII=isPhaseII,
18 MuonContainerName=kwargs["MuonContainerName"])),
19 **kwargs)
20
21 histGroup = helper.addGroup(monAlg, 'L1MuonMon', 'HLT/MuonMon/')
22
23
24 import ROOT
25 histGroup.defineHistogram('l1Thres',title='L1Muon Thresholds;L1 threshold number;Events', type='TH1F', path='L1Muon',xbins=15,xmin=1.0,xmax=16.0)
26 histGroup.defineHistogram('l1Eta',title='L1Muon Eta;#eta;Events', type='TH1F', path='L1Muon',xbins=25,xmin=-3.0,xmax=3.0)
27 histGroup.defineHistogram('l1Phi',title='L1Muon Phi;#phi;Events', type='TH1F', path='L1Muon',xbins=25,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi())
28 histGroup.defineHistogram('l1Eta,l1Phi;L1Muon_Eta_vs_Phi',title='L1Muon Eta vs Phi;#eta;#phi;Events', type='TH2F', path='etaphi2D',xbins=108,xmin=-2.7,xmax=2.7, ybins=96,ymin=-ROOT.TMath.Pi(),ymax=ROOT.TMath.Pi())
29
30 return