ATLAS Offline Software
Classes | Functions | Variables
python.html.AtlRunQueryDQSummary Namespace Reference

Classes

class  DQSummary
 

Functions

def MapToSystem (defect)
 
def ComputeRunLumi (dic, run, lumiperlb)
 
def GetLBLumi (dic, run)
 
def GetLBLiveFraction (dic, run)
 
def GetLBReady (dic, run)
 
def MakePlot_SummaryLumiLoss (loss, colors, dicsum, name)
 
def MakePlot_PerRunLumiLoss (loss, colors, dicsum, name)
 
def MakePlot_DefectsPerSystem (sys, intolerable, tolerable, ignored, dic, run)
 
def SetXLabel (h, labels)
 
def SetYLabel (h, labels)
 
def listify (lbl)
 

Variables

 server = xmlrpc.client.ServerProxy('http://atlasdqm.cern.ch')
 
 datapath
 
 pageinfo = pickle.load(open('%s/dqsum_pi.pickle' % QC.datapath))
 
 doDQPickle
 

Function Documentation

◆ ComputeRunLumi()

def python.html.AtlRunQueryDQSummary.ComputeRunLumi (   dic,
  run,
  lumiperlb 
)

Definition at line 55 of file AtlRunQueryDQSummary.py.

55 def ComputeRunLumi(dic,run,lumiperlb):
56  # consider ATLAS ready only
57  global readylb
58  total = 0.
59  for lbl in lumiperlb:
60  if lbl not in readylb:
61  continue
62  total += lumiperlb[lbl]
63  return total
64 
65 

◆ GetLBLiveFraction()

def python.html.AtlRunQueryDQSummary.GetLBLiveFraction (   dic,
  run 
)

Definition at line 97 of file AtlRunQueryDQSummary.py.

97 def GetLBLiveFraction(dic,run):
98  global livetrigger
99  livefraction = {}
100  #trigrate = dic[DataKey('TriggerRates')][run][0].value['L1_EM5']
101  triggerRates = dic[DataKey('TriggerRates')][run][0].value
102  if triggerRates != "No match":
103  try:
104  trigrate = triggerRates[livetrigger]
105  for item in trigrate:
106  (lb, tbp, tap, tav) = map(int, item)
107  livefraction[lb]= 0.
108  if tap != 0:
109  livefraction[lb] = float(tav)/tap
110  except KeyError:
111  print ("%s trigger not found - no live fraction computation" % livetrigger)
112  return livefraction
113 

◆ GetLBLumi()

def python.html.AtlRunQueryDQSummary.GetLBLumi (   dic,
  run 
)

Definition at line 66 of file AtlRunQueryDQSummary.py.

66 def GetLBLumi(dic,run):
67  global lumifolder
68  global usenb
69 
70  lumifolder = ''
71  lumiperlb = {}
72  for k,v in dic.items():
73  if 'ofllumi' not in k.ResultKey:
74  continue
75  lumifolder = k.ResultKey
76  if lumifolder == '':
77  return lumiperlb
78 
79  lbdic = dic[DataKey(lumifolder)][run]
80  lbtime = dic[DataKey('#LB')][run][1]
81 
82  for i,item in enumerate(lbdic):
83  for lb in range(int(item.startlb),int(item.endlb)):
84  lumiperlb[lb] = 0.
85  if item.value == "n.a.":
86  continue
87  if (lbtime[lb]-lbtime[lb-1])<0:
88  continue
89  # change unit (pb/nb)
90  scale = 0.001
91  if usenb:
92  scale = 1.
93  lumiperlb[lb] = float(item.value)*(lbtime[lb]-lbtime[lb-1])*0.001*scale # output in nb-1/pb-1
94  #print ("DEBUG",run,lb,float(item.value),lbtime[lb]-lbtime[lb-1])
95  return lumiperlb
96 

◆ GetLBReady()

def python.html.AtlRunQueryDQSummary.GetLBReady (   dic,
  run 
)

Definition at line 114 of file AtlRunQueryDQSummary.py.

114 def GetLBReady(dic,run):
115  rlb = []
116  for b in dic[DataKey('Ready for physics')][run]:
117  for lb in range(b.startlb,b.endlb):
118  if b.value == "1" :
119  rlb.append(lb)
120  return rlb
121 
122 

