ATLAS Offline Software
Functions
python.L2MuonSAMonConfig Namespace Reference

Functions

def L2MuonSAMonConfig (helper)
 

Function Documentation

◆ L2MuonSAMonConfig()

def python.L2MuonSAMonConfig.L2MuonSAMonConfig (   helper)

Definition at line 5 of file L2MuonSAMonConfig.py.

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