ATLAS Offline Software
L2MuonSAIOMonConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 
3 import ROOT
4 from TrigMuonMonitoring.TrigMuonEfficiencyMonConfig import regex
5 
6 def L2MuonSAIOMonConfig(helper):
7 
8  from AthenaConfiguration.ComponentFactory import CompFactory
9 
10  GroupName = 'L2MuonSAIO'
11 
12  from MuonSelectorTools.MuonSelectorToolsConfig import MuonSelectionToolCfg
13  monAlg = helper.addAlgorithm(CompFactory.L2MuonSAIOMon,'L2MuonSAIOMon',
14  MuonSelectionTool = helper.result().popToolsAndMerge(MuonSelectionToolCfg(helper.flags, MuQuality=1)))
15 
16 
17  from TrigConfigSvc.TriggerConfigAccess import getHLTMonitoringAccess
18  moniAccess = getHLTMonitoringAccess(helper.flags)
19  Chains = moniAccess.monitoredChains(signatures="muonMon",monLevels=["shifter","t0","val"])
20  monAlg.MonitoredChains = [c for c in Chains if ('l2io' in c)]
21 
22  # if mon groups not found fall back to hard-coded trigger monitoring list
23  if len(monAlg.MonitoredChains) == 0:
24  monAlg.MonitoredChains = ['HLT_mu4_l2io_L1MU3V', 'HLT_mu24_ivarmedium_mu6_l2io_probe_L1MU14FCH', 'HLT_mu24_ivarmedium_mu6_l2io_probe_L1MU18VFCH']
25 
26  monAlg.Group = GroupName
27 
28  for chain in monAlg.MonitoredChains:
29 
30  histGroup = helper.addGroup(monAlg, GroupName+'_'+chain, 'HLT/MuonMon/L2MuonSAIO/'+chain)
31  if 'HLT_mu24_ivarmedium_mu6_l2io_probe_L1' in chain:
32  threshold, level1 = regex('HLT_.*_mu([0-9]+)_l2io.*_(L1MU[0-9]+)').match(chain).groups()
33  else:
34  threshold, level1 = regex('HLT_mu([0-9]+).*_(L1MU[0-9]+)').match(chain).groups()
35  monAlg.Plateaus.append( float(threshold) )
36 
37 
38  # L2Inside-Out efficiency
39  if 'HLT_mu24_ivarmedium_mu6_l2io_probe_L1' in chain:
40  histGroup.defineHistogram(chain+'_passL2InsideOut,'+chain+'_offdR;EffL2InsideOut_offdR',
41  title='L2Inside-Out Efficiency dR of offline muon pair '+chain+';dR;Efficiency',
42  cutmask=chain+'_passL2SA',
43  type='TEfficiency', path='',xbins=100,xmin=0.,xmax=3.)
44 
45  histGroup.defineHistogram(chain+'_passL2InsideOut,'+chain+'_offPt;EffL2InsideOut_offPt',
46  title='L2Inside-Out Efficiency pT of offline muon '+chain+';p_{T} [GeV/c];Efficiency',
47  cutmask=chain+'_passL2SA',
48  type='TEfficiency', path='',xbins=104,xmin=-52.,xmax=52.)
49 
50  histGroup.defineHistogram(chain+'_passL2InsideOut,'+chain+'_offEta;EffL2InsideOut_offEta',
51  title='L2Inside-Out Efficiency Eta of offline muon '+chain+';#eta;Efficiency',
52  cutmask=chain+'_passL2SA',
53  type='TEfficiency', path='',xbins=27,xmin=-2.7,xmax=2.7)
54 
55  histGroup.defineHistogram(chain+'_passL2InsideOut,'+chain+'_offPhi;EffL2InsideOut_offPhi',
56  title='L2Inside-Out Efficiency Phi of offline muon '+chain+';#phi;Efficiency',
57  cutmask=chain+'_passL2SA',
58  type='TEfficiency', path='',xbins=96,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi())
59 
60  else:
61  # basic EDM variables
62  histGroup.defineHistogram(chain+'_Pt;L2CBIO_Pt_Barrel',
63  title='L2MuonCBIO Pt Barrel '+chain+';p_{T} [GeV];Events',
64  cutmask=chain+'_isBarrel',
65  type='TH1F', path='',xbins=210,xmin=-105.,xmax=105.)
66 
67  histGroup.defineHistogram(chain+'_Pt;L2CBIO_Pt_Endcap',
68  title='L2MuonCBIO Pt Endcap '+chain+';p_{T} [GeV];Events',
69  cutmask=chain+'_isEndcap',
70  type='TH1F', path='',xbins=210,xmin=-105.,xmax=105.)
71 
72  histGroup.defineHistogram(chain+'_Eta;L2CBIO_Eta',
73  title='L2MuonCBIO Eta '+chain+';#eta;Events',
74  type='TH1F', path='',xbins=108,xmin=-2.7,xmax=2.7)
75 
76  histGroup.defineHistogram(chain+'_Phi;L2CBIO_Phi_Barrel',
77  title='L2MuonCBIO Phi Barrel '+chain+';#phi;Events',
78  cutmask=chain+'_isBarrel',
79  type='TH1F', path='',xbins=96,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi())
80 
81  histGroup.defineHistogram(chain+'_Phi;L2CBIO_Phi_Endcap',
82  title='L2MuonCBIO Phi Endcap '+chain+';#phi;Events',
83  cutmask=chain+'_isEndcap',
84  type='TH1F', path='',xbins=96,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi())
85 
86  # Comparison to Offline
87  # basic variables
88  histGroup.defineHistogram(chain+'_Pt_wrt_offline;L2CBIO_Pt_matched_to_offline_Barrel',
89  title='L2MuonCBIO Pt matched to Offline muons Barrel '+chain+';p_{T} [GeV];Events',
90  cutmask=chain+'_isBarrel',
91  type='TH1F', path='',xbins=210,xmin=-105.,xmax=105.)
92 
93  histGroup.defineHistogram(chain+'_Pt_wrt_offline;L2CBIO_Pt_matched_to_offline_Endcap',
94  title='L2MuonCBIO Pt matched to Offline muons Endcap '+chain+';p_{T} [GeV];Events',
95  cutmask=chain+'_isEndcap',
96  type='TH1F', path='',xbins=210,xmin=-105.,xmax=105.)
97 
98  histGroup.defineHistogram(chain+'_Eta_wrt_offline;L2CBIO_wrt_Eta_matched_to_offline',
99  title='L2MuonCBIO matched to Offline muons Eta '+chain+';#eta;Events',
100  type='TH1F', path='',xbins=108,xmin=-2.7,xmax=2.7)
101 
102  histGroup.defineHistogram(chain+'_Phi_wrt_offline;L2CBIO_Phi_matched_to_offline_Barrel',
103  title='L2MuonCBIO Phi matched to Offline muons Barrel '+chain+';#phi;Events',
104  cutmask=chain+'_isBarrel',
105  type='TH1F', path='',xbins=96,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi())
106 
107  histGroup.defineHistogram(chain+'_Phi_wrt_offline;L2CBIO_Phi_matched_to_offline_Endcap',
108  title='L2MuonCBIO Phi matched to Offline muons Endcap '+chain+';#phi;Events',
109  cutmask=chain+'_isEndcap',
110  type='TH1F', path='',xbins=96,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi())
111 
112  # dRmin b/w cbio track & offline track at IP
113  histGroup.defineHistogram(chain+'_dRmin;L2CBIO_dR_toOffl_Barrel',
114  title='dR between L2CBIO and Offline Barrel '+chain+';#DeltaR;Events',
115  cutmask=chain+'_isBarrel',
116  type='TH1F', path='',xbins=100,xmin=0.,xmax=0.005)
117 
118  histGroup.defineHistogram(chain+'_dRmin;L2CBIO_dR_toOffl_Endcap',
119  title='dR between L2CBIO and Offline Endcap '+chain+';#DeltaR;Events',
120  cutmask=chain+'_isEndcap',
121  type='TH1F', path='',xbins=100,xmin=0.,xmax=0.005)
122 
123  # distance b/w FTFroad & offline segment
124  histGroup.defineHistogram(chain+'_distance_bw_FTFroad_and_offlinesegment_Inn_Barrel;L2MuonSAIO_distance_bw_FTFroad_and_offlinesegment_Inn_barrel_pT4_6',
125  title='distance b/w FTFroad and Offline segment Inner Barrel (pT4GeV-6GeV) '+chain+';distance (mm);Events',
126  cutmask=chain+'_pt4to6',
127  type='TH1F', path='',xbins=100,xmin=-1000.,xmax=1000.)
128 
129  histGroup.defineHistogram(chain+'_distance_bw_FTFroad_and_offlinesegment_Mid_Barrel;L2MuonSAIO_distance_bw_FTFroad_and_offlinesegment_Mid_barrel_pT4_6',
130  title='distance b/w FTFroad and Offline segment Middle Barrel (pT4GeV-6GeV) '+chain+';distance (mm);Events',
131  cutmask=chain+'_pt4to6',
132  type='TH1F', path='',xbins=100,xmin=-1000.,xmax=1000.)
133 
134  histGroup.defineHistogram(chain+'_distance_bw_FTFroad_and_offlinesegment_Out_Barrel;L2MuonSAIO_distance_bw_FTFroad_and_offlinesegment_Out_barrel_pT4_6',
135  title='distance b/w FTFroad and Offline segment Outer Barrel (pT4GeV-6GeV) '+chain+';distance (mm);Events',
136  cutmask=chain+'_pt4to6',
137  type='TH1F', path='',xbins=100,xmin=-1000.,xmax=1000.)
138 
139  histGroup.defineHistogram(chain+'_distance_bw_FTFroad_and_offlinesegment_Inn_Barrel;L2MuonSAIO_distance_bw_FTFroad_and_offlinesegment_Inn_barrel_pT6_8',
140  title='distance b/w FTFroad and Offline segment Inner Barrel (pT6GeV-8GeV) '+chain+';distance (mm);Events',
141  cutmask=chain+'_pt6to8',
142  type='TH1F', path='',xbins=100,xmin=-1000.,xmax=1000.)
143 
144  histGroup.defineHistogram(chain+'_distance_bw_FTFroad_and_offlinesegment_Mid_Barrel;L2MuonSAIO_distance_bw_FTFroad_and_offlinesegment_Mid_barrel_pT6_8',
145  title='distance b/w FTFroad and Offline segment Middle Barrel (pT6GeV-8GeV) '+chain+';distance (mm);Events',
146  cutmask=chain+'_pt6to8',
147  type='TH1F', path='',xbins=100,xmin=-1000.,xmax=1000.)
148 
149  histGroup.defineHistogram(chain+'_distance_bw_FTFroad_and_offlinesegment_Out_Barrel;L2MuonSAIO_distance_bw_FTFroad_and_offlinesegment_Out_barrel_pT6_8',
150  title='distance b/w FTFroad and Offline segment Outer Barrel (pT6GeV-8GeV) '+chain+';distance (mm);Events',
151  cutmask=chain+'_pt6to8',
152  type='TH1F', path='',xbins=100,xmin=-1000.,xmax=1000.)
153 
154  histGroup.defineHistogram(chain+'_distance_bw_FTFroad_and_offlinesegment_Inn_Barrel;L2MuonSAIO_distance_bw_FTFroad_and_offlinesegment_Inn_barrel_pT8_x',
155  title='distance b/w FTFroad and Offline segment Inner Barrel (pT over 8GeV) '+chain+';distance (mm);Events',
156  cutmask=chain+'_ptover8',
157  type='TH1F', path='',xbins=100,xmin=-1000.,xmax=1000.)
158 
159  histGroup.defineHistogram(chain+'_distance_bw_FTFroad_and_offlinesegment_Mid_Barrel;L2MuonSAIO_distance_bw_FTFroad_and_offlinesegment_Mid_barrel_pT8_x',
160  title='distance b/w FTFroad and Offline segment Middle Barrel (pT over 8GeV) '+chain+';distance (mm);Events',
161  cutmask=chain+'_ptover8',
162  type='TH1F', path='',xbins=100,xmin=-1000.,xmax=1000.)
163 
164  histGroup.defineHistogram(chain+'_distance_bw_FTFroad_and_offlinesegment_Out_Barrel;L2MuonSAIO_distance_bw_FTFroad_and_offlinesegment_Out_barrel_pT8_x',
165  title='distance b/w FTFroad and Offline segment Outer Barrel (pT over 8GeV) '+chain+';distance (mm);Events',
166  cutmask=chain+'_ptover8',
167  type='TH1F', path='',xbins=100,xmin=-1000.,xmax=1000.)
168 
169  histGroup.defineHistogram(chain+'_distance_bw_FTFroad_and_offlinesegment_Inn_Endcap;L2MuonSAIO_distance_bw_FTFroad_and_offlinesegment_Inn_endcap_pT4_6',
170  title='distance b/w FTFroad and Offline segment Inner Endcap (pT4GeV-6GeV) '+chain+';distance (mm);Events',
171  cutmask=chain+'_pt4to6',
172  type='TH1F', path='',xbins=100,xmin=-1000.,xmax=1000.)
173 
174  histGroup.defineHistogram(chain+'_distance_bw_FTFroad_and_offlinesegment_Mid_Endcap;L2MuonSAIO_distance_bw_FTFroad_and_offlinesegment_Mid_endcap_pT4_6',
175  title='distance b/w FTFroad and Offline segment Middle Endcap (pT4GeV-6GeV) '+chain+';distance (mm);Events',
176  cutmask=chain+'_pt4to6',
177  type='TH1F', path='',xbins=100,xmin=-1000.,xmax=1000.)
178 
179  histGroup.defineHistogram(chain+'_distance_bw_FTFroad_and_offlinesegment_Out_Endcap;L2MuonSAIO_distance_bw_FTFroad_and_offlinesegment_Out_endcap_pT4_6',
180  title='distance b/w FTFroad and Offline segment Outer Endcap (pT4GeV-6GeV) '+chain+';distance (mm);Events',
181  cutmask=chain+'_pt4to6',
182  type='TH1F', path='',xbins=100,xmin=-1000.,xmax=1000.)
183 
184  histGroup.defineHistogram(chain+'_distance_bw_FTFroad_and_offlinesegment_Inn_Endcap;L2MuonSAIO_distance_bw_FTFroad_and_offlinesegment_Inn_endcap_pT6_8',
185  title='distance b/w FTFroad and Offline segment Inner Endcap (pT6GeV-8GeV) '+chain+';distance (mm);Events',
186  cutmask=chain+'_pt6to8',
187  type='TH1F', path='',xbins=100,xmin=-1000.,xmax=1000.)
188 
189  histGroup.defineHistogram(chain+'_distance_bw_FTFroad_and_offlinesegment_Mid_Endcap;L2MuonSAIO_distance_bw_FTFroad_and_offlinesegment_Mid_endcap_pT6_8',
190  title='distance b/w FTFroad and Offline segment Middle Endcap (pT6GeV-8GeV) '+chain+';distance (mm);Events',
191  cutmask=chain+'_pt6to8',
192  type='TH1F', path='',xbins=100,xmin=-1000.,xmax=1000.)
193 
194  histGroup.defineHistogram(chain+'_distance_bw_FTFroad_and_offlinesegment_Out_Endcap;L2MuonSAIO_distance_bw_FTFroad_and_offlinesegment_Out_endcap_pT6_8',
195  title='distance b/w FTFroad and Offline segment Outer Endcap (pT6GeV-8GeV) '+chain+';distance (mm);Events',
196  cutmask=chain+'_pt6to8',
197  type='TH1F', path='',xbins=100,xmin=-1000.,xmax=1000.)
198 
199  histGroup.defineHistogram(chain+'_distance_bw_FTFroad_and_offlinesegment_Inn_Endcap;L2MuonSAIO_distance_bw_FTFroad_and_offlinesegment_Inn_endcap_pT8_x',
200  title='distance b/w FTFroad and Offline segment Inner Endcap (pT over 8GeV) '+chain+';distance (mm);Events',
201  cutmask=chain+'_ptover8',
202  type='TH1F', path='',xbins=100,xmin=-1000.,xmax=1000.)
203 
204  histGroup.defineHistogram(chain+'_distance_bw_FTFroad_and_offlinesegment_Mid_Endcap;L2MuonSAIO_distance_bw_FTFroad_and_offlinesegment_Mid_endcap_pT8_x',
205  title='distance b/w FTFroad and Offline segment Middle Endcap (pT over 8GeV) '+chain+';distance (mm);Events',
206  cutmask=chain+'_ptover8',
207  type='TH1F', path='',xbins=100,xmin=-1000.,xmax=1000.)
208 
209  histGroup.defineHistogram(chain+'_distance_bw_FTFroad_and_offlinesegment_Out_Endcap;L2MuonSAIO_distance_bw_FTFroad_and_offlinesegment_Out_endcap_pT8_x',
210  title='distance b/w FTFroad and Offline segment Outer Endcap (pT over 8GeV) '+chain+';distance (mm);Events',
211  cutmask=chain+'_ptover8',
212  type='TH1F', path='',xbins=100,xmin=-1000.,xmax=1000.)
213 
214  # number of MDT hits per L2SAIO track
215  histGroup.defineHistogram(chain+'_MDT_N_Inn_Barrel;L2MuonSAIO_MDT_N_Inn_Barrel',
216  title='L2MuonSAIO MDT number of hits Inner Barrel '+chain+';MDT nhits;Events',
217  type='TH1I', path='',xbins=9,xmin=0,xmax=9)
218 
219  histGroup.defineHistogram(chain+'_MDT_N_Mid_Barrel;L2MuonSAIO_MDT_N_Mid_Barrel',
220  title='L2MuonSAIO MDT number of hits Middle Barrel '+chain+';MDT nhits;Events',
221  type='TH1I', path='',xbins=9,xmin=0,xmax=9)
222 
223  histGroup.defineHistogram(chain+'_MDT_N_Out_Barrel;L2MuonSAIO_MDT_N_Out_Barrel',
224  title='L2MuonSAIO MDT number of hits Outer Barrel '+chain+';MDT nhits;Events',
225  type='TH1I', path='',xbins=9,xmin=0,xmax=9)
226 
227  histGroup.defineHistogram(chain+'_MDT_N_Inn_Endcap;L2MuonSAIO_MDT_N_Inn_Endcap',
228  title='L2MuonSAIO MDT number of hits Inner Endcap '+chain+';MDT nhits;Events',
229  type='TH1I', path='',xbins=9,xmin=0,xmax=9)
230 
231  histGroup.defineHistogram(chain+'_MDT_N_Mid_Endcap;L2MuonSAIO_MDT_N_Mid_Endcap',
232  title='L2MuonSAIO MDT number of hits Middle Endcap '+chain+';MDT nhits;Events',
233  type='TH1I', path='',xbins=9,xmin=0,xmax=9)
234 
235  histGroup.defineHistogram(chain+'_MDT_N_Out_Endcap;L2MuonSAIO_MDT_N_Out_Endcap',
236  title='L2MuonSAIO MDT number of hits Outer Endcap '+chain+';MDT nhits;Events',
237  type='TH1I', path='',xbins=9,xmin=0,xmax=9)
238 
239  # MDT hit residual
240  histGroup.defineHistogram(chain+'_MDT_residual_Inn_Barrel;L2MuonSAIO_MDT_residual_Inn_Barrel',
241  title='L2MuonSAIO MDT residual Inner Barrel '+chain+';MDT residual Inner Barrel [mm];Events',
242  type='TH1F', path='',xbins=150,xmin=-750.,xmax=750.)
243 
244  histGroup.defineHistogram(chain+'_MDT_residual_Mid_Barrel;L2MuonSAIO_MDT_residual_Mid_Barrel',
245  title='L2MuonSAIO MDT residual Middle Barrel '+chain+';MDT residual Middle Barrel [mm];Events',
246  type='TH1F', path='',xbins=150,xmin=-750.,xmax=750.)
247 
248  histGroup.defineHistogram(chain+'_MDT_residual_Out_Barrel;L2MuonSAIO_MDT_residual_Out_Barrel',
249  title='L2MuonSAIO MDT residual Outer Barrel '+chain+';MDT residual Outer Barrel [mm];Events',
250  type='TH1F', path='',xbins=150,xmin=-750.,xmax=750.)
251 
252  histGroup.defineHistogram(chain+'_MDT_residual_Inn_Endcap;L2MuonSAIO_MDT_residual_Inn_Endcap',
253  title='L2MuonSAIO MDT residual Inner Endcap '+chain+';MDT residual Inner Endcap [mm];Events',
254  type='TH1F', path='',xbins=150,xmin=-750.,xmax=750.)
255 
256  histGroup.defineHistogram(chain+'_MDT_residual_Mid_Endcap;L2MuonSAIO_MDT_residual_Mid_Endcap',
257  title='L2MuonSAIO MDT residual Middle Endcap '+chain+';MDT residual Middle Endcap [mm];Events',
258  type='TH1F', path='',xbins=150,xmin=-750.,xmax=750.)
259 
260  histGroup.defineHistogram(chain+'_MDT_residual_Out_Endcap;L2MuonSAIO_MDT_residual_Out_Endcap',
261  title='L2MuonSAIO MDT residual Outer Endcap '+chain+';MDT residual Outer Endcap [mm];Events',
262  type='TH1F', path='',xbins=150,xmin=-750.,xmax=750.)
263 
264  # distance b/w MDT hits & offline segment
265  histGroup.defineHistogram(chain+'_distance_bw_MDT_and_offlinesegment_Inn_Barrel;L2MuonSAIO_distance_bw_MDT_and_offlinesegment_Inn_Barrel',
266  title='L2MuonSAIO distance b/w MDT and Offline segment Inner Barrel '+chain+';distance [mm];Events',
267  type='TH1F', path='',xbins=100,xmin=-750.,xmax=750.)
268 
269  histGroup.defineHistogram(chain+'_distance_bw_MDT_and_offlinesegment_Mid_Barrel;L2MuonSAIO_distance_bw_MDT_and_offlinesegment_Mid_Barrel',
270  title='L2MuonSAIO distance b/w MDT and Offline segment Middle Barrel '+chain+';distance [mm];Events',
271  type='TH1F', path='',xbins=100,xmin=-750.,xmax=750.)
272 
273  histGroup.defineHistogram(chain+'_distance_bw_MDT_and_offlinesegment_Out_Barrel;L2MuonSAIO_distance_bw_MDT_and_offlinesegment_Out_Barrel',
274  title='L2MuonSAIO distance b/w MDT and Offline segment Outer Barrel '+chain+';distance [mm];Events',
275  type='TH1F', path='',xbins=100,xmin=-750.,xmax=750.)
276 
277  histGroup.defineHistogram(chain+'_distance_bw_MDT_and_offlinesegment_Inn_Endcap;L2MuonSAIO_distance_bw_MDT_and_offlinesegment_Inn_Endcap',
278  title='L2MuonSAIO distance b/w MDT and Offline segment Inner Endcap '+chain+';distance [mm];Events',
279  type='TH1F', path='',xbins=100,xmin=-750.,xmax=750.)
280 
281  histGroup.defineHistogram(chain+'_distance_bw_MDT_and_offlinesegment_Mid_Endcap;L2MuonSAIO_distance_bw_MDT_and_offlinesegment_Mid_Endcap',
282  title='L2MuonSAIO distance b/w MDT and Offline segment Middle Endcap '+chain+';distance [mm];Events',
283  type='TH1F', path='',xbins=100,xmin=-750.,xmax=750.)
284 
285  histGroup.defineHistogram(chain+'_distance_bw_MDT_and_offlinesegment_Out_Endcap;L2MuonSAIO_distance_bw_MDT_and_offlinesegment_Out_Endcap',
286  title='L2MuonSAIO distance b/w MDT and Offline segment Outer Endcap '+chain+';distance [mm];Events',
287  type='TH1F', path='',xbins=100,xmin=-750.,xmax=750.)
288 
289  # superpoint reconstruction efficiency wrt offline segment
290  histGroup.defineHistogram(chain+'_superpoint_pt4to6,'+chain+'_L2Muon_chamberID_index;L2MuonSAIO_superpoint_reconstruction_efficiency_wrt_offlinesegment_pT4_6',
291  title='superpoint reconstruction efficiency wrt Offline segment (pT4GeV-6GeV) '+chain+';sector;efficiency',
292  cutmask=chain+'_offlinesegment_pt4to6',
293  type='TEfficiency', path='',xbins=6,xmin=0.,xmax=6.)
294 
295  histGroup.defineHistogram(chain+'_superpoint_pt6to8,'+chain+'_L2Muon_chamberID_index;L2MuonSAIO_superpoint_reconstruction_efficiency_wrt_offlinesegment_pT6_8',
296  title='superpoint reconstruction efficiency wrt Offline segment (pT6GeV-8GeV) '+chain+';sector;efficiency',
297  cutmask=chain+'_offlinesegment_pt6to8',
298  type='TEfficiency', path='',xbins=6,xmin=0.,xmax=6.)
299 
300  histGroup.defineHistogram(chain+'_superpoint_ptover8,'+chain+'_L2Muon_chamberID_index;L2MuonSAIO_superpoint_reconstruction_efficiency_wrt_offlinesegment_pT8_x',
301  title='superpoint reconstruction efficiency wrt Offline segment (pT over 8GeV) '+chain+';sector;efficiency',
302  cutmask=chain+'_offlinesegment_ptover8',
303  type='TEfficiency', path='',xbins=6,xmin=0.,xmax=6.)
304 
305  # superpoint multiplicity per L2SAIO track matched offline track
306  histGroup.defineHistogram(chain+'_regionBE,'+chain+'_superpoint_multiplicity;L2MuonSAIO_superpoint_multiplicity_pT4_6',
307  title='superpoint multiplicity (pT4GeV-6GeV) '+chain+';barrel=0/endcap=1;number of superpoints',
308  cutmask=chain+'_pt4to6',
309  type='TH2I', path='',xbins=2,xmin=0,xmax=2,ybins=6,ymin=0,ymax=6)
310 
311  histGroup.defineHistogram(chain+'_regionBE,'+chain+'_superpoint_multiplicity;L2MuonSAIO_superpoint_multiplicity_pT6_8',
312  title='superpoint multiplicity (pT6GeV-8GeV) '+chain+';barrel=0/endcap=1;number of superpoints',
313  cutmask=chain+'_pt6to8',
314  type='TH2I', path='',xbins=2,xmin=0,xmax=2,ybins=6,ymin=0,ymax=6)
315 
316  histGroup.defineHistogram(chain+'_regionBE,'+chain+'_superpoint_multiplicity;L2MuonSAIO_superpoint_multiplicity_pT8_x',
317  title='superpoint multiplicity (pT over 8GeV) '+chain+';barrel=0/endcap=1;number of superpoints',
318  cutmask=chain+'_ptover8',
319  type='TH2I', path='',xbins=2,xmin=0,xmax=2,ybins=6,ymin=0,ymax=6)
320 
321  # L2Inside-Out track multiplicity
322  histGroup.defineHistogram(chain+'_offPt,'+chain+'_L2InsideOut_track_multiplicity;L2InsideOut_track_multiplicity_toOffl_pt_Barrel',
323  title='L2Inside-Out track multiplicity per L2SA track wrt Offline in pt Barrel '+chain+';p_{T} [GeV/c];multiplicity',
324  cutmask=chain+'_isBarrel',
325  type='TH2F', path='',xbins=104,xmin=-52.,xmax=52.,ybins=10,ymin=0.,ymax=10.)
326 
327  histGroup.defineHistogram(chain+'_offPt,'+chain+'_L2InsideOut_track_multiplicity;L2InsideOut_track_multiplicity_toOffl_pt_Endcap',
328  title='L2Inside-Out track multiplicity per L2SA track wrt Offline in pt Endcap '+chain+';p_{T} [GeV/c];multiplicity',
329  cutmask=chain+'_isEndcap',
330  type='TH2F', path='',xbins=104,xmin=-52.,xmax=52.,ybins=10,ymin=0.,ymax=10.)
331 
332  # pt resolution of cbio track wrt offline track
333  histGroup.defineHistogram(chain+'_ptresol_pos;L2CBIO_ptresol_toOffl_pos',
334  title='L2CBIO pT resolution wrt Offline positive muons '+chain+';p_{T} resol;Events',
335  type='TH1F', path='',xbins=100,xmin=-0.2,xmax=0.2)
336 
337  histGroup.defineHistogram(chain+'_ptresol_neg;L2CBIO_ptresol_toOffl_neg',
338  title='L2CBIO pT resolution wrt Offline negative muons '+chain+';p_{T} resol;Events',
339  type='TH1F', path='',xbins=100,xmin=-0.2,xmax=0.2)
340 
341  histGroup.defineHistogram(chain+'_ptresol_pos;L2CBIO_ptresol_toOffl_pos_BarrelA',
342  title='L2CBIO pT resolution wrt Offline positive muons Barrel A-side '+chain+';p_{T} resol;Events',
343  cutmask=chain+'_isBarrelA',
344  type='TH1F', path='',xbins=100,xmin=-0.2,xmax=0.2)
345 
346  histGroup.defineHistogram(chain+'_ptresol_pos;L2CBIO_ptresol_toOffl_pos_BarrelC',
347  title='L2CBIO pT resolution wrt Offline positive muons Barrel C-side '+chain+';p_{T} resol;Events',
348  cutmask=chain+'_isBarrelC',
349  type='TH1F', path='',xbins=100,xmin=-0.2,xmax=0.2)
350 
351  histGroup.defineHistogram(chain+'_ptresol_pos;L2CBIO_ptresol_toOffl_pos_EndcapA',
352  title='L2CBIO pT resolution wrt Offline positive muons Endcap A-side '+chain+';p_{T} resol;Events',
353  cutmask=chain+'_isEndcapA',
354  type='TH1F', path='',xbins=100,xmin=-0.2,xmax=0.2)
355 
356  histGroup.defineHistogram(chain+'_ptresol_pos;L2CBIO_ptresol_toOffl_pos_EndcapC',
357  title='L2CBIO pT resolution wrt Offline positive muons Endcap C-side '+chain+';p_{T} resol;Events',
358  cutmask=chain+'_isEndcapC',
359  type='TH1F', path='',xbins=100,xmin=-0.2,xmax=0.2)
360 
361  histGroup.defineHistogram(chain+'_ptresol_neg;L2CBIO_ptresol_toOffl_neg_BarrelA',
362  title='L2CBIO pT resolution wrt Offline negative muons Barrel A-side '+chain+';p_{T} resol;Events',
363  cutmask=chain+'_isBarrelA',
364  type='TH1F', path='',xbins=100,xmin=-0.2,xmax=0.2)
365 
366  histGroup.defineHistogram(chain+'_ptresol_neg;L2CBIO_ptresol_toOffl_neg_BarrelC',
367  title='L2CBIO pT resolution wrt Offline negative muons Barrel C-side '+chain+';p_{T} resol;Events',
368  cutmask=chain+'_isBarrelC',
369  type='TH1F', path='',xbins=100,xmin=-0.2,xmax=0.2)
370 
371  histGroup.defineHistogram(chain+'_ptresol_neg;L2CBIO_ptresol_toOffl_neg_EndcapA',
372  title='L2CBIO pT resolution wrt Offline negative muons Endcap A-side '+chain+';p_{T} resol;Events',
373  cutmask=chain+'_isEndcapA',
374  type='TH1F', path='',xbins=100,xmin=-0.2,xmax=0.2)
375 
376  histGroup.defineHistogram(chain+'_ptresol_neg;L2CBIO_ptresol_toOffl_neg_EndcapC',
377  title='L2CBIO pT resolution wrt Offline negative muons Endcap C-side '+chain+';p_{T} resol;Events',
378  cutmask=chain+'_isEndcapC',
379  type='TH1F', path='',xbins=100,xmin=-0.2,xmax=0.2)
380 
381  histGroup.defineHistogram(chain+'_offEta,'+chain+'_ptresol;L2CBIO_ptresol_toOffl_eta',
382  title='L2CBIO pT resolution wrt Offline in eta '+chain+';#eta;p_{T} resol',
383  type='TH2F', path='',xbins=27,xmin=-2.7,xmax=2.7,ybins=100,ymin=-0.2,ymax=0.2)
384 
385  histGroup.defineHistogram(chain+'_offEta,'+chain+'_ptresol;L2CBIO_ptresol_toOffl_eta_pT4_6',
386  title='L2CBIO pT resolution wrt Offline in eta (pT4GeV-6GeV) '+chain+';#eta;p_{T} resol',
387  cutmask=chain+'_pt4to6',
388  type='TH2F', path='',xbins=27,xmin=-2.7,xmax=2.7,ybins=100,ymin=-0.2,ymax=0.2)
389 
390  histGroup.defineHistogram(chain+'_offEta,'+chain+'_ptresol;L2CBIO_ptresol_toOffl_eta_pT6_8',
391  title='L2CBIO pT resolution wrt Offline in eta (pT6GeV-8GeV) '+chain+';#eta;p_{T} resol',
392  cutmask=chain+'_pt6to8',
393  type='TH2F', path='',xbins=27,xmin=-2.7,xmax=2.7,ybins=100,ymin=-0.2,ymax=0.2)
394 
395  histGroup.defineHistogram(chain+'_offEta,'+chain+'_ptresol;L2CBIO_ptresol_toOffl_eta_pT8_x',
396  title='L2CBIO pT resolution wrt Offline in eta (pT over 8GeV) '+chain+';#eta;p_{T} resol',
397  cutmask=chain+'_ptover8',
398  type='TH2F', path='',xbins=27,xmin=-2.7,xmax=2.7,ybins=100,ymin=-0.2,ymax=0.2)
399 
400  histGroup.defineHistogram(chain+'_offPt,'+chain+'_ptresol;L2CBIO_ptresol_toOffl_pt_BarrelA',
401  title='L2CBIO pT resolution wrt Offline in pt Barrel A-side '+chain+';p_{T} [GeV/c];p_{T} resol',
402  cutmask=chain+'_isBarrelA',
403  type='TH2F', path='',xbins=104,xmin=-52.,xmax=52.,ybins=100,ymin=-0.2,ymax=0.2)
404 
405  histGroup.defineHistogram(chain+'_offPt,'+chain+'_ptresol;L2CBIO_ptresol_toOffl_pt_BarrelC',
406  title='L2CBIO pT resolution wrt Offline in pt Barrel C-side '+chain+';p_{T} [GeV/c];p_{T} resol',
407  cutmask=chain+'_isBarrelC',
408  type='TH2F', path='',xbins=104,xmin=-52.,xmax=52.,ybins=100,ymin=-0.2,ymax=0.2)
409 
410  histGroup.defineHistogram(chain+'_offPt,'+chain+'_ptresol;L2CBIO_ptresol_toOffl_pt_EndcapA',
411  title='L2CBIO pT resolution wrt Offline in pt Endcap A-side '+chain+';p_{T} [GeV/c];p_{T} resol',
412  cutmask=chain+'_isEndcapA',
413  type='TH2F', path='',xbins=104,xmin=-52.,xmax=52.,ybins=100,ymin=-0.2,ymax=0.2)
414 
415  histGroup.defineHistogram(chain+'_offPt,'+chain+'_ptresol;L2CBIO_ptresol_toOffl_pt_EndcapC',
416  title='L2CBIO pT resolution wrt Offline in pt Endcap C-side '+chain+';p_{T} [GeV/c];p_{T} resol',
417  cutmask=chain+'_isEndcapC',
418  type='TH2F', path='',xbins=104,xmin=-52.,xmax=52.,ybins=100,ymin=-0.2,ymax=0.2)
419 
420  return
ChainDefInMenu.groups
groups
Definition: ChainDefInMenu.py:43
python.TriggerConfigAccess.getHLTMonitoringAccess
HLTMonitoringAccess getHLTMonitoringAccess(flags=None)
Definition: TriggerConfigAccess.py:256
PrepareReferenceFile.regex
regex
Definition: PrepareReferenceFile.py:43
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.L2MuonSAIOMonConfig.L2MuonSAIOMonConfig
def L2MuonSAIOMonConfig(helper)
Definition: L2MuonSAIOMonConfig.py:6
readCCLHist.float
float
Definition: readCCLHist.py:83
match
bool match(std::string s1, std::string s2)
match the individual directories of two strings
Definition: hcg.cxx:356