◆ listify()

def python.html.AtlRunQueryDQSummary.listify (   lbl)

Definition at line 530 of file AtlRunQueryDQSummary.py.

530 def listify(lbl): # compactify lb lists
531  if len(lbl) == 0 :
532  return ''
533  i = 0
534  newlist=[]
535  while i < len(lbl):
536  start=lbl[i]
537  j=i
538  while(j+1<len(lbl) and lbl[j+1]==lbl[j]+1):
539  j+=1
540  end=lbl[j]
541  i=j+1
542  if start==end:
543  newlist.append(start)
544  else:
545  newlist.append(str(start)+'-'+str(end))
546  return ", ".join([str(x) for x in newlist])

◆ MakePlot_DefectsPerSystem()

def python.html.AtlRunQueryDQSummary.MakePlot_DefectsPerSystem (   sys,
  intolerable,
  tolerable,
  ignored,
  dic,
  run 
)

Definition at line 368 of file AtlRunQueryDQSummary.py.

368 def MakePlot_DefectsPerSystem(sys,intolerable,tolerable,ignored,dic,run):
369 
370  global readylb
371 
372  from CoolRunQuery.AtlRunQueryQueryConfig import QC
373 
374  hname = ['','','']
375  h2_DefectVsLB = ['','','','']
376 
377 
378  SetStyle()
379  gStyle.SetTitleX(0.5)
380  gStyle.SetTitleAlign(23)
381 
382  lbrange = readylb[-1]-readylb[0] # can be disconnected !
383  #print (run,len(readylb),lbrange)
384 
385 
386  if len(intolerable) > 0 :
387  #TCol = TColor.GetColor( "#5D6B7D")
388  TCol = TColor.GetColor( "#0f3a60")
389  hname[0]= "%s_Intolerable_Run%s"%(sys,str(dic[DataKey('Run')][run]))
390  htitle = "%s - Intolerable defects - Run %s"%(sys,str(dic[DataKey('Run')][run]))
391  h2_DefectVsLB[0] = TH2F("h2_defectVsLB_%s"%hname[0],htitle,
392  lbrange,readylb[0]-0.5,readylb[-1]+0.5,
393  len(intolerable),0.,len(intolerable))
394  h2_DefectVsLB[0].SetFillColor(TCol)
395  h2_DefectVsLB[0].GetXaxis().SetTitle("Lumiblocks with ATLAS Ready")
396  SetYLabel(h2_DefectVsLB[0],[defect for defect in intolerable])
397  h2_DefectVsLB[0].LabelsOption("a","Y") # order Y label by alphabetical order
398 
399  # Text to store lumi loss number
400  ttext = {}
401  # Fill & Compute lumi losses
402  for i,item in enumerate(intolerable):
403  ibiny = h2_DefectVsLB[0].GetYaxis().FindBin(item)
404  binxmax = h2_DefectVsLB[0].GetXaxis().GetXmax()
405  frac = 100*float(len(intolerable[item]))/float(len(readylb))
406  if frac> 0.:
407  ttext[item] = TText(binxmax,ibiny-0.8," %.2f %%"%frac)
408  else:
409  ttext[item] = TText(binxmax,ibiny-0.8,"")
410  ttext[item].SetTextSize(0.03)
411  ttext[item].SetTextColor(TCol)
412  for lb in intolerable[item]:
413  if lb not in readylb:
414  continue
415  ibinx = h2_DefectVsLB[0].GetXaxis().FindBin(lb)
416  h2_DefectVsLB[0].SetBinContent(ibinx,ibiny,1.)
417 
418  # create png
419  canvas = TCanvas( 'c_Int',"Systems Defects - %s"%hname[0], 200, 10, 1000, 800)
420  canvas.Divide(1,1)
421  canvas.cd(1)
422  gPad.SetLeftMargin(0.40)
423  gPad.SetRightMargin(0.1)
424  h2_DefectVsLB[0].Draw("BOX")
425  for item in intolerable:
426  ttext[item].Draw()
427  canvas.Update()
428  hname[0] = QC.datapath+"/"+hname[0]+".png"
429  canvas.Print(hname[0])
430 
431 
432  if len(tolerable) > 0 :
433 
434  all = {**tolerable, **intolerable, **ignored}
435 
436  TCol1 = TColor.GetColor("#0f3a60")
437  TCol2 = TColor.GetColor("#a3c0d9")
438  TCol3 = TColor.GetColor("#4681b3")
439  #TCol1 = TColor.GetColor("#015669")
440  #TCol2 = TColor.GetColor("#5cbad0")
441  #TCol3 = TColor.GetColor("#258aa1")
442  hname[1]= "%s_All_Run%s"%(sys,str(dic[DataKey('Run')][run]))
443  htitle = "%s - All defects - Run %s"%(sys,str(dic[DataKey('Run')][run]))
444 
445  # intolerable
446  h2_DefectVsLB[1] = TH2F("h2_defectVsLB_int_%s"%hname[1],htitle,
447  lbrange,readylb[0]-0.5,readylb[-1]+0.5,
448  len(all),0.,len(all))
449  # tolerable
450  h2_DefectVsLB[2] = TH2F("h2_defectVsLB_tol_%s"%hname[1],htitle,
451  lbrange,readylb[0]-0.5,readylb[-1]+0.5,
452  len(all),0.,len(all))
453 
454  # ignored
455  h2_DefectVsLB[3] = TH2F("h2_defectVsLB_ign_%s"%hname[1],htitle,
456  lbrange,readylb[0]-0.5,readylb[-1]+0.5,
457  len(all),0.,len(all))
458 
459  h2_DefectVsLB[1].SetFillColor(TCol1)
460  h2_DefectVsLB[2].SetFillColor(TCol2)
461  h2_DefectVsLB[3].SetFillColor(TCol3)
462  #h2_DefectVsLB[3].SetFillStyle(3004) # not a great idea for single LBs
463  h2_DefectVsLB[1].GetXaxis().SetTitle("Lumiblocks with ATLAS Ready")
464  h2_DefectVsLB[2].GetXaxis().SetTitle("Lumiblocks with ATLAS Ready")
465  h2_DefectVsLB[3].GetXaxis().SetTitle("Lumiblocks with ATLAS Ready")
466  SetYLabel(h2_DefectVsLB[1],[defect for defect in all])
467  SetYLabel(h2_DefectVsLB[2],[defect for defect in all])
468  SetYLabel(h2_DefectVsLB[3],[defect for defect in all])
469  h2_DefectVsLB[1].LabelsOption("a","Y") # order Y label by alphabetical order
470  h2_DefectVsLB[2].LabelsOption("a","Y") # order Y label by alphabetical order
471  h2_DefectVsLB[3].LabelsOption("a","Y") # order Y label by alphabetical order
472 
473  # Text to store lumi loss number
474  ttext = {}
475 
476  # Fill
477  for i,item in enumerate(all):
478  ibiny = h2_DefectVsLB[1].GetYaxis().FindBin(item)
479  binxmax = h2_DefectVsLB[1].GetXaxis().GetXmax()
480  frac = 100*float(len(all[item]))/float(len(readylb))
481  if frac >0.:
482  ttext[item] = TText(binxmax,ibiny-0.8," %.2f %%"%frac)
483  else:
484  ttext[item] = TText(binxmax,ibiny-0.8,"")
485  ttext[item].SetTextSize(0.03)
486  if item in intolerable:
487  ttext[item].SetTextColor(TCol1)
488  if item in tolerable:
489  ttext[item].SetTextColor(TCol2)
490  if item in ignored:
491  ttext[item].SetTextColor(TCol3)
492  for lb in all[item]:
493  ibinx = h2_DefectVsLB[1].GetXaxis().FindBin(lb)
494  if item in intolerable:
495  h2_DefectVsLB[1].SetBinContent(ibinx,ibiny,1.)
496  if item in tolerable:
497  h2_DefectVsLB[2].SetBinContent(ibinx,ibiny,1.)
498  if item in ignored:
499  h2_DefectVsLB[3].SetBinContent(ibinx,ibiny,1.)
500 
501  # create png
502  canvas = TCanvas( 'c_Tol',"Systems Defects - %s"%hname[1], 200, 10, 1000, 800)
503  canvas.Divide(1,1)
504  canvas.cd(1)
505  gPad.SetLeftMargin(0.40)
506  gPad.SetRightMargin(0.1)
507  h2_DefectVsLB[2].Draw("BOX")
508  h2_DefectVsLB[3].Draw("BOXSAME")
509  h2_DefectVsLB[1].Draw("BOXSAME")
510 
511  for item in all:
512  ttext[item].Draw()
513  canvas.Update()
514  hname[1] = QC.datapath+"/"+hname[1]+".png"
515  canvas.Print(hname[1])
516 
517  return hname
518 

