4def L1MuonMonConfig(helper):
5
6 from AthenaConfiguration.ComponentFactory import CompFactory
7 from MuonSelectorTools.MuonSelectorToolsConfig import MuonSelectionToolCfg
8 from .MuonMatchingToolConfig import MuonMatchingToolConfig
9 monAlg = helper.addAlgorithm(CompFactory.L1MuonMon,'L1MuonMonAlg',
10 MuonSelectionTool = helper.result().popToolsAndMerge(MuonSelectionToolCfg(helper.flags, MuQuality=1)),
11 MuonMatchingTool = helper.result().popToolsAndMerge(MuonMatchingToolConfig(helper.flags)))
12
13 histGroup = helper.addGroup(monAlg, 'L1MuonMon', 'HLT/MuonMon/')
14
15
16 import ROOT
17 histGroup.defineHistogram('l1Thres',title='L1Muon Thresholds;L1 threshold number;Events', type='TH1F', path='L1Muon',xbins=15,xmin=1.0,xmax=16.0)
18 histGroup.defineHistogram('l1Eta',title='L1Muon Eta;#eta;Events', type='TH1F', path='L1Muon',xbins=25,xmin=-3.0,xmax=3.0)
19 histGroup.defineHistogram('l1Phi',title='L1Muon Phi;#phi;Events', type='TH1F', path='L1Muon',xbins=25,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi())
20 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())
21
22 return