168 def execute(run, sfile, lb_max):
174 shits.append(
"InnerDetector/Pixel/IBL/Hits/AvgOccActivePerLumi_IBL2D")
175 shits.append(
"InnerDetector/Pixel/BLayer/Hits/AvgOccActivePerLumi_BLayer")
176 shits.append(
"InnerDetector/Pixel/Layer1/Hits/AvgOccActivePerLumi_Layer1")
177 shits.append(
"InnerDetector/Pixel/Layer2/Hits/AvgOccActivePerLumi_Layer2")
178 shits.append(
"InnerDetector/Pixel/ECA/Hits/AvgOccActivePerLumi_ECA")
179 shits.append(
"InnerDetector/Pixel/ECC/Hits/AvgOccActivePerLumi_ECC")
181 sbtagdeg =
"InnerDetector/Pixel/PixelExpert/BTagDegEstimation/TotalDegradationPerLumi"
183 sclus =
"Global/Luminosity/AnyTrigger/nClustersAll_vs_LB"
188 for i
in range(0, nlayer):
189 if not file.Get(shits[i]):
193 hhits.append(file.Get(shits[i]))
196 if fexist_hhits
is True:
203 fexist_hbtagdeg =
True
204 hbtagdeg = file.Get(sbtagdeg)
206 fexist_hbtagdeg =
False
207 btagdegestim_tolerable_lb = []
208 btagdegestim_intolerable_lb = []
210 if fexist_hhits
is True and fexist_hbtagdeg
is True:
211 find_btagdeg(hbtagdeg, 0.05, 0.25, btagdegestim_tolerable_lb, lb_max)
212 find_btagdeg(hbtagdeg, 0.25, 1., btagdegestim_intolerable_lb, lb_max)
220 assign_btagdegdef(db,
"PERFORMANCE_INTOLERABLE", run, btagdegestim_intolerable_lb)
223 hclus = file.Get(sclus)
226 if fexist_hclus
is True:
227 nevent = hclus.GetEntries()