◆ MakePlot_PerRunLumiLoss()

def python.html.AtlRunQueryDQSummary.MakePlot_PerRunLumiLoss (   loss,
  colors,
  dicsum,
  name 
)

Definition at line 229 of file AtlRunQueryDQSummary.py.

229 def MakePlot_PerRunLumiLoss(loss,colors,dicsum,name):
230 
231  global usenb
232  global unit
233 
234 
235  runs = []
236  for r in loss['_TOTAL']:
237  if loss['_TOTAL'][r]>0. :
238  runs.append(r)
239  #if len(runs) == 0 : return
240  empty = False
241  if len(runs) == 0 :
242  empty = True
243  runs.append("-")
244  runs.sort()
245 
246 
247  TotalLumi = dicsum[DataKey('TotalLumi')][0]
248 
249 
250  SetStyle()
251  gStyle.SetTitleX(0.5)
252  gStyle.SetTitleAlign(23)
253 
254 
255  h_stack = THStack("hs_PerRun","Luminosity Loss during ATLAS Ready [%s]"%unit)
256 
257 
258  x0=0.17
259  y0=0.62
260  nsplits = 4
261  dx = 0.2
262  dy = 0.05
263  leg = TLegend(x0,y0,x0+dx,y0+nsplits*dy)
264  nhists = 0
265 
266 
267  SHIFT = 0.1
268  WIDTH = 0.4
269 
270 
271  h1_total = TH1F("h1_total","",len(runs),-0.5,len(runs)-0.5)
272  h1_total.SetMinimum(0.)
273  h1_total.SetFillColor(colors['_TOTAL'])
274  h1_total.SetFillStyle(3244)
275  h1_total.SetBarWidth(WIDTH)
276  h1_total.SetBarOffset(SHIFT+WIDTH)
277 
278  for r,run in enumerate(runs):
279  if run != "-" and loss['_TOTAL'][run] > 0:
280  h1_total.Fill(r,loss['_TOTAL'][run])
281  nhists +=1
282  leg.AddEntry(h1_total,'TOTAL',"f")
283 
284 
285  h1_lumi = {}
286  for i,sys in enumerate(loss):
287 
288  if sys == '_TOTAL':
289  continue
290 
291  h1_lumi[sys] = TH1F("h1_lumi_%s"%sys,"",len(runs),-0.5,len(runs)-0.5)
292  h1_lumi[sys].SetMinimum(0.)
293  h1_lumi[sys].SetFillColor(colors[sys])
294  h1_lumi[sys].SetBarWidth(WIDTH)
295  h1_lumi[sys].SetBarOffset(SHIFT)
296  for r,run in enumerate(runs):
297  if run != "-" and loss[sys][run]> 0.:
298  h1_lumi[sys].Fill(r,loss[sys][run])
299 
300 
301  for sys in h1_lumi:
302  if h1_lumi[sys].GetEntries() > 0:
303  h_stack.Add(h1_lumi[sys])
304  leg.AddEntry(h1_lumi[sys],sys,"f")
305  nhists +=1
306 
307 
308  hmax = h_stack.GetMaximum()*1.6
309 
310 
311  if len(runs) == 1:
312  if runs[0] == "-":
313  t1 = " Run [-]"
314  else:
315  t1 = " Run [%i]"%runs[0]
316  else:
317  t1 = " Runs [%i-%i]"%(runs[0],runs[-1])
318 
319  t2 = "ATLAS Ready Lumi: %.2f %s"%(TotalLumi,unit)
320  h1_frame = TH1F("h1_frame_runs","#splitline{%s}{%s}"%(t1,t2),len(runs),-0.5,len(runs)-0.5)
321  SetXLabel(h1_frame,runs)
322  h1_frame.SetLabelSize(0.06,"X")
323  h1_frame.SetMinimum(0.)
324  h1_frame.GetYaxis().SetTitle("Luminosity Loss during ATLAS Ready [%s]"%unit)
325  h1_frame.GetYaxis().SetTitleOffset(1.3)
326 
327 
328  canvas = TCanvas( 'c_PerRunLumiLoss',"Luminosity Losses Per Run", 200, 10, 600, 700)
329  canvas.Divide(1,1)
330  canvas.cd(1)
331  gPad.SetTopMargin(0.15)
332  h1_frame.SetMaximum(hmax)
333  h_stack.SetMaximum(hmax)
334  #h_total.SetBarOffset((shift)
335 
336  h1_frame.Draw("")
337  h_stack.Draw("BARsame")
338  h1_total.Draw("BARsame")
339  ncolumns = int(math.ceil(float(nhists)/float(nsplits)))
340  leg.SetNColumns(ncolumns)
341  leg.Paint() # Draw once to access coordinates
342  leg.SetX2NDC(leg.GetX1NDC()+ncolumns*dx) # Modify legend size w.r.t number of columns
343  nrows = leg.GetNRows()
344  leg.SetY2NDC(leg.GetY1NDC()+nrows*dy) # Modify legend size w.r.t number of rows
345  if not empty:
346  leg.Draw() # Draw again
347 
348  subtitle = TText(len(runs)-0.35,0.,name)
349  subtitle.SetTextSize(0.03)
350  subtitle.SetTextAngle(90)
351  subtitle.SetTextColor(kGray+1)
352  subtitle.Draw()
353  if empty:
354  bgtext = TText(0.0,0.5,"No Luminosity Losses")
355  bgtext.SetTextAlign(22)
356  bgtext.SetTextColor(kRed)
357  bgtext.SetTextFont(43)
358  bgtext.SetTextSize(40)
359  bgtext.SetTextAngle(45)
360  bgtext.Draw()
361 
362  canvas.Update()
363  from CoolRunQuery.AtlRunQueryQueryConfig import QC
364  pname = QC.datapath+'/'+name+'_lumiloss_perrun.png'
365  canvas.Print(pname)
366  return pname
367 

