ATLAS Offline Software
L2MuonSAMonConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
2 
3 import ROOT
4 
5 def L2MuonSAMonConfig(helper):
6 
7  from AthenaConfiguration.ComponentFactory import CompFactory
8 
9  GroupName = 'L2MuonSA'
10 
11  from MuonSelectorTools.MuonSelectorToolsConfig import MuonSelectionToolCfg
12  monAlg = helper.addAlgorithm(CompFactory.L2MuonSAMon,'L2MuonSAMon',
13  MuonSelectionTool = helper.result().popToolsAndMerge(MuonSelectionToolCfg(helper.flags, MuQuality=1)))
14 
15 
16  from TrigConfigSvc.TriggerConfigAccess import getHLTMonitoringAccess
17  moniAccess = getHLTMonitoringAccess(helper.flags)
18  Chains = moniAccess.monitoredChains(signatures="muonMon",monLevels=["shifter","t0","val"])
19  monAlg.MonitoredChains = [c for c in Chains if ('mu24_ivarmedium' in c) or ('2mu14' in c)]
20 
21  # if mon groups not found fall back to hard-coded trigger monitoring list
22  if len(monAlg.MonitoredChains) == 0:
23  # HLT_mu6_L1MU6 is test chain for small statistics, so it will be removed.
24  monAlg.MonitoredChains = ['HLT_mu6_L1MU5VF', 'HLT_mu24_ivarmedium_L1MU14FCH', 'HLT_2mu14_L12MU8F']
25 
26  monAlg.Group = GroupName
27 
28  # configuration of etaphi2D and Ratio plots for non-specific chain
29  histGroupNonSpecificChain = helper.addGroup(monAlg, GroupName, 'HLT/MuonMon/')
30 
31  histGroupNonSpecificChain.defineHistogram('L2SAEta,L2SAPhi;L2MuonSA_Eta_vs_Phi',
32  title='L2MuonSA Eta vs Phi ;#eta;#phi',
33  type='TH2F', path='etaphi2D',xbins=108,xmin=-2.7,xmax=2.7, ybins=96,ymin=-ROOT.TMath.Pi(),ymax=ROOT.TMath.Pi())
34 
35  histGroupNonSpecificChain.defineHistogram('L2SAAboveCut,LB;L2MuonSA_Over_OfflineSA_4GeV_Cut',
36  title='L2MuonSA Over OfflineSA 4GeV Cut;LB;Ratio',
37  type='TEfficiency', path='Ratio',xbins=400,xmin=1.,xmax=801.)
38 
39 
40  # configration for specific chain
41  for chain in monAlg.MonitoredChains:
42 
43  histGroup = helper.addGroup(monAlg, GroupName+'_'+chain, 'HLT/MuonMon/L2MuonSA/'+chain)
44 
45 
46  # basic EDM variables
47  histGroup.defineHistogram(chain+'_Pt;L2MuonSA_Pt',
48  title='L2MuonSA Pt '+chain+';p_{T} [GeV];Events',
49  type='TH1F', path='',xbins=210,xmin=-105.,xmax=105.)
50 
51  histGroup.defineHistogram(chain+'_Pt;L2MuonSA_Pt_Barrel',
52  title='L2MuonSA Pt Barrel '+chain+';p_{T} [GeV];Events',
53  cutmask=chain+'_isBarrel',
54  type='TH1F', path='',xbins=210,xmin=-105.,xmax=105.)
55 
56  histGroup.defineHistogram(chain+'_Pt;L2MuonSA_Pt_Endcap',
57  title='L2MuonSA Pt Endcap '+chain+';p_{T} [GeV];Events',
58  cutmask=chain+'_isEndcap',
59  type='TH1F', path='',xbins=210,xmin=-105.,xmax=105.)
60 
61  histGroup.defineHistogram(chain+'_Eta;L2MuonSA_Eta',
62  title='L2MuonSA Eta '+chain+';#eta;Events',
63  type='TH1F', path='',xbins=108,xmin=-2.7,xmax=2.7)
64 
65  histGroup.defineHistogram(chain+'_Phi;L2MuonSA_Phi',
66  title='L2MuonSA Phi '+chain+';#phi;Events',
67  type='TH1F', path='',xbins=96,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi())
68 
69  histGroup.defineHistogram(chain+'_Phi;L2MuonSA_Phi_Barrel',
70  title='L2MuonSA Phi Barrel '+chain+';#phi;Events',
71  cutmask=chain+'_isBarrel',
72  type='TH1F', path='',xbins=96,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi())
73 
74  histGroup.defineHistogram(chain+'_Phi;L2MuonSA_Phi_Endcap',
75  title='L2MuonSA Phi Endcap '+chain+';#phi;Events',
76  cutmask=chain+'_isEndcap',
77  type='TH1F', path='',xbins=96,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi())
78 
79  histGroup.defineHistogram(chain+'_Eta,'+chain+'_Phi;L2MuonSA_Eta_vs_Phi',
80  title='L2MuonSA Eta vs Phi '+chain+';#eta;#phi',
81  type='TH2F', path='',xbins=108,xmin=-2.7,xmax=2.7, ybins=96,ymin=-ROOT.TMath.Pi(),ymax=ROOT.TMath.Pi())
82 
83 
84 
85  # position and superpoint
86  histGroup.defineHistogram(chain+'_saddr;L2MuonSA_saddr',
87  title='L2MuonSA station address '+chain+';address;Events',
88  type='TH1I', path='',xbins=6,xmin=-1,xmax=5)
89 
90  histGroup.defineHistogram(chain+'_MDTpoints_z,'+chain+'_MDTpoints_r;L2MuonSA_MDTpoints_z_vs_r',
91  title='L2MuonSA MDT superpoint Z vs R (mm) '+chain+';Z[mm];R[mm]',
92  type='TH2F', path='',xbins=200,xmin=-24000,xmax=24000, ybins=200,ymin=-14000,ymax=14000)
93 
94 
95 
96  # L1 RoI eta vs. phi in case mF failed
97  histGroup.defineHistogram(chain+'_roiEta,'+chain+'_roiPhi;L2MuonSA_failed_L1_eta_vs_phi',
98  title='L1 RoI Eta vs. Phi in case of L2MuonSA failure '+chain+';#eta;#phi',
99  cutmask=chain+'_mf_failure',
100  type='TH2F', path='',xbins=108,xmin=-2.7,xmax=2.7, ybins=96,ymin=-ROOT.TMath.Pi(),ymax=ROOT.TMath.Pi())
101 
102 
103 
104  # MuonFeatureDetails
105  # process floe
106  histGroup.defineHistogram(chain+'_proc_flow;L2MuonSA_proc_flow',
107  title='L2MuonSA process flow '+chain+';;Events',
108  type='TH1I', path='',xbins=6,xmin=1,xmax=7,
109  xlabels=["input","n L1 hits > 0","L1 emu ok at trigger layer","n MDT hits > 0 at middle layer","MDT fit ok at middle layer","MDT fit ok at >= 2 layers"])
110 
111 
112  # RPC
113  histGroup.defineHistogram(chain+'_RPC_Pad_N;L2MuonSA_RPC_Pad_N',
114  title='L2MuonSA RPC number of hits '+chain+';RPC number of hits;Events',
115  cutmask=chain+'_isBarrel',
116  type='TH1I', path='',xbins=20,xmin=0,xmax=20)
117 
118 
119  # TGC
120  histGroup.defineHistogram(chain+'_TGC_Mid_rho_chi2;L2MuonSA_TGC_Mid_rho_chi2',
121  title='L2MuonSA TGC big wheel rho fit chi2 '+chain+';chi2;Events',
122  cutmask=chain+'_isEndcap',
123  type='TH1F', path='',xbins=100,xmin=0,xmax=10)
124 
125  histGroup.defineHistogram(chain+'_TGC_Mid_phi_chi2;L2MuonSA_TGC_Mid_phi_chi2',
126  title='L2MuonSA TGC big wheel phi fit chi2 '+chain+';chi2;Events',
127  cutmask=chain+'_isEndcap',
128  type='TH1F', path='',xbins=100,xmin=0,xmax=10)
129 
130  histGroup.defineHistogram(chain+'_TGC_Mid_rho_N;L2MuonSA_TGC_Mid_rho_N',
131  title='L2MuonSA TGC big wheel number of hits in rho '+chain+';TGC BW rho nhits;Events',
132  cutmask=chain+'_isEndcap',
133  type='TH1I', path='',xbins=20,xmin=0,xmax=20)
134 
135  histGroup.defineHistogram(chain+'_TGC_Mid_phi_N;L2MuonSA_TGC_Mid_phi_N',
136  title='L2MuonSA TGC big wheel number of hits in phi '+chain+';TGC BW phi nhits;Events',
137  cutmask=chain+'_isEndcap',
138  type='TH1I', path='',xbins=20,xmin=0,xmax=20)
139 
140 
141  # MDT
142  histGroup.defineHistogram(chain+'_MDT_Inn_fit_chi2;L2MuonSA_MDT_Inn_fit_chi2_barrel',
143  title='L2MuonSA barrel MDT Inner station fit chi2 '+chain+';chi2;Events',
144  cutmask=chain+'_isBarrel',
145  type='TH1F', path='',xbins=100,xmin=0,xmax=10)
146 
147  histGroup.defineHistogram(chain+'_MDT_Mid_fit_chi2;L2MuonSA_MDT_Mid_fit_chi2_barrel',
148  title='L2MuonSA barrel MDT Middle station fit chi2 '+chain+';chi2;Events',
149  cutmask=chain+'_isBarrel',
150  type='TH1F', path='',xbins=100,xmin=0,xmax=10)
151 
152  histGroup.defineHistogram(chain+'_MDT_Out_fit_chi2;L2MuonSA_MDT_Out_fit_chi2_barrel',
153  title='L2MuonSA barrel MDT Outer station fit chi2 '+chain+';chi2;Events',
154  cutmask=chain+'_isBarrel',
155  type='TH1F', path='',xbins=100,xmin=0,xmax=10)
156 
157  histGroup.defineHistogram(chain+'_MDT_Inn_fit_chi2;L2MuonSA_MDT_Inn_fit_chi2_endcap',
158  title='L2MuonSA endcap MDT Inner station fit chi2 '+chain+';chi2;Events',
159  cutmask=chain+'_isEndcap',
160  type='TH1F', path='',xbins=100,xmin=0,xmax=10)
161 
162  histGroup.defineHistogram(chain+'_MDT_Mid_fit_chi2;L2MuonSA_MDT_Mid_fit_chi2_endcap',
163  title='L2MuonSA endcap MDT Middle station fit chi2 '+chain+';chi2;Events',
164  cutmask=chain+'_isEndcap',
165  type='TH1F', path='',xbins=100,xmin=0,xmax=10)
166 
167  histGroup.defineHistogram(chain+'_MDT_Out_fit_chi2;L2MuonSA_MDT_Out_fit_chi2_endcap',
168  title='L2MuonSA endcap MDT Outer station fit chi2 '+chain+';chi2;Events',
169  cutmask=chain+'_isEndcap',
170  type='TH1F', path='',xbins=100,xmin=0,xmax=10)
171 
172  histGroup.defineHistogram(chain+'_MDT_N;L2MuonSA_MDT_N_barrel',
173  title='L2MuonSA barrel MDT number of hits '+chain+';MDT nhits;Events',
174  cutmask=chain+'_isBarrel',
175  type='TH1I', path='',xbins=40,xmin=0,xmax=40)
176 
177  histGroup.defineHistogram(chain+'_MDT_Inn_N;L2MuonSA_MDT_Inn_N_barrel',
178  title='L2MuonSA barrel MDT Inner number of hits '+chain+';MDT nhits Inner;Events',
179  cutmask=chain+'_isBarrel',
180  type='TH1I', path='',xbins=40,xmin=0,xmax=40)
181 
182  histGroup.defineHistogram(chain+'_MDT_Mid_N;L2MuonSA_MDT_Mid_N_barrel',
183  title='L2MuonSA barrel MDT Middle number of hits '+chain+';MDT nhits Middle;Events',
184  cutmask=chain+'_isBarrel',
185  type='TH1I', path='',xbins=40,xmin=0,xmax=40)
186 
187  histGroup.defineHistogram(chain+'_MDT_Out_N;L2MuonSA_MDT_Out_N_barrel',
188  title='L2MuonSA barrel MDT Outer number of hits '+chain+';MDT nhits Outer;Events',
189  cutmask=chain+'_isBarrel',
190  type='TH1I', path='',xbins=40,xmin=0,xmax=40)
191 
192  histGroup.defineHistogram(chain+'_MDT_N;L2MuonSA_MDT_N_endcap',
193  title='L2MuonSA endcap MDT number of hits '+chain+';MDT nhits;Events',
194  cutmask=chain+'_isEndcap',
195  type='TH1I', path='',xbins=40,xmin=0,xmax=40)
196 
197  histGroup.defineHistogram(chain+'_MDT_Inn_N;L2MuonSA_MDT_Inn_N_endcap',
198  title='L2MuonSA endcap MDT Inner number of hits '+chain+';MDT nhits Inner;Events',
199  cutmask=chain+'_isEndcap',
200  type='TH1I', path='',xbins=40,xmin=0,xmax=40)
201 
202  histGroup.defineHistogram(chain+'_MDT_Mid_N;L2MuonSA_MDT_Mid_N_endcap',
203  title='L2MuonSA endcap MDT Middle number of hits '+chain+';MDT nhits Middle;Events',
204  cutmask=chain+'_isEndcap',
205  type='TH1I', path='',xbins=40,xmin=0,xmax=40)
206 
207  histGroup.defineHistogram(chain+'_MDT_Out_N;L2MuonSA_MDT_Out_N_endcap',
208  title='L2MuonSA endcap MDT Outer number of hits '+chain+';MDT nhits Outer;Events',
209  cutmask=chain+'_isEndcap',
210  type='TH1I', path='',xbins=40,xmin=0,xmax=40)
211 
212  histGroup.defineHistogram(chain+'_MDT_Inn_residual;L2MuonSA_MDT_Inn_residual_barrel',
213  title='L2MuonSA barrel MDT Inner station residual '+chain+';MDT Inner barrel residual [cm];Events',
214  cutmask=chain+'_isBarrel',
215  type='TH1F', path='',xbins=100,xmin=-20,xmax=20)
216 
217  histGroup.defineHistogram(chain+'_MDT_Mid_residual;L2MuonSA_MDT_Mid_residual_barrel',
218  title='L2MuonSA barrel MDT Middle station residual '+chain+';MDT Middle barrel residual [cm];Events',
219  cutmask=chain+'_isBarrel',
220  type='TH1F', path='',xbins=100,xmin=-20,xmax=20)
221 
222  histGroup.defineHistogram(chain+'_MDT_Out_residual;L2MuonSA_MDT_Out_residual_barrel',
223  title='L2MuonSA barrel MDT Outer station residual '+chain+';MDT Outer barrel residual [cm];Events',
224  cutmask=chain+'_isBarrel',
225  type='TH1F', path='',xbins=100,xmin=-20,xmax=20)
226 
227  histGroup.defineHistogram(chain+'_MDT_Inn_residual_OffMatch;L2MuonSA_MDT_Inn_residual_barrel_OffMatch',
228  title='L2MuonSA barrel MDT Inner station residual matched with Offline '+chain+';MDT Inner barrel residual [cm];Events',
229  cutmask=chain+'_isBarrel',
230  type='TH1F', path='',xbins=100,xmin=-20,xmax=20)
231 
232  histGroup.defineHistogram(chain+'_MDT_Mid_residual_OffMatch;L2MuonSA_MDT_Mid_residual_barrel_OffMatch',
233  title='L2MuonSA barrel MDT Middle station residual matched with Offline '+chain+';MDT Middle barrel residual [cm];Events',
234  cutmask=chain+'_isBarrel',
235  type='TH1F', path='',xbins=100,xmin=-20,xmax=20)
236 
237  histGroup.defineHistogram(chain+'_MDT_Out_residual_OffMatch;L2MuonSA_MDT_Out_residual_barrel_OffMatch',
238  title='L2MuonSA barrel MDT Outer station residual matched with Offline '+chain+';MDT Outer barrel residual [cm];Events',
239  cutmask=chain+'_isBarrel',
240  type='TH1F', path='',xbins=100,xmin=-20,xmax=20)
241 
242  histGroup.defineHistogram(chain+'_LB,'+chain+'_MDT_Inn_residual;L2MuonSA_MDT_Inn_residual_barrel_vs_LB',
243  title='L2MuonSA barrel MDT Inner station residual vs LB '+chain+';LB;MDT Inner barrel residual [cm]',
244  cutmask=chain+'_isBarrel',
245  type='TH2F', path='',xbins=750,xmin=1.,xmax=1501.,ybins=80,ymin=-20,ymax=20)
246 
247  histGroup.defineHistogram(chain+'_LB,'+chain+'_MDT_Mid_residual;L2MuonSA_MDT_Mid_residual_barrel_vs_LB',
248  title='L2MuonSA barrel MDT Middle station residual vs LB '+chain+';LB;MDT Middle barrel residual [cm]',
249  cutmask=chain+'_isBarrel',
250  type='TH2F', path='',xbins=750,xmin=1.,xmax=1501.,ybins=80,ymin=-20,ymax=20)
251 
252  histGroup.defineHistogram(chain+'_LB,'+chain+'_MDT_Out_residual;L2MuonSA_MDT_Out_residual_barrel_vs_LB',
253  title='L2MuonSA barrel MDT Outer station residual vs LB '+chain+';LB;MDT Outer barrel residual [cm]',
254  cutmask=chain+'_isBarrel',
255  type='TH2F', path='',xbins=750,xmin=1.,xmax=1501.,ybins=80,ymin=-20,ymax=20)
256 
257  histGroup.defineHistogram(chain+'_MDT_Inn_residual;L2MuonSA_MDT_Inn_residual_endcap',
258  title='L2MuonSA endcap MDT Inner station residual '+chain+';MDT Inner endcap residual [cm];Events',
259  cutmask=chain+'_isEndcap',
260  type='TH1F', path='',xbins=100,xmin=-20,xmax=20)
261 
262  histGroup.defineHistogram(chain+'_MDT_Mid_residual;L2MuonSA_MDT_Mid_residual_endcap',
263  title='L2MuonSA endcap MDT Middle station residual '+chain+';MDT Middle endcap residual [cm];Events',
264  cutmask=chain+'_isEndcap',
265  type='TH1F', path='',xbins=100,xmin=-20,xmax=20)
266 
267  histGroup.defineHistogram(chain+'_MDT_Out_residual;L2MuonSA_MDT_Out_residual_endcap',
268  title='L2MuonSA endcap MDT Outer station residual '+chain+';MDT Outer endcap residual [cm];Events',
269  cutmask=chain+'_isEndcap',
270  type='TH1F', path='',xbins=100,xmin=-20,xmax=20)
271 
272  histGroup.defineHistogram(chain+'_MDT_Inn_residual_OffMatch;L2MuonSA_MDT_Inn_residual_endcap_OffMatch',
273  title='L2MuonSA endcap MDT Inner station residual matched with Offline '+chain+';MDT Inner endcap residual [cm];Events',
274  cutmask=chain+'_isEndcap',
275  type='TH1F', path='',xbins=100,xmin=-20,xmax=20)
276 
277  histGroup.defineHistogram(chain+'_MDT_Mid_residual_OffMatch;L2MuonSA_MDT_Mid_residual_endcap_OffMatch',
278  title='L2MuonSA endcap MDT Middle station residual matched with Offline '+chain+';MDT Middle endcap residual [cm];Events',
279  cutmask=chain+'_isEndcap',
280  type='TH1F', path='',xbins=100,xmin=-20,xmax=20)
281 
282  histGroup.defineHistogram(chain+'_MDT_Out_residual_OffMatch;L2MuonSA_MDT_Out_residual_endcap_OffMatch',
283  title='L2MuonSA endcap MDT Outer station residual matched with Offline '+chain+';MDT Outer endcap residual [cm];Events',
284  cutmask=chain+'_isEndcap',
285  type='TH1F', path='',xbins=100,xmin=-20,xmax=20)
286 
287  histGroup.defineHistogram(chain+'_LB,'+chain+'_MDT_Inn_residual;L2MuonSA_MDT_Inn_residual_endcap_vs_LB',
288  title='L2MuonSA endcap MDT Inner station residual vs LB '+chain+';LB;MDT Inner endcap residual [cm]',
289  cutmask=chain+'_isEndcap',
290  type='TH2F', path='',xbins=750,xmin=1.,xmax=1501.,ybins=80,ymin=-20,ymax=20)
291 
292  histGroup.defineHistogram(chain+'_LB,'+chain+'_MDT_Mid_residual;L2MuonSA_MDT_Mid_residual_endcap_vs_LB',
293  title='L2MuonSA endcap MDT Middle station residual vs LB '+chain+';LB;MDT Middle endcap residual [cm]',
294  cutmask=chain+'_isEndcap',
295  type='TH2F', path='',xbins=750,xmin=1.,xmax=1501.,ybins=80,ymin=-20,ymax=20)
296 
297  histGroup.defineHistogram(chain+'_LB,'+chain+'_MDT_Out_residual;L2MuonSA_MDT_Out_residual_endcap_vs_LB',
298  title='L2MuonSA endcap MDT Outer station residual vs LB '+chain+';LB;MDT Outer endcap residual [cm]',
299  cutmask=chain+'_isEndcap',
300  type='TH2F', path='',xbins=750,xmin=1.,xmax=1501.,ybins=80,ymin=-20,ymax=20)
301 
302 
303 
304  # Comparison to Offline
305  # dR wrt Offline
306  histGroup.defineHistogram(chain+'_dRmin;L2MuonSA_dR_toRecMuonCB',
307  title='dR between L2MuonSA and Offline '+chain+';#DeltaR;Events',
308  type='TH1F', path='',xbins=100,xmin=0,xmax=2)
309 
310 
311  # L1 RoI wrt offline
312  histGroup.defineHistogram(chain+'_initialRoI_dR;L2MuonSA_initialRoI_dR_toRecMuonCB',
313  title='L2MuonSA initialRoI dR wrt offline CB '+chain+';dR(initialRoI vs offl CB);Events',
314  type='TH1F', path='',xbins=100,xmin=0.,xmax=0.5)
315 
316  histGroup.defineHistogram(chain+'_offEta,'+chain+'_initialRoI_dEta;L2MuonSA_initialRoI_dEta_vs_Eta_toRecMuonCB',
317  title='L2MuonSA initialRoI wrt Offline CB muon, d#eta '+chain+';offl CB #eta;d#eta(initialRoI vs offl CB)',
318  type='TH2F', path='',xbins=54,xmin=-2.7,xmax=2.7, ybins=60,ymin=-0.3,ymax=0.3)
319 
320  histGroup.defineHistogram(chain+'_offEta,'+chain+'_initialRoI_dPhi;L2MuonSA_initialRoI_dPhi_vs_Eta_toRecMuonCB',
321  title='L2MuonSA initialRoI wrt Offline CB muon, d#phi '+chain+';offl CB #eta;d#phi(initialRoI vs offl CB)',
322  type='TH2F', path='',xbins=54,xmin=-2.7,xmax=2.7, ybins=44,ymin=-0.2,ymax=0.2)
323 
324 
325  # pt resolution (barrel, endcap1, endcap2, or endcap3) (A-side or C-side)
326  histGroup.defineHistogram(chain+'_ptresol;L2MuonSA_ptresol_toRecMuonCB',
327  title='L2MuonSA pT resolution wrt Offline '+chain+';p_{T} resol;Events',
328  type='TH1F', path='',xbins=100,xmin=-2.,xmax=2.)
329 
330  histGroup.defineHistogram(chain+'_ptresol;L2MuonSA_ptresol_toRecMuonCB_BR',
331  title='L2MuonSA pT resolution wrt Offline Barrel '+chain+';p_{T} resol;Events',
332  cutmask=chain+'_isBarrel',
333  type='TH1F', path='',xbins=100,xmin=-2.,xmax=2.)
334 
335  histGroup.defineHistogram(chain+'_ptresol;L2MuonSA_ptresol_toRecMuonCB_EC1',
336  title='L2MuonSA pT resolution wrt Offline Endcap1 '+chain+';p_{T} resol;Events',
337  cutmask=chain+'_isEndcap1',
338  type='TH1F', path='',xbins=100,xmin=-2.,xmax=2.)
339 
340  histGroup.defineHistogram(chain+'_ptresol;L2MuonSA_ptresol_toRecMuonCB_EC2',
341  title='L2MuonSA pT resolution wrt Offline Endcap2 '+chain+';p_{T} resol;Events',
342  cutmask=chain+'_isEndcap2',
343  type='TH1F', path='',xbins=100,xmin=-2.,xmax=2.)
344 
345  histGroup.defineHistogram(chain+'_ptresol;L2MuonSA_ptresol_toRecMuonCB_EC3',
346  title='L2MuonSA pT resolution wrt Offline Endcap3 '+chain+';p_{T} resol;Events',
347  cutmask=chain+'_isEndcap3',
348  type='TH1F', path='',xbins=100,xmin=-2.,xmax=2.)
349 
350 
351  histGroup.defineHistogram(chain+'_offPt_signed,'+chain+'_ptresol;L2MuonSA_ptresol_toRecMuonCB_pt_barrel_A',
352  title='L2MuonSA barrel A pT resolution wrt Offline in pt '+chain+';p_{T} [GeV/c];p_{T} resol',
353  cutmask=chain+'_isBarrelA',
354  type='TH2F', path='',xbins=104,xmin=-52.,xmax=52.,ybins=100,ymin=-2.,ymax=2.)
355 
356  histGroup.defineHistogram(chain+'_offPt_signed,'+chain+'_ptresol;L2MuonSA_ptresol_toRecMuonCB_pt_barrel_C',
357  title='L2MuonSA barrel C pT resolution wrt Offline in pt '+chain+';p_{T} [GeV/c];p_{T} resol',
358  cutmask=chain+'_isBarrelC',
359  type='TH2F', path='',xbins=104,xmin=-52.,xmax=52.,ybins=100,ymin=-2.,ymax=2.)
360 
361  histGroup.defineHistogram(chain+'_offPt_signed,'+chain+'_ptresol;L2MuonSA_ptresol_toRecMuonCB_pt_endcap_A',
362  title='L2MuonSA endcap A pT resolution wrt Offline in pt '+chain+';p_{T} [GeV/c];p_{T} resol',
363  cutmask=chain+'_isEndcapA',
364  type='TH2F', path='',xbins=104,xmin=-52.,xmax=52.,ybins=100,ymin=-2.,ymax=2.)
365 
366  histGroup.defineHistogram(chain+'_offPt_signed,'+chain+'_ptresol;L2MuonSA_ptresol_toRecMuonCB_pt_endcap_C',
367  title='L2MuonSA endcap C pT resolution wrt Offline in pt '+chain+';p_{T} [GeV/c];p_{T} resol',
368  cutmask=chain+'_isEndcapC',
369  type='TH2F', path='',xbins=104,xmin=-52.,xmax=52.,ybins=100,ymin=-2.,ymax=2.)
370 
371 
372  histGroup.defineHistogram(chain+'_offEta,'+chain+'_ptresol;L2MuonSA_ptresol_toRecMuonCB_eta',
373  title='L2MuonSA pT resolution wrt Offline in eta '+chain+';#eta;p_{T} resol',
374  type='TH2F', path='',xbins=27,xmin=-2.7,xmax=2.7,ybins=100,ymin=-2.,ymax=2.)
375 
376  histGroup.defineHistogram(chain+'_offEta,'+chain+'_ptresol;L2MuonSA_ptresol_toRecMuonCB_eta_pT4_6',
377  title='L2MuonSA pT resolution wrt Offline in eta (pT4GeV-6GeV) '+chain+';#eta;p_{T} resol',
378  cutmask=chain+'_pt4to6',
379  type='TH2F', path='',xbins=27,xmin=-2.7,xmax=2.7,ybins=100,ymin=-2.,ymax=2.)
380 
381  histGroup.defineHistogram(chain+'_offEta,'+chain+'_ptresol;L2MuonSA_ptresol_toRecMuonCB_eta_pT6_8',
382  title='L2MuonSA pT resolution wrt Offline in eta (pT6GeV-8GeV) '+chain+';#eta;p_{T} resol',
383  cutmask=chain+'_pt6to8',
384  type='TH2F', path='',xbins=27,xmin=-2.7,xmax=2.7,ybins=100,ymin=-2.,ymax=2.)
385 
386  histGroup.defineHistogram(chain+'_offEta,'+chain+'_ptresol;L2MuonSA_ptresol_toRecMuonCB_eta_pT8_x',
387  title='L2MuonSA pT resolution wrt Offline in eta (pT over 8GeV) '+chain+';#eta;p_{T} resol',
388  cutmask=chain+'_ptover8',
389  type='TH2F', path='',xbins=27,xmin=-2.7,xmax=2.7,ybins=100,ymin=-2.,ymax=2.)
390 
391 
392  # inverse pt resolution (positive or negative muon) (A-side or C-side) (barrel, endcap1, endcap2, or endcap3)
393  histGroup.defineHistogram(chain+'_invptresol_pos;L2MuonSA_invptresol_toRecMuonCB_pos',
394  title='L2MuonSA pT resolution wrt Offline positive muons '+chain+';1/p_{T} resol;Events',
395  type='TH1F', path='',xbins=100,xmin=-2.,xmax=2.)
396 
397  histGroup.defineHistogram(chain+'_invptresol_neg;L2MuonSA_invptresol_toRecMuonCB_neg',
398  title='L2MuonSA pT resolution wrt Offline negative muons '+chain+';1/p_{T} resol;Events',
399  type='TH1F', path='',xbins=100,xmin=-2.,xmax=2.)
400 
401 
402  histGroup.defineHistogram(chain+'_invptresol_pos;L2MuonSA_invptresol_toRecMuonCB_pos_BR_A',
403  title='L2MuonSA pT resolution wrt Offline pos muons Barrel A-side '+chain+';1/p_{T} resol;Events',
404  cutmask=chain+'_isBarrelA',
405  type='TH1F', path='',xbins=100,xmin=-2.,xmax=2.)
406 
407  histGroup.defineHistogram(chain+'_invptresol_neg;L2MuonSA_invptresol_toRecMuonCB_neg_BR_A',
408  title='L2MuonSA pT resolution wrt Offline neg muons Barrel A-side '+chain+';1/p_{T} resol;Events',
409  cutmask=chain+'_isBarrelA',
410  type='TH1F', path='',xbins=100,xmin=-2.,xmax=2.)
411 
412  histGroup.defineHistogram(chain+'_invptresol_pos;L2MuonSA_invptresol_toRecMuonCB_pos_EC1_A',
413  title='L2MuonSA pT resolution wrt Offline pos muons EndCap1 A-side '+chain+';1/p_{T} resol;Events',
414  cutmask=chain+'_isEndcap1A',
415  type='TH1F', path='',xbins=100,xmin=-2.,xmax=2.)
416 
417  histGroup.defineHistogram(chain+'_invptresol_neg;L2MuonSA_invptresol_toRecMuonCB_neg_EC1_A',
418  title='L2MuonSA pT resolution wrt Offline neg muons EndCap1 A-side '+chain+';1/p_{T} resol;Events',
419  cutmask=chain+'_isEndcap1A',
420  type='TH1F', path='',xbins=100,xmin=-2.,xmax=2.)
421 
422  histGroup.defineHistogram(chain+'_invptresol_pos;L2MuonSA_invptresol_toRecMuonCB_pos_EC2_A',
423  title='L2MuonSA pT resolution wrt Offline pos muons EndCap2 A-side '+chain+';1/p_{T} resol;Events',
424  cutmask=chain+'_isEndcap2A',
425  type='TH1F', path='',xbins=100,xmin=-2.,xmax=2.)
426 
427  histGroup.defineHistogram(chain+'_invptresol_neg;L2MuonSA_invptresol_toRecMuonCB_neg_EC2_A',
428  title='L2MuonSA pT resolution wrt Offline neg muons EndCap2 A-side '+chain+';1/p_{T} resol;Events',
429  cutmask=chain+'_isEndcap2A',
430  type='TH1F', path='',xbins=100,xmin=-2.,xmax=2.)
431 
432  histGroup.defineHistogram(chain+'_invptresol_pos;L2MuonSA_invptresol_toRecMuonCB_pos_EC3_A',
433  title='L2MuonSA pT resolution wrt Offline pos muons EndCap3 A-side '+chain+';1/p_{T} resol;Events',
434  cutmask=chain+'_isEndcap3A',
435  type='TH1F', path='',xbins=100,xmin=-2.,xmax=2.)
436 
437  histGroup.defineHistogram(chain+'_invptresol_neg;L2MuonSA_invptresol_toRecMuonCB_neg_EC3_A',
438  title='L2MuonSA pT resolution wrt Offline neg muons EndCap3 A-side '+chain+';1/p_{T} resol;Events',
439  cutmask=chain+'_isEndcap3A',
440  type='TH1F', path='',xbins=100,xmin=-2.,xmax=2.)
441 
442 
443  histGroup.defineHistogram(chain+'_invptresol_pos;L2MuonSA_invptresol_toRecMuonCB_pos_BR_C',
444  title='L2MuonSA pT resolution wrt Offline pos muons Barrel C-side '+chain+';1/p_{T} resol;Events',
445  cutmask=chain+'_isBarrelC',
446  type='TH1F', path='',xbins=100,xmin=-2.,xmax=2.)
447 
448  histGroup.defineHistogram(chain+'_invptresol_neg;L2MuonSA_invptresol_toRecMuonCB_neg_BR_C',
449  title='L2MuonSA pT resolution wrt Offline neg muons Barrel C-side '+chain+';1/p_{T} resol;Events',
450  cutmask=chain+'_isBarrelC',
451  type='TH1F', path='',xbins=100,xmin=-2.,xmax=2.)
452 
453  histGroup.defineHistogram(chain+'_invptresol_pos;L2MuonSA_invptresol_toRecMuonCB_pos_EC1_C',
454  title='L2MuonSA pT resolution wrt Offline pos muons EndCap1 C-side '+chain+';1/p_{T} resol;Events',
455  cutmask=chain+'_isEndcap1C',
456  type='TH1F', path='',xbins=100,xmin=-2.,xmax=2.)
457 
458  histGroup.defineHistogram(chain+'_invptresol_neg;L2MuonSA_invptresol_toRecMuonCB_neg_EC1_C',
459  title='L2MuonSA pT resolution wrt Offline neg muons EndCap1 C-side '+chain+';1/p_{T} resol;Events',
460  cutmask=chain+'_isEndcap1C',
461  type='TH1F', path='',xbins=100,xmin=-2.,xmax=2.)
462 
463  histGroup.defineHistogram(chain+'_invptresol_pos;L2MuonSA_invptresol_toRecMuonCB_pos_EC2_C',
464  title='L2MuonSA pT resolution wrt Offline pos muons EndCap2 C-side '+chain+';1/p_{T} resol;Events',
465  cutmask=chain+'_isEndcap2C',
466  type='TH1F', path='',xbins=100,xmin=-2.,xmax=2.)
467 
468  histGroup.defineHistogram(chain+'_invptresol_neg;L2MuonSA_invptresol_toRecMuonCB_neg_EC2_C',
469  title='L2MuonSA pT resolution wrt Offline neg muons EndCap2 C-side '+chain+';1/p_{T} resol;Events',
470  cutmask=chain+'_isEndcap2C',
471  type='TH1F', path='',xbins=100,xmin=-2.,xmax=2.)
472 
473  histGroup.defineHistogram(chain+'_invptresol_pos;L2MuonSA_invptresol_toRecMuonCB_pos_EC3_C',
474  title='L2MuonSA pT resolution wrt Offline pos muons EndCap3 C-side '+chain+';1/p_{T} resol;Events',
475  cutmask=chain+'_isEndcap3C',
476  type='TH1F', path='',xbins=100,xmin=-2.,xmax=2.)
477 
478  histGroup.defineHistogram(chain+'_invptresol_neg;L2MuonSA_invptresol_toRecMuonCB_neg_EC3_C',
479  title='L2MuonSA pT resolution wrt Offline neg muons EndCap3 C-side '+chain+';1/p_{T} resol;Events',
480  cutmask=chain+'_isEndcap3C',
481  type='TH1F', path='',xbins=100,xmin=-2.,xmax=2.)
482 
483 
484  return
python.TriggerConfigAccess.getHLTMonitoringAccess
HLTMonitoringAccess getHLTMonitoringAccess(flags=None)
Definition: TriggerConfigAccess.py:256
python.MuonSelectorToolsConfig.MuonSelectionToolCfg
def MuonSelectionToolCfg(flags, name="MuonSelectionTool", **kwargs)
Standard configuration of the MuonSelectionTool used in reconstruction & validation jobs The snippet ...
Definition: MuonSelectorToolsConfig.py:16
python.L2MuonSAMonConfig.L2MuonSAMonConfig
def L2MuonSAMonConfig(helper)
Definition: L2MuonSAMonConfig.py:5