5 '''@file LArCoverageAlg
8 @brief Adapted from ExampleLArMonitorAlgorithm.py by C. D. Burton and P. Onyisi
12 '''Function to configures some algorithms in the monitoring system.'''
16 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
17 from AthenaMonitoring
import AthMonitorCfgHelper
18 helper = AthMonitorCfgHelper(flags,
'LArCoverageCfgAlg')
21 from AthenaConfiguration.ComponentFactory
import CompFactory
25 rv.merge(helper.result())
30 larCoverageAlg = helper.addAlgorithm(algoinstance,
'LArCoverageAlg')
31 larCoverageAlg.ProblemsToMask=[
"highNoiseHG",
"highNoiseMG",
"highNoiseLG",
"deadReadout",
"deadPhys"]
33 from LArMonitoring.GlobalVariables
import lArDQGlobals
36 caloNoiseToolGroupName=
"CaloNoise"
38 badChannelsGroupName=
"BadChannels"
39 coverageHWGroupName=
"Coverage"
40 partitionsBarrel = [lArDQGlobals.SubDet[0]+side
for side
in lArDQGlobals.Sides]
41 partitionsEndcap = [lArDQGlobals.SubDet[ip]+side
for side
in lArDQGlobals.Sides
for ip
in range(1,len(lArDQGlobals.SubDet))]
44 larCoverageAlg.CaloNoiseToolGroupName=caloNoiseToolGroupName
45 larCoverageAlg.Nsample = nLayers
46 larCoverageAlg.BadChannelsGroupName=badChannelsGroupName
47 larCoverageAlg.Sides = lArDQGlobals.Sides
48 larCoverageAlg.CoverageHWGroupName=coverageHWGroupName
49 larCoverageAlg.CoverageBarrelPartitions = partitionsBarrel
50 larCoverageAlg.CoverageEndcapPartitions = partitionsEndcap
51 larCoverageAlg.NphiBinsEMB1=lArDQGlobals.Cell_Variables[
"phiNbin"][
"EMB"][
"A"][
"1"]
52 larCoverageAlg.NphiBinsEMEC2=lArDQGlobals.Cell_Variables[
"phiNbin"][
"EMEC"][
"A"][
"2"]
53 larCoverageAlg.NphiBinsHEC=[lArDQGlobals.Cell_Variables[
"phiNbin"][
"HEC"][
"A"][
"0"],lArDQGlobals.Cell_Variables[
"phiNbin"][
"HEC"][
"A"][
"1"],lArDQGlobals.Cell_Variables[
"phiNbin"][
"HEC"][
"A"][
"2"],lArDQGlobals.Cell_Variables[
"phiNbin"][
"HEC"][
"A"][
"3"]]
55 from LArConfiguration.LArConfigFlags
import RawChannelSource
56 if flags.LAr.RawChannelSource
is RawChannelSource.Calculated:
57 larCoverageAlg.LArRawChannelKey=
"LArRawChannels_FromDigits"
60 from CaloTools.CaloNoiseCondAlgConfig
import CaloNoiseCondAlgCfg
64 caloNoiseToolArrayEM = helper.addArray([nLayers],larCoverageAlg,caloNoiseToolGroupName+
"EM",topPath=
'/')
65 caloNoiseToolArrayHEC = helper.addArray([nLayers],larCoverageAlg,caloNoiseToolGroupName+
"HEC",topPath=
'/')
66 caloNoiseToolArrayFCal = helper.addArray([nLayers],larCoverageAlg,caloNoiseToolGroupName+
"FCal",topPath=
'/')
67 caloNoiseToolGroup = helper.addGroup(
69 caloNoiseToolGroupName,
76 badChannelToolArrayBarrel = helper.addArray([lArDQGlobals.Sides],larCoverageAlg,badChannelsGroupName+
"Barrel",
'/LAr/',
'run')
77 badChannelToolArrayEndcap = helper.addArray([lArDQGlobals.Sides],larCoverageAlg,badChannelsGroupName+
"EndCap",
'/LAr/',
'run')
80 availErrCode = larCoverageAlg.AvailableErrorCodes
83 coverageToolArrayEMBA = helper.addArray([availErrCode],larCoverageAlg,coverageHWGroupName+
"EMBA",
'/LAr/',
'run')
84 coverageToolArrayEMECA = helper.addArray([availErrCode],larCoverageAlg,coverageHWGroupName+
"EMECA",
'/LAr/',
'run')
85 coverageToolArrayHECA = helper.addArray([availErrCode],larCoverageAlg,coverageHWGroupName+
"HECA",
'/LAr/',
'run')
86 coverageToolArrayFCalA = helper.addArray([availErrCode],larCoverageAlg,coverageHWGroupName+
"FCalA",
'/LAr/',
'run')
87 coverageToolArrayEMBC = helper.addArray([availErrCode],larCoverageAlg,coverageHWGroupName+
"EMBC",
'/LAr/',
'run')
88 coverageToolArrayEMECC = helper.addArray([availErrCode],larCoverageAlg,coverageHWGroupName+
"EMECC",
'/LAr/',
'run')
89 coverageToolArrayHECC = helper.addArray([availErrCode],larCoverageAlg,coverageHWGroupName+
"HECC",
'/LAr/',
'run')
90 coverageToolArrayFCalC = helper.addArray([availErrCode],larCoverageAlg,coverageHWGroupName+
"FCalC",
'/LAr/',
'run')
94 coveragePath=
'Coverage/'
98 caloNoiseTool_path=coveragePath+
'CaloNoiseTool/'
100 caloNoiseToolGroup.defineHistogram(
'lb1_x;FirstLBnumber',
102 path=caloNoiseTool_path,
103 title=
'CaloNoiseTool histogram are filled from this LB;;LB number',
105 xbins=1,xmin=-1,xmax=1)
107 caloNoiseToolArrayEM.defineHistogram(
'etaChan,noise;CaloNoiseEM_Sampling',
109 path=
'LAr/'+caloNoiseTool_path,
110 title=
'DBNoise in EM',
111 xbins=lArDQGlobals.etaCaloNoise_Bins,xmax=lArDQGlobals.etaCaloNoise_Max,xmin=lArDQGlobals.etaCaloNoise_Min,
114 caloNoiseToolArrayHEC.defineHistogram(
'etaChan,noise;CaloNoiseHEC_Sampling',
116 path=
'LAr/'+caloNoiseTool_path,
117 title=
'DBNoise in HEC',
118 xbins=lArDQGlobals.etaCaloNoise_Bins,xmax=lArDQGlobals.etaCaloNoise_Max,xmin=lArDQGlobals.etaCaloNoise_Min,
121 caloNoiseToolArrayFCal.defineHistogram(
'etaChan,noise;CaloNoiseFCal_Sampling',
123 path=
'LAr/'+caloNoiseTool_path,
124 title=
'DBNoise in FCal',
125 xbins=lArDQGlobals.etaCaloNoise_FcalBins,xmax=lArDQGlobals.etaCaloNoise_FcalMax,xmin=lArDQGlobals.etaCaloNoise_FcalMin,
130 badChannels_path=coveragePath+
'BadChannels/'
131 badChannelToolArrayBarrel.defineHistogram(
'mon_FtSlot,single_channel;RAW_DBBadChannelsBarrel',
133 path=badChannels_path,
134 title=
'Known Bad Channels - Barrel {0};Feedthrough(+Slot increasing);Channel',
136 xbins=lArDQGlobals.Feedthrough_Slot_Nbins[
"EMBA"],
137 xmin=lArDQGlobals.Feedthrough_Slot_range[
"EMBA"][0],
138 xmax=lArDQGlobals.Feedthrough_Slot_range[
"EMBA"][1],
139 ybins=lArDQGlobals.FEB_N_channels,
141 ymax=lArDQGlobals.FEB_N_channels-0.5,
142 xlabels=lArDQGlobals.Feedthrough_Slot_labels_Barrel,
144 badChannelToolArrayEndcap.defineHistogram(
'mon_FtSlot,single_channel;RAW_DBBadChannelsEndcap',
146 path=badChannels_path,
147 title=
'Known Bad Channels - Endcap {0};Feedthrough(+Slot increasing);Channel',
149 xbins=lArDQGlobals.Feedthrough_Slot_Nbins[
"EMECA"],
150 xmin=lArDQGlobals.Feedthrough_Slot_range[
"EMECA"][0],
151 xmax=lArDQGlobals.Feedthrough_Slot_range[
"EMECA"][1],
152 ybins=lArDQGlobals.FEB_N_channels,
154 ymax=lArDQGlobals.FEB_N_channels-0.5,
155 xlabels=lArDQGlobals.Feedthrough_Slot_labels_Endcap,
160 coverage_path=coveragePath+
'perPartition/'
161 coverageToolArrayEMBA.defineHistogram(
'mon_ChanFtSlot,mon_Channels;CoverageHW_EMBA_statusCode',
164 title=
'Coverage - EMBA - statusCode={0};Feedthrough(+Slot increasing);Channel',
165 xbins=lArDQGlobals.Feedthrough_Slot_Nbins[
"EMBA"],
166 xmin=lArDQGlobals.Feedthrough_Slot_range[
"EMBA"][0],
167 xmax=lArDQGlobals.Feedthrough_Slot_range[
"EMBA"][1],
168 ybins=lArDQGlobals.FEB_N_channels,
170 ymax=lArDQGlobals.FEB_N_channels-0.5,
171 xlabels=lArDQGlobals.Feedthrough_Slot_labels_Barrel)
173 coverageToolArrayEMBC.defineHistogram(
'mon_ChanFtSlot,mon_Channels;CoverageHW_EMBC_statusCode',
176 title=
'Coverage - EMBC - statusCode={0};Feedthrough(+Slot increasing);Channel',
177 xbins=lArDQGlobals.Feedthrough_Slot_Nbins[
"EMBC"],
178 xmin=lArDQGlobals.Feedthrough_Slot_range[
"EMBC"][0],
179 xmax=lArDQGlobals.Feedthrough_Slot_range[
"EMBC"][1],
180 ybins=lArDQGlobals.FEB_N_channels,
182 ymax=lArDQGlobals.FEB_N_channels-0.5,
183 xlabels=lArDQGlobals.Feedthrough_Slot_labels_Barrel)
185 coverageToolArrayEMECA.defineHistogram(
'mon_ChanFtSlot,mon_Channels;CoverageHW_EMECA_statusCode',
188 title=
'Coverage - EMECA - statusCode={0};Feedthrough(+Slot increasing);Channel',
189 xbins=lArDQGlobals.Feedthrough_Slot_Nbins[
"EMECA"],
190 xmin=lArDQGlobals.Feedthrough_Slot_range[
"EMECA"][0],
191 xmax=lArDQGlobals.Feedthrough_Slot_range[
"EMECA"][1],
192 ybins=lArDQGlobals.FEB_N_channels,
194 ymax=lArDQGlobals.FEB_N_channels-0.5,
195 xlabels=lArDQGlobals.Feedthrough_Slot_labels_Endcap)
197 coverageToolArrayEMECC.defineHistogram(
'mon_ChanFtSlot,mon_Channels;CoverageHW_EMECC_statusCode',
200 title=
'Coverage - EMECC - statusCode={0};Feedthrough(+Slot increasing);Channel',
201 xbins=lArDQGlobals.Feedthrough_Slot_Nbins[
"EMECC"],
202 xmin=lArDQGlobals.Feedthrough_Slot_range[
"EMECC"][0],
203 xmax=lArDQGlobals.Feedthrough_Slot_range[
"EMECC"][1],
204 ybins=lArDQGlobals.FEB_N_channels,
206 ymax=lArDQGlobals.FEB_N_channels-0.5,
207 xlabels=lArDQGlobals.Feedthrough_Slot_labels_Endcap)
209 coverageToolArrayHECA.defineHistogram(
'mon_ChanFtSlot,mon_Channels;CoverageHW_HECA_statusCode',
212 title=
'Coverage - HECA - statusCode={0};Feedthrough(+Slot increasing);Channel',
213 xbins=lArDQGlobals.Feedthrough_Slot_Nbins[
"HECA"],
214 xmin=lArDQGlobals.Feedthrough_Slot_range[
"HECA"][0],
215 xmax=lArDQGlobals.Feedthrough_Slot_range[
"HECA"][1],
216 ybins=lArDQGlobals.FEB_N_channels,
218 ymax=lArDQGlobals.FEB_N_channels-0.5,
219 xlabels=lArDQGlobals.Feedthrough_Slot_labels_Endcap)
221 coverageToolArrayHECC.defineHistogram(
'mon_ChanFtSlot,mon_Channels;CoverageHW_HECC_statusCode',
224 title=
'Coverage - HECC - statusCode={0};Feedthrough(+Slot increasing);Channel',
225 xbins=lArDQGlobals.Feedthrough_Slot_Nbins[
"HECC"],
226 xmin=lArDQGlobals.Feedthrough_Slot_range[
"HECC"][0],
227 xmax=lArDQGlobals.Feedthrough_Slot_range[
"HECC"][1],
228 ybins=lArDQGlobals.FEB_N_channels,
230 ymax=lArDQGlobals.FEB_N_channels-0.5,
231 xlabels=lArDQGlobals.Feedthrough_Slot_labels_Endcap)
233 coverageToolArrayFCalA.defineHistogram(
'mon_ChanFtSlot,mon_Channels;CoverageHW_FCalA_statusCode',
236 title=
'Coverage - FCalA - statusCode={0};Feedthrough(+Slot increasing);Channel',
237 xbins=lArDQGlobals.Feedthrough_Slot_Nbins[
"FCalA"],
238 xmin=lArDQGlobals.Feedthrough_Slot_range[
"FCalA"][0],
239 xmax=lArDQGlobals.Feedthrough_Slot_range[
"FCalA"][1],
240 ybins=lArDQGlobals.FEB_N_channels,
242 ymax=lArDQGlobals.FEB_N_channels-0.5,
243 xlabels=lArDQGlobals.Feedthrough_Slot_labels_Endcap)
245 coverageToolArrayFCalC.defineHistogram(
'mon_ChanFtSlot,mon_Channels;CoverageHW_FCalC_statusCode',
248 title=
'Coverage - FCalC - statusCode={0};Feedthrough(+Slot increasing);Channel',
249 xbins=lArDQGlobals.Feedthrough_Slot_Nbins[
"FCalC"],
250 xmin=lArDQGlobals.Feedthrough_Slot_range[
"FCalC"][0],
251 xmax=lArDQGlobals.Feedthrough_Slot_range[
"FCalC"][1],
252 ybins=lArDQGlobals.FEB_N_channels,
254 ymax=lArDQGlobals.FEB_N_channels-0.5,
255 xlabels=lArDQGlobals.Feedthrough_Slot_labels_Endcap)
258 coverageToolArrayEMBA.defineHistogram(
'mon_Eta,mon_Phi;RAW_CoverSampling0EMBA_StatusCode',
261 title=
'Coverage status code={0} - Sampling 0 - EMBA;#eta;#phi',
263 xbins=lArDQGlobals.Cell_Variables[
"etaRange"][
"EMB"][
"A"][
"0"],
264 ybins=lArDQGlobals.Cell_Variables[
"phiRange"][
"EMB"][
"A"][
"0"])
266 coverageToolArrayEMBA.defineHistogram(
'mon_Eta,mon_Phi;RAW_CoverSampling1EMBA_StatusCode',
269 title=
'Coverage status code={0} - Sampling 1 - EMBA;#eta;#phi',
271 xbins=lArDQGlobals.Cell_Variables[
"etaRange"][
"EMB"][
"A"][
"1"],
272 ybins=lArDQGlobals.Cell_Variables[
"phiRange"][
"EMB"][
"A"][
"1"])
274 coverageToolArrayEMBA.defineHistogram(
'mon_Eta,mon_Phi;RAW_CoverSampling2EMBA_StatusCode',
277 title=
'Coverage status code={0} - Sampling 2 - EMBA;#eta;#phi',
279 xbins=lArDQGlobals.Cell_Variables[
"etaRange"][
"EMB"][
"A"][
"2"],
280 ybins=lArDQGlobals.Cell_Variables[
"phiRange"][
"EMB"][
"A"][
"2"])
282 coverageToolArrayEMBA.defineHistogram(
'mon_Eta,mon_Phi;RAW_CoverSampling3EMBA_StatusCode',
285 title=
'Coverage status code={0} - Sampling 3 - EMBA;#eta;#phi',
287 xbins=lArDQGlobals.Cell_Variables[
"etaRange"][
"EMB"][
"A"][
"3"],
288 ybins=lArDQGlobals.Cell_Variables[
"phiRange"][
"EMB"][
"A"][
"3"])
290 coverageToolArrayEMBC.defineHistogram(
'mon_Eta,mon_Phi;RAW_CoverSampling0EMBC_StatusCode',
293 title=
'Coverage status code={0} - Sampling 0 - EMBC;#eta;#phi',
295 xbins=lArDQGlobals.Cell_Variables[
"etaRange"][
"EMB"][
"C"][
"0"],
296 ybins=lArDQGlobals.Cell_Variables[
"phiRange"][
"EMB"][
"C"][
"0"])
298 coverageToolArrayEMBC.defineHistogram(
'mon_Eta,mon_Phi;RAW_CoverSampling1EMBC_StatusCode',
301 title=
'Coverage status code={0} - Sampling 1 - EMBC;#eta;#phi',
303 xbins=lArDQGlobals.Cell_Variables[
"etaRange"][
"EMB"][
"C"][
"1"],
304 ybins=lArDQGlobals.Cell_Variables[
"phiRange"][
"EMB"][
"C"][
"1"])
306 coverageToolArrayEMBC.defineHistogram(
'mon_Eta,mon_Phi;RAW_CoverSampling2EMBC_StatusCode',
309 title=
'Coverage status code={0} - Sampling 2 - EMBC;#eta;#phi',
311 xbins=lArDQGlobals.Cell_Variables[
"etaRange"][
"EMB"][
"C"][
"2"],
312 ybins=lArDQGlobals.Cell_Variables[
"phiRange"][
"EMB"][
"C"][
"2"])
314 coverageToolArrayEMBC.defineHistogram(
'mon_Eta,mon_Phi;RAW_CoverSampling3EMBC_StatusCode',
317 title=
'Coverage status code={0} - Sampling 3 - EMBC;#eta;#phi',
319 xbins=lArDQGlobals.Cell_Variables[
"etaRange"][
"EMB"][
"C"][
"3"],
320 ybins=lArDQGlobals.Cell_Variables[
"phiRange"][
"EMB"][
"C"][
"3"])
323 coverageToolArrayEMECA.defineHistogram(
'mon_Eta,mon_Phi;RAW_CoverSampling0EMECA_StatusCode',
326 title=
'Coverage status code={0} - Sampling 0 - EMECA;#eta;#phi',
328 xbins=lArDQGlobals.Cell_Variables[
"etaRange"][
"EMEC"][
"A"][
"0"],
329 ybins=lArDQGlobals.Cell_Variables[
"phiRange"][
"EMEC"][
"A"][
"0"])
331 coverageToolArrayEMECA.defineHistogram(
'mon_Eta,mon_Phi;RAW_CoverSampling1EMECA_StatusCode',
334 title=
'Coverage status code={0} - Sampling 1 - EMECA;#eta;#phi',
336 xbins=lArDQGlobals.Cell_Variables[
"etaRange"][
"EMEC"][
"A"][
"1"],
337 ybins=lArDQGlobals.Cell_Variables[
"phiRange"][
"EMEC"][
"A"][
"1"])
339 coverageToolArrayEMECA.defineHistogram(
'mon_Eta,mon_Phi;RAW_CoverSampling2EMECA_StatusCode',
342 title=
'Coverage status code={0} - Sampling 2 - EMECA;#eta;#phi',
344 xbins=lArDQGlobals.Cell_Variables[
"etaRange"][
"EMEC"][
"A"][
"2"],
345 ybins=lArDQGlobals.Cell_Variables[
"phiRange"][
"EMEC"][
"A"][
"2"])
347 coverageToolArrayEMECA.defineHistogram(
'mon_Eta,mon_Phi;RAW_CoverSampling3EMECA_StatusCode',
350 title=
'Coverage status code={0} - Sampling 3 - EMECA;#eta;#phi',
352 xbins=lArDQGlobals.Cell_Variables[
"etaRange"][
"EMEC"][
"A"][
"3"],
353 ybins=lArDQGlobals.Cell_Variables[
"phiRange"][
"EMEC"][
"A"][
"3"])
355 coverageToolArrayEMECC.defineHistogram(
'mon_Eta,mon_Phi;RAW_CoverSampling0EMECC_StatusCode',
358 title=
'Coverage status code={0} - Sampling 0 - EMECC;#eta;#phi',
360 xbins=lArDQGlobals.Cell_Variables[
"etaRange"][
"EMEC"][
"C"][
"0"],
361 ybins=lArDQGlobals.Cell_Variables[
"phiRange"][
"EMEC"][
"C"][
"0"])
363 coverageToolArrayEMECC.defineHistogram(
'mon_Eta,mon_Phi;RAW_CoverSampling1EMECC_StatusCode',
366 title=
'Coverage status code={0} - Sampling 1 - EMECC;#eta;#phi',
368 xbins=lArDQGlobals.Cell_Variables[
"etaRange"][
"EMEC"][
"C"][
"1"],
369 ybins=lArDQGlobals.Cell_Variables[
"phiRange"][
"EMEC"][
"C"][
"1"])
371 coverageToolArrayEMECC.defineHistogram(
'mon_Eta,mon_Phi;RAW_CoverSampling2EMECC_StatusCode',
374 title=
'Coverage status code={0} - Sampling 2 - EMECC;#eta;#phi',
376 xbins=lArDQGlobals.Cell_Variables[
"etaRange"][
"EMEC"][
"C"][
"2"],
377 ybins=lArDQGlobals.Cell_Variables[
"phiRange"][
"EMEC"][
"C"][
"2"])
379 coverageToolArrayEMECC.defineHistogram(
'mon_Eta,mon_Phi;RAW_CoverSampling3EMECC_StatusCode',
382 title=
'Coverage status code={0} - Sampling 3 - EMECC;#eta;#phi',
384 xbins=lArDQGlobals.Cell_Variables[
"etaRange"][
"EMEC"][
"C"][
"3"],
385 ybins=lArDQGlobals.Cell_Variables[
"phiRange"][
"EMEC"][
"C"][
"3"])
387 coverageToolArrayHECA.defineHistogram(
'mon_Eta,mon_Phi;RAW_CoverSampling0HECA_StatusCode',
390 title=
'Coverage status code={0} - Sampling 0 - HECA;#eta;#phi',
392 xbins=lArDQGlobals.Cell_Variables[
"etaRange"][
"HEC"][
"A"][
"0"],
393 ybins=lArDQGlobals.Cell_Variables[
"phiRange"][
"HEC"][
"A"][
"0"])
395 coverageToolArrayHECA.defineHistogram(
'mon_Eta,mon_Phi;RAW_CoverSampling1HECA_StatusCode',
398 title=
'Coverage status code={0} - Sampling 1 - HECA;#eta;#phi',
400 xbins=lArDQGlobals.Cell_Variables[
"etaRange"][
"HEC"][
"A"][
"1"],
401 ybins=lArDQGlobals.Cell_Variables[
"phiRange"][
"HEC"][
"A"][
"1"])
403 coverageToolArrayHECA.defineHistogram(
'mon_Eta,mon_Phi;RAW_CoverSampling2HECA_StatusCode',
406 title=
'Coverage status code={0} - Sampling 2 - HECA;#eta;#phi',
408 xbins=lArDQGlobals.Cell_Variables[
"etaRange"][
"HEC"][
"A"][
"2"],
409 ybins=lArDQGlobals.Cell_Variables[
"phiRange"][
"HEC"][
"A"][
"2"])
411 coverageToolArrayHECA.defineHistogram(
'mon_Eta,mon_Phi;RAW_CoverSampling3HECA_StatusCode',
414 title=
'Coverage status code={0} - Sampling 3 - HECA;#eta;#phi',
416 xbins=lArDQGlobals.Cell_Variables[
"etaRange"][
"HEC"][
"A"][
"3"],
417 ybins=lArDQGlobals.Cell_Variables[
"phiRange"][
"HEC"][
"A"][
"3"])
419 coverageToolArrayHECC.defineHistogram(
'mon_Eta,mon_Phi;RAW_CoverSampling0HECC_StatusCode',
422 title=
'Coverage status code={0} - Sampling 0 - HECC;#eta;#phi',
424 xbins=lArDQGlobals.Cell_Variables[
"etaRange"][
"HEC"][
"C"][
"0"],
425 ybins=lArDQGlobals.Cell_Variables[
"phiRange"][
"HEC"][
"C"][
"0"])
427 coverageToolArrayHECC.defineHistogram(
'mon_Eta,mon_Phi;RAW_CoverSampling1HECC_StatusCode',
430 title=
'Coverage status code={0} - Sampling 1 - HECC;#eta;#phi',
432 xbins=lArDQGlobals.Cell_Variables[
"etaRange"][
"HEC"][
"C"][
"1"],
433 ybins=lArDQGlobals.Cell_Variables[
"phiRange"][
"HEC"][
"C"][
"1"])
435 coverageToolArrayHECC.defineHistogram(
'mon_Eta,mon_Phi;RAW_CoverSampling2HECC_StatusCode',
438 title=
'Coverage status code={0} - Sampling 2 - HECC;#eta;#phi',
440 xbins=lArDQGlobals.Cell_Variables[
"etaRange"][
"HEC"][
"C"][
"2"],
441 ybins=lArDQGlobals.Cell_Variables[
"phiRange"][
"HEC"][
"C"][
"2"])
443 coverageToolArrayHECC.defineHistogram(
'mon_Eta,mon_Phi;RAW_CoverSampling3HECC_StatusCode',
446 title=
'Coverage status code={0} - Sampling 3 - HECC;#eta;#phi',
448 xbins=lArDQGlobals.Cell_Variables[
"etaRange"][
"HEC"][
"C"][
"3"],
449 ybins=lArDQGlobals.Cell_Variables[
"phiRange"][
"HEC"][
"C"][
"3"])
451 coverageToolArrayFCalA.defineHistogram(
'mon_Eta,mon_Phi;RAW_CoverSampling1FCalA_StatusCode',
454 title=
'Coverage status code={0} - Sampling 1 - FCalA;#eta;#phi',
456 xbins=lArDQGlobals.Cell_Variables[
"etaRange"][
"FCal"][
"A"][
"1"],
457 ybins=lArDQGlobals.Cell_Variables[
"phiRange"][
"FCal"][
"A"][
"1"])
459 coverageToolArrayFCalA.defineHistogram(
'mon_Eta,mon_Phi;RAW_CoverSampling2FCalA_StatusCode',
462 title=
'Coverage status code={0} - Sampling 2 - FCalA;#eta;#phi',
464 xbins=lArDQGlobals.Cell_Variables[
"etaRange"][
"FCal"][
"A"][
"2"],
465 ybins=lArDQGlobals.Cell_Variables[
"phiRange"][
"FCal"][
"A"][
"2"])
467 coverageToolArrayFCalA.defineHistogram(
'mon_Eta,mon_Phi;RAW_CoverSampling3FCalA_StatusCode',
470 title=
'Coverage status code={0} - Sampling 3 - FCalA;#eta;#phi',
472 xbins=lArDQGlobals.Cell_Variables[
"etaRange"][
"FCal"][
"A"][
"3"],
473 ybins=lArDQGlobals.Cell_Variables[
"phiRange"][
"FCal"][
"A"][
"3"])
475 coverageToolArrayFCalC.defineHistogram(
'mon_Eta,mon_Phi;RAW_CoverSampling1FCalC_StatusCode',
478 title=
'Coverage status code={0} - Sampling 1 - FCalC;#eta;#phi',
480 xbins=lArDQGlobals.Cell_Variables[
"etaRange"][
"FCal"][
"C"][
"1"],
481 ybins=lArDQGlobals.Cell_Variables[
"phiRange"][
"FCal"][
"C"][
"1"])
483 coverageToolArrayFCalC.defineHistogram(
'mon_Eta,mon_Phi;RAW_CoverSampling2FCalC_StatusCode',
486 title=
'Coverage status code={0} - Sampling 2 - FCalC;#eta;#phi',
488 xbins=lArDQGlobals.Cell_Variables[
"etaRange"][
"FCal"][
"C"][
"2"],
489 ybins=lArDQGlobals.Cell_Variables[
"phiRange"][
"FCal"][
"C"][
"2"])
491 coverageToolArrayFCalC.defineHistogram(
'mon_Eta,mon_Phi;RAW_CoverSampling3FCalC_StatusCode',
494 title=
'Coverage status code={0} - Sampling 3 - FCalC;#eta;#phi',
496 xbins=lArDQGlobals.Cell_Variables[
"etaRange"][
"FCal"][
"C"][
"3"],
497 ybins=lArDQGlobals.Cell_Variables[
"phiRange"][
"FCal"][
"C"][
"3"])
501 if __name__==
'__main__':
504 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
506 from LArMonitoring.LArMonConfigFlags
import addLArMonFlags
507 flags.addFlagsCategory(
"LArMon", addLArMonFlags)
509 from AthenaConfiguration.TestDefaults
import defaultTestFiles
510 flags.Input.Files = defaultTestFiles.RAW_RUN2
511 flags.DQ.useTrigger =
False
513 flags.Output.HISTFileName =
'LArCoverageOutput.root'
517 from CaloRec.CaloRecoConfig
import CaloRecoCfg
521 cfg.merge(larCoverageAcc)
524 f=
open(
"CoverageMaker.pkl",
"wb")