◆ MakePlot_SummaryLumiLoss()

def python.html.AtlRunQueryDQSummary.MakePlot_SummaryLumiLoss (   loss,
  colors,
  dicsum,
  name 
)

Definition at line 124 of file AtlRunQueryDQSummary.py.

124 def MakePlot_SummaryLumiLoss(loss,colors,dicsum,name):
125 
126  global usenb
127  global unit
128 
129  SetStyle()
130  gStyle.SetTitleX(0.5)
131  gStyle.SetTitleAlign(23)
132 
133 
134  TotalLumi = dicsum[DataKey('TotalLumi')][0]
135 
136 
137  xlabels = [s for s in loss]
138 
139 
140  runs = [item for item in loss[xlabels[0]]]
141  runs.sort()
142 
143 
144  lumi = {}
145  max = 0.
146  for sys in loss:
147  lumi[sys] = 0.
148  for r in runs:
149  lumi[sys] += loss[sys][r]
150  if lumi[sys] > max:
151  max=lumi[sys]
152  max = max*1.5
153 
154  # if no entry, print no plot
155  empty = False
156  if max == 0.:
157  empty = True
158  max = 1.
159 
160 
161 
162  t1 = " Runs [%i-%i]"%(runs[0],runs[-1])
163  if len(runs) == 1:
164  t1 = " Run [%i]"%runs[0]
165  t2 = "ATLAS Ready Lumi: %.2f %s"%(TotalLumi,unit)
166  h1_frame = TH1F("h1_frame","#splitline{%s}{%s}"%(t1,t2),len(loss),-0.5,len(loss)-0.5)
167  SetXLabel(h1_frame,xlabels)
168  h1_frame.SetMinimum(0.)
169  h1_frame.SetMaximum(max)
170  h1_frame.SetTickLength(0.,"X")
171  h1_frame.GetYaxis().SetTitle("Luminosity Loss during ATLAS Ready [%s]"%unit)
172  h1_frame.LabelsOption("a","X") # order X label by alphabetical order
173 
174 
175  h1_lumi = []
176  text_lumi = []
177  for sys in loss:
178  h1_lumi.append(TH1F("h1_lumi_%s"%sys,"",len(loss),-0.5,len(loss)-0.5))
179  SetXLabel(h1_lumi[-1],xlabels)
180  h1_lumi[-1].LabelsOption("a","X") # order X label by alphabetical order
181  h1_lumi[-1].SetBarWidth(0.90)
182  h1_lumi[-1].SetTickLength(0.,"X")
183  h1_lumi[-1].SetMinimum(0.)
184  h1_lumi[-1].SetMaximum(max)
185  h1_lumi[-1].SetFillColor(colors[sys])
186  if sys == '_TOTAL':
187  h1_lumi[-1].SetFillStyle(3244)
188  ibin = h1_lumi[-1].GetXaxis().FindBin(sys)
189  #print (sys,ibin,colors[sys],lumi[sys]/TotalLumi,h1_lumi[-1].GetName())
190  h1_lumi[-1].SetBinContent(ibin,lumi[sys])
191  if lumi[sys] > 0. :
192  text_lumi.append(TText(lumi[sys]*1.1,ibin-1,"%.2f %%"%(100*lumi[sys]/TotalLumi)))
193  else:
194  text_lumi.append(TText(lumi[sys]*1.1,ibin-1,""))
195 
196 
197 
198  canvas = TCanvas( 'c_SummaryLumiLoss',"Summary Lumi Losses", 200, 10, 600, 700)
199  canvas.Divide(1,1)
200  canvas.cd(1)
201  gPad.SetTopMargin(0.15)
202  h1_frame.Draw("HBAR")
203  subtitle = TText(max,0.,name)
204  subtitle.SetTextSize(0.03)
205  subtitle.SetTextAngle(90)
206  subtitle.SetTextColor(kGray+1)
207  subtitle.Draw()
208  if empty:
209  bgtext = TText(0.5,round(len(loss)/2)-0.5,"No Luminosity Losses")
210  bgtext.SetTextAlign(22)
211  bgtext.SetTextColor(kRed)
212  bgtext.SetTextFont(43)
213  bgtext.SetTextSize(40)
214  bgtext.SetTextAngle(45)
215  bgtext.Draw()
216 
217  for i,h in enumerate(h1_lumi):
218  text_lumi[i].SetTextAlign(12) # Vertical align
219  text_lumi[i].SetTextSize(0.04) # Text Size
220  if not empty:
221  h.Draw("HBAR SAME")
222  text_lumi[i].Draw()
223  canvas.Update()
224  from CoolRunQuery.AtlRunQueryQueryConfig import QC
225  pname = QC.datapath+'/'+name+'_lumiloss.png'
226  canvas.Print(pname)
227  return pname
228 

