7 from AthenaConfiguration.ComponentFactory
import CompFactory
11 from MuonSelectorTools.MuonSelectorToolsConfig
import MuonSelectionToolCfg
12 monAlg = helper.addAlgorithm(CompFactory.EFMuonMon,
'EFMuonMon',
13 MuonSelectionTool = helper.result().popToolsAndMerge(
MuonSelectionToolCfg(helper.flags, MuQuality=1)))
16 from TrigConfigSvc.TriggerConfigAccess
import getHLTMonitoringAccess
18 monAlg.MonitoredChains = moniAccess.monitoredChains(signatures=
"muonMon",monLevels=[
"shifter",
"t0",
"val"])
21 if len(monAlg.MonitoredChains) == 0:
23 monAlg.MonitoredChains = [
'HLT_mu6_L1MU5VF',
'HLT_mu24_ivarmedium_L1MU14FCH',
'HLT_mu50_L1MU14FCH',
'HLT_mu60_0eta105_msonly_L1MU14FCH',
'HLT_2mu14_L12MU8F',
'HLT_mu22_mu8noL1_L1MU14FCH']
25 monAlg.Group = GroupName
28 histGroupNonSpecificChain = helper.addGroup(monAlg, GroupName,
'HLT/MuonMon/')
30 histGroupNonSpecificChain.defineHistogram(
'EFSAEta,EFSAPhi;EFSA_Eta_vs_Phi',
31 title=
'EFSA Eta vs Phi ;#eta;#phi',
32 type=
'TH2F', path=
'etaphi2D',xbins=108,xmin=-2.7,xmax=2.7, ybins=96,ymin=-ROOT.TMath.Pi(),ymax=ROOT.TMath.Pi())
34 histGroupNonSpecificChain.defineHistogram(
'EFCBEta,EFCBPhi;EFCB_Eta_vs_Phi',
35 title=
'EFCB Eta vs Phi ;#eta;#phi',
36 type=
'TH2F', path=
'etaphi2D',xbins=108,xmin=-2.7,xmax=2.7, ybins=96,ymin=-ROOT.TMath.Pi(),ymax=ROOT.TMath.Pi())
38 histGroupNonSpecificChain.defineHistogram(
'EFSAAboveCut,LB;EFSA_Over_OfflineSA_4GeV_Cut',
39 title=
'EFSA Over OfflineSA 4GeV Cut;LB;Ratio',
40 type=
'TEfficiency', path=
'Ratio',xbins=400,xmin=1.,xmax=801.)
42 histGroupNonSpecificChain.defineHistogram(
'EFCBAboveCut,LB;EFCB_Over_OfflineCB_4GeV_Cut',
43 title=
'EFCB Over OfflineCB 4GeV Cut;LB;Ratio',
44 type=
'TEfficiency', path=
'Ratio',xbins=400,xmin=1.,xmax=801.)
48 for chain
in monAlg.MonitoredChains:
50 histGroup = helper.addGroup(monAlg, GroupName+
'_'+chain,
'HLT/MuonMon/EFMuon/'+chain)
54 histGroup.defineHistogram(chain+
'_EFSA_Pt;EFSA_Pt',
55 title=
'EFSA Pt '+chain+
';p_{T} [GeV];Events',
56 type=
'TH1F', path=
'',xbins=210,xmin=-105.,xmax=105.)
58 histGroup.defineHistogram(chain+
'_EFSA_Eta;EFSA_Eta',
59 title=
'EFSA Eta '+chain+
';#eta;Events',
60 type=
'TH1F', path=
'',xbins=108,xmin=-2.7,xmax=2.7)
62 histGroup.defineHistogram(chain+
'_EFSA_Phi;EFSA_Phi',
63 title=
'EFSA Phi '+chain+
';#phi;Events',
64 type=
'TH1F', path=
'',xbins=96,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi())
66 histGroup.defineHistogram(chain+
'_EFSA_Eta,'+chain+
'_EFSA_Phi;EFSA_Eta_vs_Phi',
67 title=
'EFSA Eta vs Phi '+chain+
';#eta;#phi',
68 type=
'TH2F', path=
'',xbins=108,xmin=-2.7,xmax=2.7, ybins=96,ymin=-ROOT.TMath.Pi(),ymax=ROOT.TMath.Pi())
72 histGroup.defineHistogram(chain+
'_EFCB_Pt;EFCB_Pt',
73 title=
'EFCB Pt '+chain+
';p_{T} [GeV];Events',
74 type=
'TH1F', path=
'',xbins=210,xmin=-105.,xmax=105.)
76 histGroup.defineHistogram(chain+
'_EFCB_Eta;EFCB_Eta',
77 title=
'EFCB Eta '+chain+
';#eta;Events',
78 type=
'TH1F', path=
'',xbins=108,xmin=-2.7,xmax=2.7)
80 histGroup.defineHistogram(chain+
'_EFCB_Phi;EFCB_Phi',
81 title=
'EFCB Phi '+chain+
';#phi;Events',
82 type=
'TH1F', path=
'',xbins=96,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi())
84 histGroup.defineHistogram(chain+
'_EFCB_Eta,'+chain+
'_EFCB_Phi;EFCB_Eta_vs_Phi',
85 title=
'EFCB Eta vs Phi '+chain+
';#eta;#phi',
86 type=
'TH2F', path=
'',xbins=108,xmin=-2.7,xmax=2.7, ybins=96,ymin=-ROOT.TMath.Pi(),ymax=ROOT.TMath.Pi())
89 histGroup.defineHistogram(chain+
'_PtCone03;EFIso_PtCone03',
90 title=
'EFIso sum Pt in 0.3 cone '+chain+
';Sum p_{T} [GeV];Events',
91 type=
'TH1F', path=
'',xbins=50, xmin=0., xmax=25.)
93 histGroup.defineHistogram(chain+
'_PtCone03overMuonPt;EFIso_PtCone03overMuonPt',
94 title=
'EFIso sum Pt in 0.3 cone / muon Pt '+chain+
';Sum p_{T} in 0.3 cone / muon p_{T};Events',
95 type=
'TH1F', path=
'',xbins=100,xmin=0.,xmax=0.5)
99 histGroup.defineHistogram(chain+
'_OfflineSA_Pt;OfflineSA_Pt',
100 title=
'OfflineSA Pt '+chain+
';p_{T} [GeV];Events',
101 type=
'TH1F', path=
'',xbins=210,xmin=-105.,xmax=105.)
103 histGroup.defineHistogram(chain+
'_OfflineSA_Eta;OfflineSA_Eta',
104 title=
'OfflineSA Eta '+chain+
';#eta;Events',
105 type=
'TH1F', path=
'',xbins=108,xmin=-2.7,xmax=2.7)
107 histGroup.defineHistogram(chain+
'_OfflineSA_Phi;OfflineSA_Phi',
108 title=
'OfflineSA Phi '+chain+
';#phi;Events',
109 type=
'TH1F', path=
'',xbins=96,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi())
111 histGroup.defineHistogram(chain+
'_OfflineSA_Eta,'+chain+
'_OfflineSA_Phi;OfflineSA_Eta_vs_Phi',
112 title=
'OfflineSA Eta vs Phi '+chain+
';#eta;#phi',
113 type=
'TH2F', path=
'',xbins=108,xmin=-2.7,xmax=2.7, ybins=96,ymin=-ROOT.TMath.Pi(),ymax=ROOT.TMath.Pi())
117 histGroup.defineHistogram(chain+
'_OfflineCB_Pt;OfflineCB_Pt',
118 title=
'OfflineCB Pt '+chain+
';p_{T} [GeV];Events',
119 type=
'TH1F', path=
'',xbins=210,xmin=-105.,xmax=105.)
121 histGroup.defineHistogram(chain+
'_OfflineCB_Eta;OfflineCB_Eta',
122 title=
'OfflineCB Eta '+chain+
';#eta;Events',
123 type=
'TH1F', path=
'',xbins=108,xmin=-2.7,xmax=2.7)
125 histGroup.defineHistogram(chain+
'_OfflineCB_Phi;OfflineCB_Phi',
126 title=
'OfflineCB Phi '+chain+
';#phi;Events',
127 type=
'TH1F', path=
'',xbins=96,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi())
129 histGroup.defineHistogram(chain+
'_OfflineCB_Eta,'+chain+
'_OfflineCB_Phi;OfflineCB_Eta_vs_Phi',
130 title=
'OfflineCB Eta vs Phi '+chain+
';#eta;#phi',
131 type=
'TH2F', path=
'',xbins=108,xmin=-2.7,xmax=2.7, ybins=96,ymin=-ROOT.TMath.Pi(),ymax=ROOT.TMath.Pi())
137 histGroup.defineHistogram(chain+
'_OfflineSA_Pt,'+chain+
'_MatchedEFSA_Pt;EFSA_OfflineSA_PtCor',
138 title=
'PtCor EFSA OfflineSA '+chain+
';OfflineSA p_{T} [GeV];EFSA p_{T} [GeV]',
139 cutmask=chain+
'_matchedEFSA',
140 type=
'TH2F', path=
'',xbins=210,xmin=-105.,xmax=105., ybins=210,ymin=-105.,ymax=105.)
142 histGroup.defineHistogram(chain+
'_OfflineSA_Phi,'+chain+
'_MatchedEFSA_Phi;EFSA_OfflineSA_PhiCor',
143 title=
'PhiCor EFSA OfflineSA '+chain+
';OfflineSA #phi;EFSA #phi',
144 cutmask=chain+
'_matchedEFSA',
145 type=
'TH2F', path=
'',xbins=96,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi(), ybins=96,ymin=-ROOT.TMath.Pi(),ymax=ROOT.TMath.Pi())
147 histGroup.defineHistogram(chain+
'_OfflineSA_Eta,'+chain+
'_MatchedEFSA_Eta;EFSA_OfflineSA_EtaCor',
148 title=
'EtaCor EFSA OfflineSA '+chain+
';OfflineSA #eta;EFSA #eta',
149 cutmask=chain+
'_matchedEFSA',
150 type=
'TH2F', path=
'',xbins=108,xmin=-2.7,xmax=2.7, ybins=108,ymin=-2.7,ymax=2.7)
152 histGroup.defineHistogram(chain+
'_SAdPt;EFSA_OfflineSA_dPt',
153 title=
'dPt EFSA OfflineSA '+chain+
';dPt [GeV];Events',
154 cutmask=chain+
'_matchedEFSA',
155 type=
'TH1F', path=
'',xbins=100,xmin=-10.,xmax=10.)
157 histGroup.defineHistogram(chain+
'_SAdEta;EFSA_OfflineSA_dEta',
158 title=
'dEta EFSA OfflineSA '+chain+
';dEta;Events',
159 cutmask=chain+
'_matchedEFSA',
160 type=
'TH1F', path=
'',xbins=200,xmin=-5.,xmax=5.)
162 histGroup.defineHistogram(chain+
'_SAdPhi;EFSA_OfflineSA_dPhi',
163 title=
'dPhi EFSA OfflineSA '+chain+
';dPhi;Events',
164 cutmask=chain+
'_matchedEFSA',
165 type=
'TH1F', path=
'',xbins=96,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi())
167 histGroup.defineHistogram(chain+
'_SAdR;EFSA_OfflineSA_dR',
168 title=
'dR EFSA OfflineSA '+chain+
';dR;Events',
169 cutmask=chain+
'_matchedEFSA',
170 type=
'TH1F', path=
'',xbins=110,xmin=0.,xmax=11.)
172 histGroup.defineHistogram(chain+
'_OfflineSA_Pt;OfflineSA_Pt_AwareEFSA',
173 title=
'OfflineSA Pt AwareEFSA '+chain+
';OfflineSA p_{T} [GeV];Events',
174 cutmask=chain+
'_matchedEFSA',
175 type=
'TH1F', path=
'',xbins=210,xmin=-105.,xmax=105.)
177 histGroup.defineHistogram(chain+
'_OfflineSA_Phi;OfflineSA_Phi_AwareEFSA',
178 title=
'OfflineSA Phi AwareEFSA '+chain+
';OfflineSA #phi;Events',
179 cutmask=chain+
'_matchedEFSA',
180 type=
'TH1F', path=
'',xbins=96,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi())
182 histGroup.defineHistogram(chain+
'_OfflineSA_Eta;OfflineSA_Eta_AwareEFSA',
183 title=
'OfflineSA Eta AwareEFSA '+chain+
';OfflineSA #eta;Events',
184 cutmask=chain+
'_matchedEFSA',
185 type=
'TH1F', path=
'',xbins=108,xmin=-2.7,xmax=2.7)
189 histGroup.defineHistogram(chain+
'_OfflineSA_Pt,'+chain+
'_OfflineSAmatchedL2SA_Pt;OfflineSA_matchedEFSA_matchedL2SA_PtCor',
190 title=
'PtCor OfflineSA (matched to EFSA) vs. OfflineSA (matched to L2SA) '+chain+
';OfflineSA matched to EFSA p_{T} [GeV];OfflineSA matched to L2SA p_{T} [GeV]',
191 cutmask=chain+
'_matchedL2SA',
192 type=
'TH2F', path=
'',xbins=210,xmin=-105.,xmax=105., ybins=210,ymin=-105.,ymax=105.)
194 histGroup.defineHistogram(chain+
'_OfflineSA_Phi,'+chain+
'_OfflineSAmatchedL2SA_Phi;OfflineSA_matchedEFSA_matchedL2SA_PhiCor',
195 title=
'PhiCor OfflineSA (matched to EFSA) vs. OfflineSA (matched to L2SA) '+chain+
';OfflineSA matched to EFSA #phi;OfflineSA matched to L2SA #phi',
196 cutmask=chain+
'_matchedL2SA',
197 type=
'TH2F', path=
'',xbins=96,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi(), ybins=96,ymin=-ROOT.TMath.Pi(),ymax=ROOT.TMath.Pi())
199 histGroup.defineHistogram(chain+
'_OfflineSA_Eta,'+chain+
'_OfflineSAmatchedL2SA_Eta;OfflineSA_matchedEFSA_matchedL2SA_EtaCor',
200 title=
'EtaCor OfflineSA (matched to EFSA) vs. OfflineSA (matched to L2SA) '+chain+
';OfflineSA matched to EFSA #eta;OfflineSA matched to L2SA #eta',
201 cutmask=chain+
'_matchedL2SA',
202 type=
'TH2F', path=
'',xbins=108,xmin=-2.7,xmax=2.7, ybins=108,ymin=-2.7,ymax=2.7)
206 histGroup.defineHistogram(chain+
'_OfflineCB_Pt,'+chain+
'_MatchedEFCB_Pt;EFCB_OfflineCB_PtCor',
207 title=
'PtCor EFCB OfflineCB '+chain+
';OfflineCB p_{T} [GeV];EFCB p_{T} [GeV];',
208 cutmask=chain+
'_matchedEFCB',
209 type=
'TH2F', path=
'',xbins=210,xmin=-105.,xmax=105., ybins=210,ymin=-105.,ymax=105.)
211 histGroup.defineHistogram(chain+
'_OfflineCB_Phi,'+chain+
'_MatchedEFCB_Phi;EFCB_OfflineCB_PhiCor',
212 title=
'PhiCor EFCB OfflineCB '+chain+
';OfflineCB #phi;EFCB #phi;',
213 cutmask=chain+
'_matchedEFCB',
214 type=
'TH2F', path=
'',xbins=96,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi(), ybins=96,ymin=-ROOT.TMath.Pi(),ymax=ROOT.TMath.Pi())
216 histGroup.defineHistogram(chain+
'_OfflineCB_Eta,'+chain+
'_MatchedEFCB_Eta;EFCB_OfflineCB_EtaCor',
217 title=
'EtaCor EFCB OfflineCB '+chain+
';OfflineCB #eta;EFCB #eta;',
218 cutmask=chain+
'_matchedEFCB',
219 type=
'TH2F', path=
'',xbins=108,xmin=-2.7,xmax=2.7, ybins=108,ymin=-2.7,ymax=2.7)
221 histGroup.defineHistogram(chain+
'_CBdPt;EFCB_OfflineCB_dPt',
222 title=
'dPt EFCB OfflineCB '+chain+
';dPt [GeV];Events',
223 cutmask=chain+
'_matchedEFCB',
224 type=
'TH1F', path=
'',xbins=100,xmin=-10.,xmax=10.)
226 histGroup.defineHistogram(chain+
'_CBdEta;EFCB_OfflineCB_dEta',
227 title=
'dEta EFCB OfflineCB '+chain+
';dEta;Events',
228 cutmask=chain+
'_matchedEFCB',
229 type=
'TH1F', path=
'',xbins=200,xmin=-5.,xmax=5.)
231 histGroup.defineHistogram(chain+
'_CBdPhi;EFCB_OfflineCB_dPhi',
232 title=
'dPhi EFCB OfflineCB '+chain+
';dPhi;Events',
233 cutmask=chain+
'_matchedEFCB',
234 type=
'TH1F', path=
'',xbins=96,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi())
236 histGroup.defineHistogram(chain+
'_CBdR;EFCB_OfflineCB_dR',
237 title=
'dR EFCB OfflineCB '+chain+
';dR;Events',
238 cutmask=chain+
'_matchedEFCB',
239 type=
'TH1F', path=
'',xbins=110,xmin=0.,xmax=11.)
241 histGroup.defineHistogram(chain+
'_OfflineCB_Pt;OfflineCB_Pt_AwareEFCB',
242 title=
'OfflineCB Pt AwareEFCB '+chain+
';OfflineCB p_{T} [GeV];Events',
243 cutmask=chain+
'_matchedEFCB',
244 type=
'TH1F', path=
'',xbins=210,xmin=-105.,xmax=105.)
246 histGroup.defineHistogram(chain+
'_OfflineCB_Phi;OfflineCB_Phi_AwareEFCB',
247 title=
'OfflineCB Phi AwareEFCB '+chain+
';OfflineCB #phi;Events',
248 cutmask=chain+
'_matchedEFCB',
249 type=
'TH1F', path=
'',xbins=96,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi())
251 histGroup.defineHistogram(chain+
'_OfflineCB_Eta;OfflineCB_Eta_AwareEFCB',
252 title=
'OfflineCB Eta AwareEFCB '+chain+
';OfflineCB #eta;Events',
253 cutmask=chain+
'_matchedEFCB',
254 type=
'TH1F', path=
'',xbins=108,xmin=-2.7,xmax=2.7)
258 histGroup.defineHistogram(chain+
'_OfflineCB_Pt,'+chain+
'_OfflineCBmatchedL2CB_Pt;OfflineCB_matchedEFCB_matchedL2CB_PtCor',
259 title=
'PtCor OfflineCB (matched to EFCB) vs. OfflineCB (matched to L2CB) '+chain+
';OfflineCB matched to EFCB p_{T} [GeV];OfflineCB matched to L2CB p_{T} [GeV]',
260 cutmask=chain+
'_matchedL2CB',
261 type=
'TH2F', path=
'',xbins=210,xmin=-105.,xmax=105., ybins=210,ymin=-105.,ymax=105.)
263 histGroup.defineHistogram(chain+
'_OfflineCB_Phi,'+chain+
'_OfflineCBmatchedL2CB_Phi;OfflineCB_matchedEFCB_matchedL2CB_PhiCor',
264 title=
'PhiCor OfflineCB (matched to EFCB) vs. OfflineCB (matched to L2CB) '+chain+
';OfflineCB matched to EFCB #phi;OfflineCB matched to L2CB #phi',
265 cutmask=chain+
'_matchedL2CB',
266 type=
'TH2F', path=
'',xbins=96,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi(), ybins=96,ymin=-ROOT.TMath.Pi(),ymax=ROOT.TMath.Pi())
268 histGroup.defineHistogram(chain+
'_OfflineCB_Eta,'+chain+
'_OfflineCBmatchedL2CB_Eta;OfflineCB_matchedEFCB_matchedL2CB_EtaCor',
269 title=
'EtaCor OfflineCB (matched to EFCB) vs. OfflineCB (matched to L2CB) '+chain+
';OfflineCB matched to EFCB #eta;OfflineCB matched to L2CB #eta',
270 cutmask=chain+
'_matchedL2CB',
271 type=
'TH2F', path=
'',xbins=108,xmin=-2.7,xmax=2.7, ybins=108,ymin=-2.7,ymax=2.7)
275 histGroup.defineHistogram(chain+
'_MatchedEFPIsotCone03,'+chain+
'_OfflineIsoPtCone03;EFIso_OfflineIso_CorPtCone03',
276 title=
'sum Pt in 0.3 cone correlation EFIso vs. OfflineIso '+chain+
';EFIso Sum p_{T} [GeV];OfflineIso Sum p_{T} [GeV];Events',
277 type=
'TH2F', path=
'',xbins=50, xmin=0., xmax=25., ybins=50, ymin=0., ymax=25.)
279 histGroup.defineHistogram(chain+
'_MatchedEFIsoPtCone03overMuonPt,'+chain+
'_OfflineIsoPtCone03overMuonPt;EFIso_OfflineIso_CorPtCone03overMuonPt',
280 title=
'sum Pt in 0.3 cone / muon Pt correlation EFIso vs. OfflineIso '+chain+
';EFIso Sum p_{T} in 0.3 cone / muon p_{T};OfflineIso Sum p_{T} in 0.3 cone / muon p_{T};Events',
281 type=
'TH2F', path=
'',xbins=100,xmin=0.,xmax=0.5, ybins=100,ymin=0.,ymax=0.5)