13 '''Function to configures some algorithms in the monitoring system.'''
18 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
22 from MuonConfig.MuonGeometryConfig
import MuonGeoModelCfg
26 from MuonConfig.MuonSegmentNameFixConfig
import MuonSegmentNameFixCfg
31 from AthenaMonitoring
import AthMonitorCfgHelper
32 helper = AthMonitorCfgHelper(inputFlags,
'MdtAthMonitorCfg')
40 mdtMonAlg = helper.addAlgorithm(CompFactory.MdtRawDataMonAlg,
'MdtMonAlg')
41 mdtMonAlg.DoMdtEsd =
True
42 mdtMonAlg.DoChamberHist=
True
43 mdtMonAlg.maskNoisyTubes =
True
44 mdtMonAlg.ADCCut = 80.
45 mdtMonAlg.do_mdtChamberHits=
True
46 mdtMonAlg.do_mdttdccut_sector=
True
47 mdtMonAlg.do_mdtchamberstatphislice=
True
48 if (inputFlags.GeoModel.Run == LHCPeriod.Run3):
49 mdtMonAlg.do_Run3Geometry=
True
52 if inputFlags.Input.Release
and inputFlags.Input.Release.find(
"21.") != -1:
53 mdtMonAlg.SegmentKey = [
"TrackMuonSegments"]
55 if not inputFlags.DQ.triggerDataAvailable:
59 mdtGroup = helper.addGroup(mdtMonAlg,
'MdtMonitor',
'Muon/MuonRawDataMonitoring/MDT/')
65 mdtGroup.defineHistogram(
'run3geo;GeometryFlag', type=
'TH1F', cutmask=
'firstEvent',
66 title=
'GeometryFlag;flag;',
67 path=
'Overview', xbins=5, xmin=0., xmax=5)
69 mdtGroup.defineHistogram(
'mdt_tube_z_barrel,mdt_tube_perp_barrel;Number_of_BarrelMDTHits_inRZView_Global_ADCCut', type=
'TH2F',
70 title=
'Number_of_BarrelMDTHits_inRZView_Global_ADCCut;MDT-GlobalZ(mm);MDT-GlobalR(mm)',
71 path=
'Overview/Expert/Geometry', xbins=250,xmin=-25000.,xmax=25000., ybins=120, ymin=0., ymax=12000.
74 mdtGroup.defineHistogram(
'mdt_tube_x_barrel,mdt_tube_y_barrel;Number_of_BarrelMDTHits_inXYView_Global_ADCCut', type=
'TH2F',
75 title=
'Number_of_BarrelMDTHits_inXYView_Global_ADCCut;MDT-GlobalX(mm);MDT-GlobalY(mm)',
76 path=
'Overview/Expert/Geometry', xbins=150, xmin=-15000., xmax=15000., ybins=150, ymin=-15000., ymax=15000.
79 mdtGroup.defineHistogram(
'mdt_tube_z_ovl,mdt_tube_perp_ovl;Number_of_OverlapMDTHits_inRZView_Global_ADCCut', type=
'TH2F',
80 title=
'Number_of_OverlapMDTHits_inRZView_Global_ADCCut;MDT-GlobalZ(mm);MDT-GlobalR(mm)',
81 path=
'Overview/Expert/Geometry', xbins=250,xmin=-25000.,xmax=25000., ybins=120, ymin=0., ymax=12000.
84 mdtGroup.defineHistogram(
'mdt_tube_x_ovl,mdt_tube_y_ovl;Number_of_OverlapMDTHits_inXYView_Global_ADCCut', type=
'TH2F',
85 title=
'Number_of_OverlapMDTHits_inXYView_Global_ADCCut;MDT-GlobalX(mm);MDT-GlobalY(mm)',
86 path=
'Overview/Expert/Geometry', xbins=150, xmin=-15000., xmax=15000., ybins=150, ymin=-15000., ymax=15000.
89 mdtGroup.defineHistogram(
'mdt_tube_z_endcap,mdt_tube_perp_endcap;Number_of_EndcapMDTHits_inRZView_Global_ADCCut', type=
'TH2F',
90 title=
'Number_of_EndcapMDTHits_inRZView_Global_ADCCut;MDT-GlobalZ(mm);MDT-GlobalR(mm)',
91 path=
'Overview/Expert/Geometry', xbins=250,xmin=-25000.,xmax=25000., ybins=120, ymin=0., ymax=12000.
94 mdtGroup.defineHistogram(
'mdt_tube_x_endcap,mdt_tube_y_endcap;Number_of_EndcapMDTHits_inXYView_Global_ADCCut', type=
'TH2F',
95 title=
'Number_of_EndcapMDTHits_inXYView_Global_ADCCut;MDT-GlobalX(mm);MDT-GlobalY(mm)',
96 path=
'Overview/Expert/Geometry', xbins=150, xmin=-15000., xmax=15000., ybins=150, ymin=-15000., ymax=15000.
99 mdtGroup.defineHistogram(
'tdc_mon,adc_mon;Overall_TDCADC_spectrum', type=
'TH2F',
100 title=
'Overall_TDCADC_spectrum;[nsec];[adc counts]',
101 path=
'Overview', xbins=50, xmin=0., xmax=2000., ybins=20, ymin=0., ymax=400.
105 for phi
in range(0, 16):
110 if mdtMonAlg.do_Run3Geometry :
111 thisLabelx=
getMDTLabelx(
"run3_labels_sectorPhi"+sectPhi)
114 labels_allSec=labels_allSec+thisLabelx
115 title=
"MDTHitsOccup_ADCCut_Sector"+sectPhi
116 maxbin=len(thisLabelx)
118 mdtGroup.defineHistogram(
'hits_phi_'+sectPhi+
';'+title, type=
'TH1F',
119 title=title+
';;Number of hits',
120 path=
'Overview/HitOccupancies_Sectors', xbins=nbins, xmin=0., xmax=maxbin, xlabels=thisLabelx
122 maxbin=len(labels_allSec)
124 mdtGroup.defineHistogram(
'hits_allphi;Number_of_MDT_hits_per_chamber_ADCCut', type=
'TH1F',
125 title=
'Number_of_MDT_hits_per_chamber_ADCCut;;Number of hits',
126 path=
'Overview', xbins=nbins, xmin=0., xmax=maxbin, xlabels=labels_allSec
129 mdtGroup.defineHistogram(
'adc_mon_nosel;Overall_ADC_spectrum', type=
'TH1F',
130 title=
'Overall_ADC_spectrum;[adc counts];Number of Entries',
131 path=
'Overview', xbins=100, xmin=0., xmax=400.
134 mdtGroup.defineHistogram(
'adc_mon_nosel;Overall_ADC_spectrum_NoiseBursts', type=
'TH1F',
135 cutmask=
'noiseBurst',
136 title=
'Overall_ADC_spectrum_NoiseBursts;[adc counts];Number of Entries',
137 path=
'Overview', xbins=100, xmin=0., xmax=400.
141 mdtGroup.defineHistogram(
'adc_segs_overall_mon;Overall_ADC_OnSegm_spectrum', type=
'TH1F',
142 title=
'Overall_ADC_spectrum;[adc counts];Number of Entries',
143 path=
'Overview', xbins=100, xmin=0., xmax=400.)
146 mdtGroup.defineHistogram(
'tdc_mon_nosel,adc_mon_nosel;Overall_TDCADC_spectrum_NoiseBursts', type=
'TH2F',
147 cutmask=
'noiseBurst',
148 title=
'Overall_TDCADC_spectrum_NoiseBursts;[nsec];[adc counts]',
149 path=
'Overview', xbins=50, xmin=0., xmax=2000., ybins=20, ymin=0., ymax=400.
152 mdtGroup.defineHistogram(
'tdc_mon_nosel;Overall_TDC_spectrum_NoiseBursts', type=
'TH1F',
153 cutmask=
'noiseBurst',
154 title=
'Overall_TDC_spectrum_NoiseBursts;[nsec];Number of Entries',
155 path=
'Overview', xbins=120, xmin=0., xmax=2000.
159 mdtGroup.defineHistogram(
'tdc_mon_noiseBurst_adcCut;Overall_TDC_spectrum_NoiseBursts_ADCCut', type=
'TH1F',
160 title=
'Overall_TDC_spectrum_NoiseBursts_ADCCut;[nsec];Number of Entries',
161 path=
'Overview', xbins=120, xmin=0., xmax=2000.
164 mdtGroup.defineHistogram(
'tdc_mon_adcCut;Overall_TDC_ADCCUT_spectrum', type=
'TH1F',
165 title=
'Overall_TDC_spectrum_ADCCut;[nsec];Number of Entries',
166 path=
'Overview', xbins=120, xmin=0., xmax=2000.
169 mdtGroup.defineHistogram(
'tdc_segs_overall_mon;Overall_TDC_onSegm_ADCCut_spectrum', type=
'TH1F',
170 title=
'Overall_TDC_onSegm_ADCCut_spectrum;[nsec];Number of Entries',
171 path=
'Overview', xbins=120, xmin=0., xmax=2000.
174 mdtGroup.defineHistogram(
'nHighOccChambers_mon;number_of_Chambers_with_high_occupancy_per_event', type=
'TH1F',
175 title=
'number_of_Chambers_with_high_occupancy_per_event;[Number_of_MDT_chambers_with_high_occupancy];Number of Entries',
176 path=
'Overview', xbins=200, xmin=0., xmax=800.
178 mdtGroup.defineHistogram(
'nPrd_mon,Nhitsrpc_mon;MdtNHitsvsRpcNHits', type=
'TH2F',
179 title=
'MdtNHitsvsRpcNHits;[Number of MDT hits];[Number of RPC hits]',
180 path=
'Overview', xbins=1000, xmin=0., xmax=100000., ybins=100, ymin=0., ymax=10000.
182 mdtGroup.defineHistogram(
'nPrdcut_mon;TotalNumber_of_MDT_hits_per_event_ADCCut', type=
'TH1F',
183 title=
'TotalNumber_of_MDT_hits_per_event_ADCCut;[counts];Number of Event',
184 path=
'Overview', xbins=400, xmin=0., xmax=10000.
187 mdtGroup.defineHistogram(
'nPrdcut_mon;TotalNumber_of_MDT_hits_per_event_ADCCut_big', type=
'TH1F',
188 title=
'TotalNumber_of_MDT_hits_per_event_ADCCut_big;[counts];Number of Event',
189 path=
'Overview/Expert', xbins=200, xmin=0., xmax=100000.
192 mdtGroup.defineHistogram(
'nPrd_mon;TotalNumber_of_MDT_hits_per_event', type=
'TH1F',
193 title=
'TotalNumber_of_MDT_hits_per_event;[counts];Number of Event',
194 path=
'Overview', xbins=500, xmin=0., xmax=20000.
197 mdtGroup.defineHistogram(
'nPrd_mon;TotalNumber_of_MDT_hits_per_event_big', type=
'TH1F',
198 title=
'TotalNumber_of_MDT_hits_per_event_big;[counts];Number of Event',
199 path=
'Overview/Expert', xbins=200, xmin=0., xmax=100000.
202 mdtGroup.defineHistogram(
'nColl_mon;number_of_Chambers_with_hits_per_event', type=
'TH1F',
203 title=
'number_of_Chambers_with_hits_per_event;[Number_of_MDT_chambers_with_hits];Number of Entries',
204 path=
'Overview/Expert', xbins=400, xmin=0., xmax=1600.
207 mdtGroup.defineHistogram(
'nColl_ADCCut_mon;number_of_Chambers_with_hits_per_event_ADCCut', type=
'TH1F',
208 title=
'number_of_Chambers_with_hits_per_event_ADCCut;[Number_of_MDT_chambers_with_hits];Number of Entries',
209 path=
'Overview/Expert', xbins=400, xmin=0., xmax=1600.
212 bigRegions = [
"Barrel",
"EndCap"]
213 regions = [
"BA",
"BC",
"EA",
"EC"]
214 layers = [
"Inner",
"Middle",
"Outer",
"Extra"]
215 crates = [
"01",
"02",
"03",
"04"]
217 for iregion
in bigRegions:
218 theTitle =
"NumberOfHitsIn"+iregion+
"PerChamber_ADCCut_forpp"
219 theTitle_noise =
"NumberOfHitsIn"+iregion+
"PerChamber_ADCCutt_NoiseBurst"
220 theTitle_segs =
"NumberOfHitsIn"+iregion+
"PerChamber_onSegms_ADCCut_forpp"
221 theTitle_eff =
"effsIn"+iregion+
"PerChamber_ADCCut"
222 thisLabelx,thisLabely=
getMDTLabel(theTitle+
"_labelx",theTitle+
"_labely")
223 if iregion==
"Barrel":
230 hits=
"x_mon_barrel,y_mon_barrel;"
231 hits_noise=
"x_mon_barrel_noise,y_mon_barrel_noise;"
232 hits_segs=
"x_segs_mon_barrel,y_segs_mon_barrel;"
233 hits_eff=
"x_eff_mon_barrel,y_eff_mon_barrel;"
234 if iregion==
"EndCap":
241 hits=
"x_mon_endcap,y_mon_endcap;"
242 hits_noise=
"x_mon_endcap_noise,y_mon_endcap_noise;"
243 hits_segs=
"x_segs_mon_endcap,y_segs_mon_endcap;"
244 hits_eff=
"x_eff_mon_endcap,y_eff_mon_endcap;"
246 mdtGroup.defineHistogram(hits+theTitle, type=
'TH2F', title=theTitle+
";Eta;LayerPhi", path=
'Overview',
247 xbins=etabins, xmin=etamin, xmax=etamax, ybins=phibins, ymin=phimin, ymax=phimax, xlabels=thisLabelx, ylabels=thisLabely)
249 mdtGroup.defineHistogram(hits_noise+theTitle_noise, type=
'TH2F', title=theTitle_noise+
";Eta;LayerPhi", path=
'Overview',
250 xbins=etabins, xmin=etamin, xmax=etamax, ybins=phibins, ymin=phimin, ymax=phimax, xlabels=thisLabelx, ylabels=thisLabely)
252 mdtGroup.defineHistogram(hits_segs+theTitle_segs, type=
'TH2F', title=theTitle_segs+
";Eta;LayerPhi", path=
'Overview/Expert/RecoMonitoring',
253 xbins=etabins, xmin=etamin, xmax=etamax, ybins=phibins, ymin=phimin, ymax=phimax, xlabels=thisLabelx, ylabels=thisLabely)
255 mdtGroup.defineHistogram(hits_eff+theTitle_eff, type=
'TH2F', title=theTitle_eff+
";Eta;LayerPhi", path=
'Overview/Expert/RecoMonitoring',
256 xbins=etabins, xmin=etamin, xmax=etamax, ybins=phibins, ymin=phimin, ymax=phimax, xlabels=thisLabelx, ylabels=thisLabely)
260 for ilayer
in layers:
263 hits=
"x_mon_"+ilayer+
",y_mon_"+ilayer+
";"
264 theTitle =
"NumberOfHitsInMDT"+ilayer+
"_ADCCut"
265 thisLabelx,thisLabely=
getMDTLabel(theTitle+
"_labelx",theTitle+
"_labely")
269 if(ilayer==
"Middle"):
275 mdtGroup.defineHistogram(hits+theTitle, type=
'TH2F', title=theTitle+
";Eta station;Phi station", path=
'Overview',
276 xbins=etabins, xmin=0, xmax=etabins, ybins=phibins, ymin=0, ymax=phibins, xlabels=thisLabelx, ylabels=thisLabely)
281 for iregion
in regions:
282 MDT_regionGroup=
"MDT_regionGroup{0}".
format(iregion)
283 mdtRegionGroup=helper.addGroup(mdtMonAlg, MDT_regionGroup,
"Muon/MuonRawDataMonitoring/MDT/MDT"+iregion)
284 MDT_regionGroup_bycrate=
"MDT_regionGroup_bycrate{0}".
format(iregion)
285 mdtRegionGroup_bycrate=helper.addGroup(mdtMonAlg, MDT_regionGroup_bycrate,
"Muon/MuonRawDataMonitoring/MDT/MDT"+iregion)
289 title_ADC_segs_spectrum=
"MDTADC_segm_Summary_"+iregion
290 mdtRegionGroup.defineHistogram(
"adc_segs_mon;"+title_ADC_segs_spectrum, title=title_ADC_segs_spectrum+
";[adc counts];Number of Entries", type=
'TH1F',
291 path=
'Overview', xbins=100, xmin=0.5, xmax=400.5)
293 title_TDCADC_spectrum=
"Overall_TDCADC_spectrum_"+iregion
294 title_TDCADC_spectrum_noiseBurst=
"Overall_TDCADC_spectrum_"+iregion+
"_NoiseBurst"
295 mdtRegionGroup.defineHistogram(
"tdc_mon,adc_mon;"+title_TDCADC_spectrum, title=title_TDCADC_spectrum+
";[nsec];[adc counts]", type=
'TH2F',
296 path=
'Overview', xbins=50, xmin=0., xmax=2000., ybins=20, ymin=0., ymax=400.)
297 mdtRegionGroup.defineHistogram(
"tdc_mon_nb2,adc_mon_nb2;"+title_TDCADC_spectrum_noiseBurst, title=title_TDCADC_spectrum_noiseBurst+
";[nsec];[adc counts]",
298 type=
'TH2F', path=
'Overview', xbins=50, xmin=0., xmax=2000., ybins=20, ymin=0., ymax=400.)
299 title_ADCSummaryRegion=
"MDTADC_Summary_"+iregion
300 mdtRegionGroup.defineHistogram(
"adc_mon;"+title_ADCSummaryRegion, type=
'TH1F',
301 title=title_ADCSummaryRegion+
";[adc counts];Number of Entries",
302 path=
'Overview', xbins=100, xmin=0., xmax=400.)
304 title_ADCSummaryRegion=
"MDTADC_Summary_ADCCUT_"+iregion
305 mdtRegionGroup.defineHistogram(
"adc_mon_adccut;"+title_ADCSummaryRegion, type=
'TH1F',
306 title=title_ADCSummaryRegion+
";[adc counts];Number of Entries",
307 path=
'Overview', xbins=100, xmin=0., xmax=400.)
309 title_TDCSummaryRegion=
"MDTTDC_Summary_ADCCut_"+iregion
310 mdtRegionGroup.defineHistogram(
"tdc_mon_adccut;"+title_TDCSummaryRegion, type=
'TH1F',
311 title=title_TDCSummaryRegion+
";[nsec];Number of Entries",
312 path=
'Overview', xbins=120, xmin=0., xmax=2000.)
314 title_TDCSummaryRegion_segs=
"MDTTDC_segm_Summary_ADCCut_"+iregion
315 mdtRegionGroup.defineHistogram(
"tdc_segs_region_mon;"+title_TDCSummaryRegion_segs, type=
'TH1F',
316 title=title_TDCSummaryRegion_segs+
";[nsec];Number of Entries",
317 path=
'Overview', xbins=120, xmin=0., xmax=2000.)
319 title_TDC_NoiseBursts =
"MDTTDC_NoiseBursts_"+iregion
320 mdtRegionGroup.defineHistogram(
"tdc_mon_nb1;"+title_TDC_NoiseBursts, type=
'TH1F',
321 title=title_TDC_NoiseBursts+
";[nsec];Number of Entries",
322 path=
'Overview', xbins=120, xmin=0., xmax=2000.)
324 title_TDC_NoiseBursts =
"MDTTDC_NoiseBursts_ADCCUT_"+iregion
325 mdtRegionGroup.defineHistogram(
"tdc_mon_nb3;"+title_TDC_NoiseBursts, type=
'TH1F',
326 title=title_TDC_NoiseBursts+
";[nsec];Number of Entries",
327 path=
'Overview', xbins=120, xmin=0., xmax=2000.)
329 title_ADC_NoiseBursts =
"MDTADC_NoiseBursts_"+iregion
330 mdtRegionGroup.defineHistogram(
"adc_mon_nb1;"+title_ADC_NoiseBursts, type=
'TH1F',
331 title=title_ADC_NoiseBursts+
";[adc counts];Number of Entries",
332 path=
'Overview', xbins=100, xmin=0., xmax=400.)
334 title_TDC_RPCtrig =
"MDTTDC_Summary_ADCCut_"+iregion+
"_RPC"
335 mdtRegionGroup.defineHistogram(
"tdc_mon_rpc;"+title_TDC_RPCtrig, type=
'TH1F',
336 title=title_TDC_RPCtrig+
";[nsec];Number of Entries",
337 path=
'Overview', xbins=120, xmin=0., xmax=2000.)
339 title_TDC_TGCtrig =
"MDTTDC_Summary_ADCCut_"+iregion+
"_TGC"
340 mdtRegionGroup.defineHistogram(
"tdc_mon_tgc;"+title_TDC_TGCtrig, type=
'TH1F',
341 title=title_TDC_TGCtrig+
";[nsec];Number of Entries",
342 path=
'Overview', xbins=120, xmin=0., xmax=2000.)
344 for ilayer
in layers:
345 title_MDTNumberOfHitsPerML=
"NumberOfHitsIn"+iregion+ilayer+
"PerMultiLayer_ADCCut_forpp"
346 thisLabelx,thisLabely=
getMDTLabel(title_MDTNumberOfHitsPerML+
"_labelx",title_MDTNumberOfHitsPerML+
"_labely")
348 if (iregion==
"BA" or iregion==
"BC")
and ilayer==
"Extra": phimaxML=phimax//2
349 if (iregion==
"BA" or iregion==
"BC")
and ilayer==
"Inner": phimaxML=phimax*2+4
351 if (iregion==
"BA" or iregion==
"BC")
and ilayer==
"Inner": etamax=8
352 if (iregion==
"BA" or iregion==
"BC")
and ilayer==
"Middle": etamax=6
353 if iregion==
"BA" and ilayer==
"Outer": etamax=9
354 if iregion==
"BC" and ilayer==
"Outer": etamax=8
355 if (iregion==
"EA" or iregion==
"EC")
and ilayer==
"Inner": etamax=5
356 if (iregion==
"EA" or iregion==
"EC")
and ilayer==
"Middle": etamax=5
357 if (iregion==
"EA" or iregion==
"EC")
and ilayer==
"Outer": etamax=6
358 var=
"x_mon_"+iregion+
"_"+ilayer+
",y_mon_"+iregion+
"_"+ilayer+
";"
359 mdtRegionGroup.defineHistogram(var+title_MDTNumberOfHitsPerML, title=title_MDTNumberOfHitsPerML+
";[Eta];[Phi - Multilayer]", type=
'TH2F',
360 path=
'Overview', xbins=etamax, xmin=0, xmax=etamax, ybins=phimaxML, ymin=0., ymax=phimaxML, xlabels=thisLabelx, ylabels=thisLabely)
362 for phi
in range(1, phimax+1):
363 if not (mdtMonAlg.do_Run3Geometry
and (iregion==
"EA" or iregion==
"EC")
and (phi%2==0)):
364 if not ((iregion==
"BA" or iregion==
"BC")
and ilayer==
"Extra" and (phi%2!=0)):
365 var=
"stEta_"+iregion+
"_"+ilayer+
"_phi"+
str(phi)+
";"
366 title_MDTHitSummary=
"MDTHits_ADCCut_"+iregion+
"_"+ilayer+
"_StPhi"+
str(phi)
369 if ilayer==
"Inner" and (iregion==
"BA" or iregion==
"BC"):
372 mdtRegionGroup.defineHistogram(var+title_MDTHitSummary, title=title_MDTHitSummary+
";StationEta;Number of Entries", type=
'TH1F',
373 path=
'Overview/Hits', xbins=max-1, xmin=1., xmax=max)
376 vartdc=
"tdc_segs_"+iregion+
"_"+ilayer+
"_phi"+
str(phi)+
";"
377 title_MDTTDCSummary=
"MDTTDC_ADCCut_"+iregion+
"_"+ilayer+
"_StPhi"+
str(phi)
378 mdtRegionGroup.defineHistogram(vartdc+title_MDTTDCSummary, title=title_MDTTDCSummary+
";[nsec];Number of Entries", type=
'TH1F',
379 path=
'Overview/TDC', xbins=100, xmin=0, xmax=2000)
383 labelsY=
getMDTLabelx(
"labelY_OccupancyVsLB_"+iregion+
"_OuterExtra")
384 titleOccvsLbPerRegionPerLayer =
"OccupancyVsLB_"+iregion+
"OuterPlusExtra"
385 var=
"lb_mon,y_mon_bin_"+iregion+
"_OuterPlusExtra;"+titleOccvsLbPerRegionPerLayer
394 elif(ilayer==
"Middle" or ilayer==
"Inner"):
395 labelsY=
getMDTLabelx(
"labelY_OccupancyVsLB_"+iregion+
"_"+ilayer)
396 titleOccvsLbPerRegionPerLayer =
"OccupancyVsLB_"+iregion+ilayer
397 var=
"lb_mon,y_mon_bin_"+iregion+
"_"+ilayer+
";"+titleOccvsLbPerRegionPerLayer
399 if(iregion==
"BA" or iregion==
"BC"):
401 if (mdtMonAlg.do_Run3Geometry
and iregion==
"BA"):
402 labelsY=
getMDTLabelx(
"run3_labelY_OccupancyVsLB_"+iregion+
"_"+ilayer)
404 if(iregion==
"EA" or iregion==
"EC"):
406 if (mdtMonAlg.do_Run3Geometry):
408 labelsY=
getMDTLabelx(
"run3_labelY_OccupancyVsLB_"+iregion+
"_"+ilayer)
409 elif (ilayer==
"Middle"):
410 if(iregion==
"BA" or iregion==
"BC"):
412 if(iregion==
"EA" or iregion==
"EC"):
415 if ilayer !=
'Extra':
416 mdtRegionGroup.defineHistogram(var, title=titleOccvsLbPerRegionPerLayer+
";LB;[Eta - Phi]", type=
'TH2F',
417 path=
'Overview', xbins=834, xmin=1, xmax=2502, ybins=maxy, ymin=0, ymax=maxy, ylabels=labelsY, opt=
'kAddBinsDynamically', merge=
'merge')
419 for icrate
in crates:
421 labelsY=
getMDTLabelx(
"labelY_OccupancyVsLB_"+iregion+icrate)
422 if(iregion==
"BA" or iregion==
"BC"):
433 elif(iregion==
"EA" or iregion==
"EC"):
434 if mdtMonAlg.do_Run3Geometry:
435 labelsY=
getMDTLabelx(
"run3_labelY_OccupancyVsLB_"+iregion+icrate)
438 if(mdtMonAlg.do_Run3Geometry
and iregion==
"EA"):
440 if(mdtMonAlg.do_Run3Geometry
and iregion==
"EC"):
444 if(mdtMonAlg.do_Run3Geometry
and iregion==
"EA"):
446 if(mdtMonAlg.do_Run3Geometry
and iregion==
"EC"):
450 if(mdtMonAlg.do_Run3Geometry
and iregion==
"EA"):
452 if(mdtMonAlg.do_Run3Geometry
and iregion==
"EC"):
456 if(mdtMonAlg.do_Run3Geometry
and iregion==
"EA"):
458 if(mdtMonAlg.do_Run3Geometry
and iregion==
"EC"):
461 titleOccvsLbPerRegionPerCrate =
"OccupancyVsLB_"+iregion+icrate
462 var=
"lb_mon,y_mon_bin_bycrate_"+iregion+
"_"+icrate+
";"+titleOccvsLbPerRegionPerCrate
463 mdtRegionGroup_bycrate.defineHistogram(var, type=
'TH2F', title=titleOccvsLbPerRegionPerCrate+
";LB;[Eta-Phi]",
464 path=
'Overview', xbins=834, xmin=1, xmax=2502, ybins=maxy, ymin=0, ymax=maxy, ylabels=labelsY, opt=
'kAddBinsDynamically', merge=
'merge')
466 titleOccvsLbPerRegionPerCrate_ontrack =
"OccupancyVsLB_ontrack_"+iregion+icrate
467 var=
"lb_mon,y_mon_bin_bycrate_ontrack_"+iregion+
"_"+icrate+
";"+titleOccvsLbPerRegionPerCrate_ontrack
468 mdtRegionGroup_bycrate.defineHistogram(var, title=titleOccvsLbPerRegionPerCrate_ontrack+
";LB;[Eta - Phi]", type=
'TH2F',
469 path=
'Overview', xbins=834, xmin=1, xmax=2502, ybins=maxy, ymin=0, ymax=maxy, ylabels=labelsY, opt=
'kAddBinsDynamically', merge=
'merge')
472 mdtGroup.defineHistogram(
'lb_mon,sector;OccupancyPerSectorVsLB', type=
'TH2F',
473 title=
'OccupancyPerSectorVsLB;LB;[Phi]',
474 path=
'Overview', xbins=834, xmin=1, xmax=2502, ybins=64, ymin=0., ymax=64., ylabels=labelsY, opt=
'kAddBinsDynamically', merge=
'merge')
478 mdtPerChamberBAGroup=helper.addGroup(mdtMonAlg,
"MdtMonPerChamberBA",
"Muon/MuonRawDataMonitoring/MDT/MDTBA/Chambers")
480 title_mdttdc= ch+
"_MDT_Station_TDC"
481 var=
"tdc_perch_"+ch+
";"+title_mdttdc
482 mdtPerChamberBAGroup.defineHistogram(var, title=title_mdttdc+
";[nsec];Number of Entries",
483 type=
'TH1F', path=ch, xbins=100, xmin=0., xmax=2000.)
484 title_mdttdc_ml1_adccut=ch+
"_MDT_Station_TDC_ML1_ADCCut"
485 var=
"tdc_perch_"+ch+
";"+title_mdttdc_ml1_adccut
486 mdtPerChamberBAGroup.defineHistogram(var, title=title_mdttdc_ml1_adccut+
";[nsec];Number of Entries",
487 cutmask=
'ml1_adccut',
488 type=
'TH1F', path=ch, xbins=100, xmin=0., xmax=2000.)
489 title_mdttdc_ml2_adccut=ch+
"_MDT_Station_TDC_ML2_ADCCut"
490 var=
"tdc_perch_"+ch+
";"+title_mdttdc_ml2_adccut
491 mdtPerChamberBAGroup.defineHistogram(var, title=title_mdttdc_ml2_adccut+
";[nsec];Number of Entries",
492 cutmask=
'ml2_adccut',
493 type=
'TH1F', path=ch, xbins=100, xmin=0., xmax=2000.)
494 title_mdtadc= ch+
"_MDT_Station_ADC"
495 var=
"adc_perch_"+ch+
";"+title_mdtadc
496 mdtPerChamberBAGroup.defineHistogram(var, type=
'TH1F',
497 title=title_mdtadc+
";[adc counts];Number of Entries",
498 path=ch, xbins=100, xmin=0., xmax=400.)
500 title_mdtadc_segs_ml1= ch+
"_MDT_Station_ADC_onSegm_ML1"
501 var=
"adc_segs_perch_"+ch+
";"+title_mdtadc_segs_ml1
502 mdtPerChamberBAGroup.defineHistogram(var, type=
'TH1F',
504 title=title_mdtadc_segs_ml1+
";[adc counts];Number of Entries",
505 path=ch, xbins=100, xmin=0., xmax=400.)
506 title_mdtadc_segs_ml2= ch+
"_MDT_Station_ADC_onSegm_ML2"
507 var=
"adc_segs_perch_"+ch+
";"+title_mdtadc_segs_ml2
508 mdtPerChamberBAGroup.defineHistogram(var, type=
'TH1F',
510 title=title_mdtadc_segs_ml2+
";[adc counts];Number of Entries",
511 path=ch, xbins=100, xmin=0., xmax=400.)
513 title_mdtdcadc= ch+
"_MDT_Station_TDCADC"
514 var=
"tdc_perch_"+ch+
",adc_perch_"+ch+
";"+title_mdtdcadc
515 mdtPerChamberBAGroup.defineHistogram(var, type=
'TH2F',
516 title=title_mdtdcadc+
';[nsec];[adc counts]',
517 path=ch, xbins=50, xmin=0., xmax=2000., ybins=20, ymin=0., ymax=400.)
520 title_mdtlayer= ch+
"_MDT_Station_LAYER_ADCCut"
521 var=
"layer_perch_"+ch+
";"+title_mdtlayer
522 mdtPerChamberBAGroup.defineHistogram(var, type=
'TH1F',
523 cutmask=
'adccut_nonoise',
524 title=title_mdtlayer+
";layerID;Number of Entries",
525 path=ch, xbins=10, xmin=0., xmax=10.)
527 title_mdttube= ch+
"_MDT_Station_TUBE_ADCCut"
528 var=
"tube_perch_"+ch+
";"+title_mdttube
530 if mdtMonAlg.do_Run3Geometry
and ch[0:5]==
"BIS7A":
531 binmax=tubeMax_smdt[ch]
532 mdtPerChamberBAGroup.defineHistogram(var, type=
'TH1F',
534 title=title_mdttube+
";tubeID;Number of Entries",
535 path=ch, xbins=binmax, xmin=1., xmax=binmax+1)
537 title_effentries=ch+
"_MDT_Station_EFFENTRIES"
538 var=
"tube_perch_segs_"+ch+
";"+title_effentries
539 mdtPerChamberBAGroup.defineHistogram(var, type=
'TH1F',
540 title=title_effentries+
";tubeID;Number of Entries",
541 path=ch, xbins=binmax, xmin=1., xmax=binmax+1)
543 title_effcounts=ch+
"_MDT_Station_EFFCOUNTS"
544 var=
"tube_perch_segs_"+ch+
";"+title_effcounts
545 mdtPerChamberBAGroup.defineHistogram(var, type=
'TH1F',
547 title=title_effcounts+
";tubeID;Number of Entries",
548 path=ch, xbins=binmax, xmin=1., xmax=binmax+1)
550 title_eff=ch+
"_MDT_Station_EFFPERTUBE"
551 var_eff=
"hitcut,tube_perch_segs_"+ch+
";"+title_eff
552 mdtPerChamberBAGroup.defineHistogram(var_eff,
553 title=title_eff+
";tubeID;Efficiency",
555 path=ch, xbins=binmax, xmin=1., xmax=binmax+1)
559 title_mdtmezz= ch+
"_MDT_Station_MEZZ_ADCCut"
560 mdtPerChamberBAGroup.defineHistogram(
"mezz_perch_"+ch+
";"+title_mdtmezz, type=
'TH1F',
561 title=title_mdtmezz+
";mezzID;Number of Entries",
562 path=ch, xbins=20, xmin=0., xmax=20.)
564 mdtPerChamberBCGroup=helper.addGroup(mdtMonAlg,
"MdtMonPerChamberBC",
"Muon/MuonRawDataMonitoring/MDT/MDTBC/Chambers")
566 title_mdttdc=ch+
"_MDT_Station_TDC"
567 var=
"tdc_perch_"+ch+
";"+title_mdttdc
568 mdtPerChamberBCGroup.defineHistogram(var, title=title_mdttdc+
";[nsec];Number of Entries",
569 type=
'TH1F', path=ch, xbins=100, xmin=0., xmax=2000.)
570 title_mdttdc_ml1_adccut=ch+
"_MDT_Station_TDC_ML1_ADCCut"
571 var=
"tdc_perch_"+ch+
";"+title_mdttdc_ml1_adccut
572 mdtPerChamberBCGroup.defineHistogram(var, title=title_mdttdc_ml1_adccut+
";[nsec];Number of Entries",
573 cutmask=
'ml1_adccut',
574 type=
'TH1F', path=ch, xbins=100, xmin=0., xmax=2000.)
575 title_mdttdc_ml2_adccut=ch+
"_MDT_Station_TDC_ML2_ADCCut"
576 var=
"tdc_perch_"+ch+
";"+title_mdttdc_ml2_adccut
577 mdtPerChamberBCGroup.defineHistogram(var, title=title_mdttdc_ml2_adccut+
";[nsec];Number of Entries",
578 cutmask=
'ml2_adccut',
579 type=
'TH1F', path=ch, xbins=100, xmin=0., xmax=2000.)
580 title_mdtadc= ch+
"_MDT_Station_ADC"
581 var=
"adc_perch_"+ch+
";"+title_mdtadc
582 mdtPerChamberBCGroup.defineHistogram(var, title=title_mdtadc+
";[adc counts];Number of Entries",
583 path=ch, xbins=100, xmin=0., xmax=400.)
585 title_mdtadc_segs_ml1= ch+
"_MDT_Station_ADC_onSegm_ML1"
586 var=
"adc_segs_perch_"+ch+
";"+title_mdtadc_segs_ml1
587 mdtPerChamberBCGroup.defineHistogram(var, type=
'TH1F',
589 title=title_mdtadc_segs_ml1+
";[adc counts];Number of Entries",
590 path=ch, xbins=100, xmin=0., xmax=400.)
591 title_mdtadc_segs_ml2= ch+
"_MDT_Station_ADC_onSegm_ML2"
592 var=
"adc_segs_perch_"+ch+
";"+title_mdtadc_segs_ml2
593 mdtPerChamberBCGroup.defineHistogram(var, type=
'TH1F',
595 title=title_mdtadc_segs_ml2+
";[adc counts];Number of Entries",
596 path=ch, xbins=100, xmin=0., xmax=400.)
599 title_mdtdcadc= ch+
"_MDT_Station_TDCADC"
600 var=
"tdc_perch_"+ch+
",adc_perch_"+ch+
";"+title_mdtdcadc
601 mdtPerChamberBCGroup.defineHistogram(var, type=
'TH2F',
602 title=title_mdtdcadc+
';[nsec];[adc counts]',
603 path=ch, xbins=50, xmin=0., xmax=2000., ybins=20, ymin=0., ymax=400.)
604 title_mdtlayer= ch+
"_MDT_Station_LAYER_DCCut"
605 var=
"layer_perch_"+ch+
";"+title_mdtlayer
606 mdtPerChamberBCGroup.defineHistogram(var, type=
'TH1F',
607 cutmask=
'adccut_nonoise',
608 title=title_mdtlayer+
";layerID;Number of Entries",
609 path=ch, xbins=10, xmin=0., xmax=10.)
610 title_mdttube= ch+
"_MDT_Station_TUBE_ADCCut"
611 var=
"tube_perch_"+ch+
";"+title_mdttube
613 mdtPerChamberBCGroup.defineHistogram(var, type=
'TH1F',
615 title=title_mdttube+
";tubeID;Number of Entries",
616 path=ch, xbins=binmax, xmin=1., xmax=binmax+1)
618 title_effentries=ch+
"_MDT_Station_EFFENTRIES"
619 var=
"tube_perch_segs_"+ch+
";"+title_effentries
620 mdtPerChamberBCGroup.defineHistogram(var, type=
'TH1F',
621 title=title_effentries+
";tubeID;Number of Entries",
622 path=ch, xbins=binmax, xmin=1., xmax=binmax+1)
624 title_effcounts=ch+
"_MDT_Station_EFFCOUNTS"
625 var=
"tube_perch_segs_"+ch+
";"+title_effcounts
626 mdtPerChamberBCGroup.defineHistogram(var, type=
'TH1F',
628 title=title_effcounts+
";tubeID;Number of Entries",
629 path=ch, xbins=binmax, xmin=1., xmax=binmax+1)
630 title_eff=ch+
"_MDT_Station_EFFPERTUBE"
631 var_eff=
"hitcut,tube_perch_segs_"+ch+
";"+title_eff
632 mdtPerChamberBCGroup.defineHistogram(var_eff,
633 title=title_eff+
";tubeID;Efficiency",
635 path=ch, xbins=binmax, xmin=1., xmax=binmax+1)
637 title_mdtmezz= ch+
"_MDT_Station_MEZZ_ADCCut"
638 mdtPerChamberBCGroup.defineHistogram(
"mezz_perch_"+ch+
";"+title_mdtmezz, type=
'TH1F',
639 title=title_mdtmezz+
";mezzID;Number of Entries",
640 path=ch, xbins=20, xmin=0., xmax=20.)
642 mdtPerChamberEAGroup=helper.addGroup(mdtMonAlg,
"MdtMonPerChamberEA",
"Muon/MuonRawDataMonitoring/MDT/MDTEA/Chambers")
644 title_mdttdc=ch+
"_MDT_Station_TDC"
645 var=
"tdc_perch_"+ch+
";"+title_mdttdc
646 mdtPerChamberEAGroup.defineHistogram(var, title=title_mdttdc+
";[nsec];Number of Entries",
647 type=
'TH1F', path=ch, xbins=100, xmin=0., xmax=2000.)
648 title_mdttdc_ml1_adccut=ch+
"_MDT_Station_TDC_ML1_ADCCut"
649 var=
"tdc_perch_"+ch+
";"+title_mdttdc_ml1_adccut
650 mdtPerChamberEAGroup.defineHistogram(var, title=title_mdttdc_ml1_adccut+
";[nsec];Number of Entries",
651 cutmask=
'ml1_adccut',
652 type=
'TH1F', path=ch, xbins=100, xmin=0., xmax=2000.)
653 title_mdttdc_ml2_adccut=ch+
"_MDT_Station_TDC_ML2_ADCCut"
654 var=
"tdc_perch_"+ch+
";"+title_mdttdc_ml2_adccut
655 mdtPerChamberEAGroup.defineHistogram(var, title=title_mdttdc_ml2_adccut+
";[nsec];Number of Entries",
656 cutmask=
'ml2_adccut',
657 type=
'TH1F', path=ch, xbins=100, xmin=0., xmax=2000.)
658 title_mdtadc= ch+
"_MDT_Station_ADC"
659 var=
"adc_perch_"+ch+
";"+title_mdtadc
660 mdtPerChamberEAGroup.defineHistogram(var, type=
'TH1F',
661 title=title_mdtadc+
";[adc counts];Number of Entries",
662 path=ch, xbins=100, xmin=0., xmax=400.)
664 title_mdtadc_segs_ml1= ch+
"_MDT_Station_ADC_onSegm_ML1"
665 var=
"adc_segs_perch_"+ch+
";"+title_mdtadc_segs_ml1
666 mdtPerChamberEAGroup.defineHistogram(var, type=
'TH1F',
668 title=title_mdtadc_segs_ml1+
";[adc counts];Number of Entries",
669 path=ch, xbins=100, xmin=0., xmax=400.)
670 title_mdtadc_segs_ml2= ch+
"_MDT_Station_ADC_onSegm_ML2"
671 var=
"adc_segs_perch_"+ch+
";"+title_mdtadc_segs_ml2
672 mdtPerChamberEAGroup.defineHistogram(var, type=
'TH1F',
674 title=title_mdtadc_segs_ml2+
";[adc counts];Number of Entries",
675 path=ch, xbins=100, xmin=0., xmax=400.)
679 title_mdtdcadc= ch+
"_MDT_Station_TDCADC"
680 var=
"tdc_perch_"+ch+
",adc_perch_"+ch+
";"+title_mdtdcadc
681 mdtPerChamberEAGroup.defineHistogram(var, type=
'TH2F',
682 title=title_mdtdcadc+
";[nsec];[adc counts]",
683 path=ch, xbins=50, xmin=0., xmax=2000., ybins=20, ymin=0., ymax=400.)
685 title_mdtlayer= ch+
"_MDT_Station_LAYER_DCCut"
686 var=
"layer_perch_"+ch+
";"+title_mdtlayer
687 mdtPerChamberEAGroup.defineHistogram(var, type=
'TH1F',
688 cutmask=
'adccut_nonoise',
689 title=title_mdtlayer+
";layerID;Number of Entries",
690 path=ch, xbins=10, xmin=0., xmax=10.)
692 title_mdttube= ch+
"_MDT_Station_TUBE_ADCCut"
693 var=
"tube_perch_"+ch+
";"+title_mdttube
695 mdtPerChamberEAGroup.defineHistogram(var, type=
'TH1F',
697 title=title_mdttube+
";tubeID;Number of Entries",
698 path=ch, xbins=binmax, xmin=1., xmax=binmax+1)
700 title_effentries=ch+
"_MDT_Station_EFFENTRIES"
701 var=
"tube_perch_segs_"+ch+
";"+title_effentries
702 mdtPerChamberEAGroup.defineHistogram(var, type=
'TH1F',
703 title=title_effentries+
";tubeID;Number of Entries",
704 path=ch, xbins=binmax, xmin=1., xmax=binmax+1)
706 title_effcounts=ch+
"_MDT_Station_EFFCOUNTS"
707 var=
"tube_perch_segs_"+ch+
";"+title_effcounts
708 mdtPerChamberEAGroup.defineHistogram(var, type=
'TH1F',
710 title=title_effcounts+
";tubeID;Number of Entries",
711 path=ch, xbins=binmax, xmin=1., xmax=binmax+1)
713 title_eff=ch+
"_MDT_Station_EFFPERTUBE"
714 var_eff=
"hitcut,tube_perch_segs_"+ch+
";"+title_eff
715 mdtPerChamberEAGroup.defineHistogram(var_eff,
716 title=title_eff+
";tubeID;Efficiency",
718 path=ch, xbins=binmax, xmin=1., xmax=binmax+1)
720 title_mdtmezz= ch+
"_MDT_Station_MEZZ_ADCCut"
721 mdtPerChamberEAGroup.defineHistogram(
"mezz_perch_"+ch+
";"+title_mdtmezz, type=
'TH1F',
723 title=title_mdtmezz+
";mezzID;Number of Entries",
724 path=ch, xbins=20, xmin=0., xmax=20.)
726 mdtPerChamberECGroup=helper.addGroup(mdtMonAlg,
"MdtMonPerChamberEC",
"Muon/MuonRawDataMonitoring/MDT/MDTEC/Chambers")
728 title_mdttdc=ch+
"_MDT_Station_TDC"
729 var=
"tdc_perch_"+ch+
";"+title_mdttdc
730 mdtPerChamberECGroup.defineHistogram(var, title=title_mdttdc+
";[nsec];Number of Entries",
731 type=
'TH1F', path=ch, xbins=100, xmin=0., xmax=2000.)
732 title_mdttdc_ml1_adccut=ch+
"_MDT_Station_TDC_ML1_ADCCut"
733 var=
"tdc_perch_"+ch+
";"+title_mdttdc_ml1_adccut
734 mdtPerChamberECGroup.defineHistogram(var, title=title_mdttdc_ml1_adccut+
";[nsec];Number of Entries",
735 cutmask=
'ml1_adccut',
736 type=
'TH1F', path=ch, xbins=100, xmin=0., xmax=2000.)
737 title_mdttdc_ml2_adccut=ch+
"_MDT_Station_TDC_ML2_ADCCut"
738 var=
"tdc_perch_"+ch+
";"+title_mdttdc_ml2_adccut
739 mdtPerChamberECGroup.defineHistogram(var, title=title_mdttdc_ml2_adccut+
";[nsec];Number of Entries",
740 cutmask=
'ml2_adccut',
741 type=
'TH1F', path=ch, xbins=100, xmin=0., xmax=2000.)
742 title_mdtadc= ch+
"_MDT_Station_ADC"
743 var=
"adc_perch_"+ch+
";"+title_mdtadc
744 mdtPerChamberECGroup.defineHistogram(var, type=
'TH1F',
745 title=title_mdtadc+
";[adc counts];Number of Entries",
746 path=ch, xbins=100, xmin=0., xmax=400.)
747 title_mdtadc_segs_ml1= ch+
"_MDT_Station_ADC_onSegm_ML1"
748 var=
"adc_segs_perch_"+ch+
";"+title_mdtadc_segs_ml1
749 mdtPerChamberECGroup.defineHistogram(var, type=
'TH1F',
751 title=title_mdtadc_segs_ml1+
";[adc counts];Number of Entries",
752 path=ch, xbins=100, xmin=0., xmax=400.)
753 title_mdtadc_segs_ml2= ch+
"_MDT_Station_ADC_onSegm_ML2"
754 var=
"adc_segs_perch_"+ch+
";"+title_mdtadc_segs_ml2
755 mdtPerChamberECGroup.defineHistogram(var, type=
'TH1F',
757 title=title_mdtadc_segs_ml2+
";[adc counts];Number of Entries",
758 path=ch, xbins=100, xmin=0., xmax=400.)
762 title_mdtdcadc= ch+
"_MDT_Station_TDCADC"
763 var=
"tdc_perch_"+ch+
",adc_perch_"+ch+
";"+title_mdtdcadc
764 mdtPerChamberECGroup.defineHistogram(var, type=
'TH2F',
765 title=title_mdtdcadc+
';[nsec];[adc counts]',
766 path=ch, xbins=50, xmin=0., xmax=2000., ybins=20, ymin=0., ymax=400.)
768 title_mdtlayer= ch+
"_MDT_Station_LAYER_ADCCut"
769 var=
"layer_perch_"+ch+
";"+title_mdtlayer
770 mdtPerChamberECGroup.defineHistogram(var, type=
'TH1F',
771 cutmask=
'adccut_nonoise',
772 title=title_mdtlayer+
";layerID;Number of Entries",
773 path=ch, xbins=10, xmin=0., xmax=10.)
774 title_mdttube= ch+
"_MDT_Station_TUBE_ADCCut"
775 var=
"tube_perch_"+ch+
";"+title_mdttube
777 mdtPerChamberECGroup.defineHistogram(var, type=
'TH1F',
779 title=title_mdttube+
";tubeID;Number of Entries",
780 path=ch, xbins=binmax, xmin=0., xmax=binmax)
782 title_effentries=ch+
"_MDT_Station_EFFENTRIES"
783 var=
"tube_perch_segs_"+ch+
";"+title_effentries
784 mdtPerChamberECGroup.defineHistogram(var, type=
'TH1F',
785 title=title_effentries+
";tubeID;Number of Entries",
786 path=ch, xbins=binmax, xmin=1., xmax=binmax+1)
788 title_effcounts=ch+
"_MDT_Station_EFFCOUNTS"
789 var=
"tube_perch_segs_"+ch+
";"+title_effcounts
790 mdtPerChamberECGroup.defineHistogram(var, type=
'TH1F',
792 title=title_effcounts+
";tubeID;Number of Entries",
793 path=ch, xbins=binmax, xmin=1., xmax=binmax+1)
795 title_eff=ch+
"_MDT_Station_EFFPERTUBE"
796 var_eff=
"hitcut,tube_perch_segs_"+ch+
";"+title_eff
797 mdtPerChamberECGroup.defineHistogram(var_eff,
798 title=title_eff+
";tubeID;Efficiency",
800 path=ch, xbins=binmax, xmin=1., xmax=binmax+1)
803 title_mdtmezz= ch+
"_MDT_Station_MEZZ_ADCCut"
804 mdtPerChamberECGroup.defineHistogram(
"mezz_perch_"+ch+
";"+title_mdtmezz, type=
'TH1F',
805 title=title_mdtmezz+
";mezzID;Number of Entries",
806 path=ch, xbins=20, xmin=0., xmax=20.)
823 acc = helper.result()