◆ MapToSystem()

def python.html.AtlRunQueryDQSummary.MapToSystem (   defect)

Definition at line 33 of file AtlRunQueryDQSummary.py.

33 def MapToSystem(defect):
34 
35  # Store detectors/cp per "family" for readability
36  global_systems_map = {'LAR':'Calo','TILE':'Calo','CALO':'Calo',
37  'TAU':'Calo','EGAMMA':'Calo','JET':'Calo','MET':'Calo',
38  'ALFA':'Trigger & Lumi','LCD':'Trigger & Lumi',
39  'ZDC':'Trigger & Lumi','BCM':'Trigger & Lumi',
40  'LUMI':'Trigger & Lumi','TRIG':'Trigger & Lumi',
41  'GLOBAL':'Trigger & Lumi',
42  'MS_CSC':'Muon','MS_RPC':'Muon','MS_TGC':'Muon','MS_MDT':'Muon',
43  'MS':'Muon','MBTS':'Muon','MCP':'Muon',
44  'PIXEL':'Tracking','SCT':'Tracking','TRT':'Tracking',
45  'ID':'Tracking','BTAG':'Tracking'}
46  words = defect.split('_')
47  for w in words:
48  for item in global_systems_map:
49  if w in item:
50  return global_systems_map[item]
51  return ' '
52 

◆ SetXLabel()

def python.html.AtlRunQueryDQSummary.SetXLabel (   h,
  labels 
)

Definition at line 520 of file AtlRunQueryDQSummary.py.

520 def SetXLabel(h,labels):
521  for i in range(len(labels)):
522  h.GetXaxis().SetBinLabel(i+1,str(labels[i]))
523  return
524 

◆ SetYLabel()

def python.html.AtlRunQueryDQSummary.SetYLabel (   h,
  labels 
)

Definition at line 525 of file AtlRunQueryDQSummary.py.

525 def SetYLabel(h,labels):
526  for i in range(len(labels)):
527  h.GetYaxis().SetBinLabel(i+1,str(labels[i]))
528  return
529 

Variable Documentation

◆ datapath

python.html.AtlRunQueryDQSummary.datapath

Definition at line 1205 of file AtlRunQueryDQSummary.py.

◆ doDQPickle

python.html.AtlRunQueryDQSummary.doDQPickle

Definition at line 1210 of file AtlRunQueryDQSummary.py.

◆ pageinfo

python.html.AtlRunQueryDQSummary.pageinfo = pickle.load(open('%s/dqsum_pi.pickle' % QC.datapath))

Definition at line 1207 of file AtlRunQueryDQSummary.py.

◆ server

python.html.AtlRunQueryDQSummary.server = xmlrpc.client.ServerProxy('http://atlasdqm.cern.ch')

Definition at line 22 of file AtlRunQueryDQSummary.py.

python.html.AtlRunQueryDQSummary.MakePlot_SummaryLumiLoss
def MakePlot_SummaryLumiLoss(loss, colors, dicsum, name)
Definition: AtlRunQueryDQSummary.py:124
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
python.html.AtlRunQueryDQSummary.listify
def listify(lbl)
Definition: AtlRunQueryDQSummary.py:530
RootHelpers::FindBin
Int_t FindBin(const TAxis *axis, const double x)
Definition: RootHelpers.cxx:14
MuonGM::round
float round(const float toRound, const unsigned int decimals)
Definition: Mdt.cxx:27
GetEntries
TGraphErrors * GetEntries(TH2F *histo)
Definition: TRTCalib_makeplots.cxx:4019
python.html.AtlRunQueryDQSummary.SetXLabel
def SetXLabel(h, labels)
Definition: AtlRunQueryDQSummary.py:520
python.TrigEgammaMonitorHelper.TH2F
def TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)
Definition: TrigEgammaMonitorHelper.py:45
while
while((inf=(TStreamerInfo *) nextinfo()) !=0)
Definition: liststreamerinfos.cxx:13
python.output.AtlRunQueryRoot.SetStyle
def SetStyle(whiteCanvas=False)
Definition: AtlRunQueryRoot.py:28
python.html.AtlRunQueryDQSummary.SetYLabel
def SetYLabel(h, labels)
Definition: AtlRunQueryDQSummary.py:525
python.html.AtlRunQueryDQSummary.ComputeRunLumi
def ComputeRunLumi(dic, run, lumiperlb)
Definition: AtlRunQueryDQSummary.py:55
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
python.html.AtlRunQueryDQSummary.MapToSystem
def MapToSystem(defect)
Definition: AtlRunQueryDQSummary.py:33
TCS::join
std::string join(const std::vector< std::string > &v, const char c=',')
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/Root/StringUtils.cxx:10
python.html.AtlRunQueryDQSummary.MakePlot_PerRunLumiLoss
def MakePlot_PerRunLumiLoss(loss, colors, dicsum, name)
Definition: AtlRunQueryDQSummary.py:229
python.html.AtlRunQueryDQSummary.GetLBLiveFraction
def GetLBLiveFraction(dic, run)
Definition: AtlRunQueryDQSummary.py:97
python.html.AtlRunQueryDQSummary.GetLBReady
def GetLBReady(dic, run)
Definition: AtlRunQueryDQSummary.py:114
python.html.AtlRunQueryDQSummary.GetLBLumi
def GetLBLumi(dic, run)
Definition: AtlRunQueryDQSummary.py:66
str
Definition: BTagTrackIpAccessor.cxx:11
python.TrigEgammaMonitorHelper.TH1F
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
Definition: TrigEgammaMonitorHelper.py:24
python.html.AtlRunQueryDQSummary.MakePlot_DefectsPerSystem
def MakePlot_DefectsPerSystem(sys, intolerable, tolerable, ignored, dic, run)
Definition: AtlRunQueryDQSummary.py:368
readCCLHist.float
float
Definition: readCCLHist.py:83