ATLAS Offline Software
Functions | Variables
EgammaARTmonitoring_plotsMaker Namespace Reference

Functions

def get_key_names (file, directory="")
 
def make_comparison_plots (type, f_base, f_nightly, result_file)
 
def makeIQEPlots (inHist, name)
 
def make_profile_plots (f_base, f_nightly, result_file, particle_type)
 
def make_conversion_plot (f_base, f_nightly, result_file)
 
def make_photon_fraction_plot (f_base, f_nightly, result_file, example_folder, folder_list, plot_name, axis_title, ymin, ymax, normalize=False)
 
def make_ratio_plot (h_base, h_nightly, name, result_file, y_axis_label=None)
 

Variables

list cluster_list
 
list cluster_list_photon
 
list photon_cluster_list
 
list electron_comparison_list
 
list photon_comparison_list
 
list photon_fraction_list
 
list photonfake_fraction_list
 
list photon_efficiency_list
 
list photon_conversion_list
 
list photon_track_list
 
list photon_trackTRT_list
 
list photon_trackhighpT_list
 
list photon_trackTRThighpT_list
 
 baseline_file = TFile(sys.argv[1])
 
 nightly_file = TFile(sys.argv[2])
 
 particle_type = sys.argv[3]
 
 output_file
 

Function Documentation

◆ get_key_names()

def EgammaARTmonitoring_plotsMaker.get_key_names (   file,
  directory = "" 
)
Function to get the key elements name from a given directory
:param file: TFile
:param directory: Directory
:return:

Definition at line 287 of file EgammaARTmonitoring_plotsMaker.py.

287 def get_key_names(file, directory=""):
288  """
289  Function to get the key elements name from a given directory
290  :param file: TFile
291  :param directory: Directory
292  :return:
293  """
294  file.cd(directory)
295  return [key.GetName() for key in gDirectory.GetListOfKeys()]
296 
297 

◆ make_comparison_plots()

def EgammaARTmonitoring_plotsMaker.make_comparison_plots (   type,
  f_base,
  f_nightly,
  result_file 
)
:param type: electron or gamma
:param f_base: TFile with the baseline plots
:param f_nightly: TFile with the nightly plots
:param result_file: TFile with the resulting comparison

Definition at line 298 of file EgammaARTmonitoring_plotsMaker.py.

298 def make_comparison_plots(type, f_base, f_nightly, result_file):
299  """
300 
301  :param type: electron or gamma
302  :param f_base: TFile with the baseline plots
303  :param f_nightly: TFile with the nightly plots
304  :param result_file: TFile with the resulting comparison
305  """
306  comparison_list = (
307  photon_comparison_list if type == 'gamma'
308  else electron_comparison_list)
309  for folder in comparison_list:
310  for histo in get_key_names(f_nightly, folder['name']):
311  h_base = f_base.Get(folder['name'] + '/' + histo)
312  h_nightly = f_nightly.Get(folder['name'] + '/' + histo)
313  if not h_base or not h_nightly:
314  print(histo,' is missing in one of the files ',h_base,h_nightly)
315  continue
316  if h_base.GetEntries() == 0 or h_nightly.GetEntries() == 0:
317  continue
318  make_ratio_plot(h_base, h_nightly, folder['title'], result_file)
319 
320 

◆ make_conversion_plot()

def EgammaARTmonitoring_plotsMaker.make_conversion_plot (   f_base,
  f_nightly,
  result_file 
)
This function creates conversion plots to study reco vs true
converion radius for the various conversion categoried

Definition at line 363 of file EgammaARTmonitoring_plotsMaker.py.

363 def make_conversion_plot(f_base, f_nightly, result_file):
364  """
365  This function creates conversion plots to study reco vs true
366  converion radius for the various conversion categoried
367  """
368  for histo in get_key_names(f_nightly, 'truthConvRecoConv2Si'):
369  variable_name = histo.split("_", 1)[1]
370 
371  if variable_name != "convRadiusTrueVsReco":
372  continue
373 
374  c1 = TCanvas()
375 
376  leg = TLegend(0.1, 0.75, 0.9, 0.9)
377  leg.SetNColumns(2)
378 
379  leg2 = TLegend(0.5, 0.7, 0.9, 0.75)
380  leg2.SetNColumns(2)
381 
382  for i, folder in enumerate(photon_conversion_list):
383 
384  baseline = f_base.Get(
385  folder['name'] + '/' + folder['name'] + "_" + variable_name)
386  baseline.SetDirectory(0)
387  nightly = f_nightly.Get(
388  folder['name'] + '/' + folder['name'] + "_" + variable_name)
389  nightly.SetDirectory(0)
390 
391  if baseline.Integral() != 0:
392  baseline.Scale(1/baseline.Integral())
393  if nightly.Integral() != 0:
394  nightly.Scale(1/nightly.Integral())
395 
396  baseline.SetMinimum(
397  min(baseline.GetMinimum(), baseline.GetMinimum()) * 0.7)
398  baseline.SetMaximum(
399  max(baseline.GetMaximum(), baseline.GetMaximum()) * 1.4)
400 
401  baseline.GetXaxis().SetTitle(
402  "R^{reco}_{conv. vtx} - R^{true}_{conv. vtx} [mm]")
403  baseline.GetYaxis().SetTitle("normalized to unity")
404 
405  baseline.SetLineColor(folder['color'])
406  nightly.SetLineColor(folder['color'])
407  baseline.SetMarkerColor(folder['color'])
408  nightly.SetMarkerColor(folder['color'])
409 
410  baseline.SetMarkerStyle(1)
411  nightly.SetMarkerStyle(20)
412 
413  leg.AddEntry(nightly, folder['title'], "p")
414 
415  if i == 0:
416  baseline.Draw("hist ")
417 
418  baselineDummy = baseline.Clone()
419  baselineDummy.SetLineColor(kGray+3)
420  baselineDummy.SetMarkerColor(kGray+3)
421  nightlyDummy = nightly.Clone()
422  nightlyDummy.SetLineColor(kGray+3)
423  nightlyDummy.SetMarkerColor(kGray+3)
424  leg2.AddEntry(baselineDummy, "Baseline", "l")
425  leg2.AddEntry(nightlyDummy, "Nightly", "p")
426  else:
427  baseline.Draw("same hist")
428 
429  nightly.Draw("p same")
430 
431  leg.Draw()
432  leg2.Draw()
433 
434  c1.Update()
435 
436  result_file.cd()
437 
438  c1.SaveAs("ConversionRadiusTrueVsReco.png")
439 
440  c1.Write("ConversionRadiusTrueVsReco")
441 
442 

◆ make_photon_fraction_plot()

def EgammaARTmonitoring_plotsMaker.make_photon_fraction_plot (   f_base,
  f_nightly,
  result_file,
  example_folder,
  folder_list,
  plot_name,
  axis_title,
  ymin,
  ymax,
  normalize = False 
)
This functions created a photon validation plot with efficiencies
and fractions

:param f_base TFile with the baseline histograms:
:param f_nightly TFile with the nightly histograms:

Definition at line 443 of file EgammaARTmonitoring_plotsMaker.py.

444  f_base, f_nightly, result_file,
445  example_folder, folder_list, plot_name,
446  axis_title, ymin, ymax, normalize=False):
447  """
448  This functions created a photon validation plot with efficiencies
449  and fractions
450 
451  :param f_base TFile with the baseline histograms:
452  :param f_nightly TFile with the nightly histograms:
453  """
454  for histo in get_key_names(f_nightly, example_folder):
455 
456  variable_name = histo.split("_", 1)[1]
457 
458  c1 = TCanvas()
459 
460  leg = TLegend(0.1, 0.75, 0.9, 0.9)
461  leg.SetNColumns(2)
462 
463  leg2 = TLegend(0.5, 0.7, 0.9, 0.75)
464  leg2.SetNColumns(2)
465 
466  for i, folder in enumerate(folder_list):
467 
468  baseline = f_base.Get(
469  folder['name'] + '/' + folder['name'] + "_" + variable_name)
470  baseline.SetDirectory(0)
471  nightly = f_nightly.Get(
472  folder['name'] + '/' + folder['name'] + "_" + variable_name)
473  nightly.SetDirectory(0)
474 
475  if normalize and 'vs' not in variable_name:
476  if baseline.Integral() != 0:
477  baseline.Scale(1/baseline.Integral())
478  if nightly.Integral() != 0:
479  nightly.Scale(1/nightly.Integral())
480 
481  baseline.SetMinimum(ymin)
482  baseline.SetMaximum(ymax)
483 
484  baseline.GetYaxis().SetTitle(axis_title)
485 
486  baseline.SetLineColor(folder['color'])
487  nightly.SetLineColor(folder['color'])
488  baseline.SetMarkerColor(folder['color'])
489  nightly.SetMarkerColor(folder['color'])
490 
491  baseline.SetMarkerStyle(1)
492  nightly.SetMarkerStyle(20)
493 
494  leg.AddEntry(nightly, folder['title'], "p")
495 
496  if i == 0:
497  baseline.Draw("hist ")
498 
499  baselineDummy = baseline.Clone()
500  baselineDummy.SetLineColor(kGray+3)
501  baselineDummy.SetMarkerColor(kGray+3)
502  nightlyDummy = nightly.Clone()
503  nightlyDummy.SetLineColor(kGray+3)
504  nightlyDummy.SetMarkerColor(kGray+3)
505  leg2.AddEntry(baselineDummy, "Baseline", "l")
506  leg2.AddEntry(nightlyDummy, "Nightly", "p")
507  else:
508  baseline.Draw("same hist")
509 
510  nightly.Draw("p same")
511 
512  leg.Draw()
513  leg2.Draw()
514 
515  c1.Update()
516 
517  result_file.cd()
518 
519  c1.SaveAs(plot_name + "_" + variable_name + ".png")
520 
521  c1.Write(plot_name + "_" + variable_name)
522 
523 

◆ make_profile_plots()

def EgammaARTmonitoring_plotsMaker.make_profile_plots (   f_base,
  f_nightly,
  result_file,
  particle_type 
)

Definition at line 332 of file EgammaARTmonitoring_plotsMaker.py.

332 def make_profile_plots(f_base, f_nightly, result_file, particle_type):
333 
334  cluster_list_to_loop = cluster_list
335 
336  if particle_type == "gamma":
337  cluster_list_to_loop = cluster_list + cluster_list_photon
338 
339  for i, folder in enumerate(cluster_list_to_loop):
340  for histo in get_key_names(f_nightly, folder['name']):
341  if '2D' not in histo and not 'profile' in histo:
342  continue
343  h_base = f_base.Get(folder['name'] + '/' + histo)
344  h_nightly = f_nightly.Get(folder['name'] + '/' + histo)
345  if not h_base or not h_nightly:
346  print(histo,' is missing in one of the files ',h_base,h_nightly)
347  continue
348  if h_base.GetEntries() == 0 or h_nightly.GetEntries() == 0:
349  continue
350  if 'mu' in histo:
351  h_base = makeIQEPlots(h_base, 'IQE')
352  h_nightly = makeIQEPlots(h_nightly, 'IQE')
353  y_axis_label = 'IQE'
354  else:
355  h_base.SetDirectory(0)
356  h_nightly.SetDirectory(0)
357  y_axis_label = "Mean %s" % (h_base.GetTitle())
358  h_base.SetTitle("")
359  make_ratio_plot(h_base, h_nightly,
360  folder['title'], result_file, y_axis_label)
361 
362 

◆ make_ratio_plot()

def EgammaARTmonitoring_plotsMaker.make_ratio_plot (   h_base,
  h_nightly,
  name,
  result_file,
  y_axis_label = None 
)
:param h_base: Baseline histogram
:param h_nightly: Nightly histogram
:param name: Human-readable name of the histogram
:param result_file: TFile where the output is saved
:param y_axis_label: Y axis label is case is needed
(fraction vs efficiency)

Definition at line 524 of file EgammaARTmonitoring_plotsMaker.py.

524 def make_ratio_plot(h_base, h_nightly, name, result_file, y_axis_label=None):
525  """
526 
527  :param h_base: Baseline histogram
528  :param h_nightly: Nightly histogram
529  :param name: Human-readable name of the histogram
530  :param result_file: TFile where the output is saved
531  :param y_axis_label: Y axis label is case is needed
532  (fraction vs efficiency)
533  """
534  histogram_name = h_nightly.GetName()
535 
536  type_name = histogram_name.split("_", 1)[0]
537  variable_name = histogram_name.split("_", 1)[1]
538 
539  c1 = TCanvas()
540 
541  main_pad = TPad("main_pad", "top", 0.00, 0.25, 1.00, 1.00)
542  main_pad.SetLeftMargin(0.12)
543  main_pad.SetRightMargin(0.04)
544  main_pad.SetTopMargin(0.02)
545  main_pad.SetBottomMargin(0.02)
546  main_pad.SetTicky(0)
547  main_pad.SetTickx(0)
548  main_pad.Draw()
549 
550  ratio_pad = TPad("ratio_pad", "bottom", 0.00, 0.00, 1.00, 0.25)
551  ratio_pad.SetLeftMargin(0.12)
552  ratio_pad.SetRightMargin(0.04)
553  ratio_pad.SetTopMargin(0.03)
554  ratio_pad.SetTickx(0)
555  ratio_pad.SetBottomMargin(0.36)
556  ratio_pad.Draw()
557 
558  h_base.SetLineColor(4)
559  h_base.SetLineWidth(2)
560 
561  h_nightly.SetMarkerStyle(8)
562  h_nightly.SetMarkerSize(0.5)
563 
564  main_pad.cd()
565 
566  if y_axis_label is not None:
567  h_base.GetYaxis().SetTitle(y_axis_label)
568  h_base.GetYaxis().SetTitle(y_axis_label)
569 
570  if '2D' not in variable_name or 'profile' in variable_name:
571  h_base.Draw()
572 
573  h_nightly.Draw(
574  "same p" if '2D' not in variable_name or 'profile' in variable_name
575  else 'colz')
576 
577  c1.Update()
578 
579  h_base.GetXaxis().SetLabelSize(0)
580  h_base.GetXaxis().SetLabelOffset(999)
581 
582  h_base.SetMinimum(min(h_base.GetMinimum(), h_nightly.GetMinimum()) * 0.7)
583  h_base.SetMaximum(max(h_base.GetMaximum(), h_nightly.GetMaximum()) * 1.3)
584 
585  leg = TLegend(0.4, 0.88, 0.9, 0.95)
586  leg.SetHeader(name, "C")
587  leg.SetNColumns(2)
588  leg.SetFillStyle(0)
589  leg.SetBorderSize(0)
590  leg.AddEntry(h_base, "Baseline", "l")
591  leg.AddEntry(h_nightly, "Nightly", "p")
592  leg.Draw()
593 
594  c1.Update()
595 
596  ratio_pad.cd()
597 
598  h1clone = h_nightly.Clone()
599  h1clone.Sumw2()
600  h1clone.SetStats(0)
601  h1clone.Divide(h_base)
602  h1clone.SetMarkerColor(1)
603  h1clone.SetMarkerStyle(20)
604  h1clone.GetYaxis().SetRangeUser(0.95, 1.05)
605  gStyle.SetOptStat(0)
606  h1clone.GetXaxis().SetLabelSize(0.10)
607  h1clone.GetXaxis().SetTitleSize(0.17)
608  h1clone.GetYaxis().SetLabelSize(0.10)
609  h1clone.GetYaxis().SetTitle("Ratio")
610  h1clone.GetYaxis().CenterTitle(1)
611  h1clone.GetYaxis().SetTitleSize(0.15)
612  h1clone.GetYaxis().SetTitleOffset(0.3)
613  h1clone.GetYaxis().SetNdivisions(505)
614 
615  h1clone.Draw("hist")
616 
617  c1.Update()
618 
619  result_file.cd()
620 
621  c1.SaveAs(type_name + '_' + variable_name + ".png")
622 
623  c1.Write(type_name + '_' + variable_name)
624 
625 

◆ makeIQEPlots()

def EgammaARTmonitoring_plotsMaker.makeIQEPlots (   inHist,
  name 
)

Definition at line 321 of file EgammaARTmonitoring_plotsMaker.py.

321 def makeIQEPlots(inHist, name):
322  outHist = inHist.QuantilesX(0.75, "EResolution_IQE_mu")
323  outHist.GetXaxis().SetTitle("<#mu>")
324  outHist.GetYaxis().SetTitle("IQE")
325  outHist25 = inHist.QuantilesX(0.25, "EResolutio_IQE_mu_25")
326  outHist.Add(outHist25, -1)
327  outHist.Scale(1/1.349)
328 
329  return outHist.Clone(inHist.GetName() + "_" + name)
330 
331 

Variable Documentation

◆ baseline_file

EgammaARTmonitoring_plotsMaker.baseline_file = TFile(sys.argv[1])

Definition at line 631 of file EgammaARTmonitoring_plotsMaker.py.

◆ cluster_list

list EgammaARTmonitoring_plotsMaker.cluster_list
Initial value:
1 = [
2  {'name': 'clusterAll', 'title': 'Clusters - Inclusive'},
3  {'name': 'cluster10GeV', 'title': 'Clusters - 10 GeV'},
4  {'name': 'clusterPromptAll', 'title': 'Clusters from Prompt - Inclusive'},
5  {'name': 'clusterPrompt10GeV', 'title': 'Clusters from Prompt - 10 GeV'},
6 ]

Definition at line 14 of file EgammaARTmonitoring_plotsMaker.py.

◆ cluster_list_photon

list EgammaARTmonitoring_plotsMaker.cluster_list_photon
Initial value:
1 = [
2  {'name': 'clusterUnconvPhoton',
3  'title': 'Clusters Unconverted Photons'},
4  {'name': 'clusterConvPhoton',
5  'title': 'Clusters Converted Photons'},
6  {'name': 'clusterConvPhotonSi',
7  'title': 'Clusters Converted Photons - Si'},
8  {'name': 'clusterConvPhotonSiSi',
9  'title': 'Clusters Converted Photons - SiSi'},
10  {'name': 'clusterConvPhotonTRT',
11  'title': 'Clusters Converted Photons - TRT'},
12  {'name': 'clusterConvPhotonTRTTRT',
13  'title': 'Clusters Converted Photons - TRTTRT'},
14  {'name': 'clusterConvPhotonSiTRT',
15  'title': 'Clusters Converted Photons - SiTRT'},
16 ]

Definition at line 21 of file EgammaARTmonitoring_plotsMaker.py.

◆ electron_comparison_list

list EgammaARTmonitoring_plotsMaker.electron_comparison_list

Definition at line 57 of file EgammaARTmonitoring_plotsMaker.py.

◆ nightly_file

EgammaARTmonitoring_plotsMaker.nightly_file = TFile(sys.argv[2])

Definition at line 632 of file EgammaARTmonitoring_plotsMaker.py.

◆ output_file

EgammaARTmonitoring_plotsMaker.output_file
Initial value:
1 = TFile("BN_ComparisonPlots_" +
2  particle_type + ".hist.root", "RECREATE")

Definition at line 635 of file EgammaARTmonitoring_plotsMaker.py.

◆ particle_type

EgammaARTmonitoring_plotsMaker.particle_type = sys.argv[3]

Definition at line 633 of file EgammaARTmonitoring_plotsMaker.py.

◆ photon_cluster_list

list EgammaARTmonitoring_plotsMaker.photon_cluster_list
Initial value:
1 = [
2  {'name': 'clusterUnconvPhoton',
3  'title': 'Clusters Unconverted Photons'},
4  {'name': 'clusterConvPhoton',
5  'title': 'Clusters Converted Photons'},
6  {'name': 'clusterConvPhotonSi',
7  'title': 'Clusters Converted Photons - Si'},
8  {'name': 'clusterConvPhotonSiSi',
9  'title': 'Clusters Converted Photons - SiSi'},
10  {'name': 'clusterConvPhotonTRT',
11  'title': 'Clusters Converted Photons - TRT'},
12  {'name': 'clusterConvPhotonTRTTRT',
13  'title': 'Clusters Converted Photons - TRTTRT'},
14  {'name': 'clusterConvPhotonSiTRT',
15  'title': 'Clusters Converted Photons - SiTRT'},
16 
17 ]

Definition at line 38 of file EgammaARTmonitoring_plotsMaker.py.

◆ photon_comparison_list

list EgammaARTmonitoring_plotsMaker.photon_comparison_list

Definition at line 100 of file EgammaARTmonitoring_plotsMaker.py.

◆ photon_conversion_list

list EgammaARTmonitoring_plotsMaker.photon_conversion_list
Initial value:
1 = [
2  {'name': 'truthConvRecoConv2Si', 'color': kGreen +
3  2, 'title': 'True Conv #rightarrow Si-Si Conv'},
4  {'name': 'truthConvRecoConv1Si', 'color': kBlue +
5  2, 'title': 'True Conv #rightarrow 1 Si Conv'},
6  {'name': 'truthConvRecoConv1TRT', 'color': kRed +
7  2, 'title': 'True Conv #rightarrow 1 TRT Conv'},
8  {'name': 'truthConvRecoConv2TRT', 'color': kOrange +
9  2, 'title': 'True Conv #rightarrow TRT-TRT Conv'},
10  {'name': 'truthConvRecoConv2SiTRT', 'color': kCyan +
11  2, 'title': 'True Conv #rightarrow Si-TRT Conv'},
12 ]

Definition at line 221 of file EgammaARTmonitoring_plotsMaker.py.

◆ photon_efficiency_list

list EgammaARTmonitoring_plotsMaker.photon_efficiency_list
Initial value:
1 = [
2  {'name': 'truthPhotonRecoPhotonEfficiency',
3  'color': kBlack, 'title': 'All photons'},
4  {'name': 'truthPhotonRecoPhotonOrElectronEfficiency', 'color': kGreen + 2,
5  'title': 'All photons + electrons'},
6  {'name': 'truthPhotonConvRecoEfficiency', 'color': kRed,
7  'title': 'True converted'},
8  {'name': 'truthPhotonUnconvRecoEfficiency', 'color': kBlue,
9  'title': 'True unconverted'}
10 ]

Definition at line 210 of file EgammaARTmonitoring_plotsMaker.py.

◆ photon_fraction_list

list EgammaARTmonitoring_plotsMaker.photon_fraction_list
Initial value:
1 = [
2  {'name': 'truthPhotonConvRecoConvEfficiency',
3  'color': kBlack, 'title': 'True Conv #rightarrow Conv'},
4  {'name': 'truthPhotonConvRecoConv1SiEfficiency', 'color': kBlue +
5  2, 'title': 'True Conv #rightarrow 1 Si Conv'},
6  {'name': 'truthPhotonConvRecoConv1TRTEfficiency', 'color': kRed +
7  2, 'title': 'True Conv #rightarrow 1 TRT Conv'},
8  {'name': 'truthPhotonConvRecoConv2SiEfficiency', 'color': kGreen +
9  2, 'title': 'True Conv #rightarrow Si-Si Conv'},
10  {'name': 'truthPhotonConvRecoConv2TRTEfficiency', 'color': kOrange + 2,
11  'title': 'True Conv #rightarrow TRT-TRT Conv'},
12  {'name': 'truthPhotonConvRecoConv2SiTRTEfficiency', 'color': kCyan + 2,
13  'title': 'True Conv #rightarrow Si-TRT Conv'},
14  {'name': 'truthPhotonConvRecoUnconvEfficiency',
15  'color': kPink + 2, 'title': 'True Conv #rightarrow Unconv'}
16 ]

Definition at line 178 of file EgammaARTmonitoring_plotsMaker.py.

◆ photon_track_list

list EgammaARTmonitoring_plotsMaker.photon_track_list
Initial value:
1 = [
2  {'name': 'InDetTracks', 'color': kBlack,
3  'title': 'All tracks'},
4  {'name': 'InDetTracksMatchElectron', 'color': kOrange,
5  'title': 'Matched to true electrons'},
6  {'name': 'InDetTracksNotElectron', 'color': kBlue,
7  'title': 'Not matched to true electrons'},
8  {'name': 'InDetTracksMatchPion', 'color': kGreen +
9  2, 'title': 'Matched to true Pion'},
10  {'name': 'InDetTracksNotMatched', 'color': kCyan +
11  2, 'title': 'Not matched to truth'}
12 ]

Definition at line 234 of file EgammaARTmonitoring_plotsMaker.py.

◆ photon_trackhighpT_list

list EgammaARTmonitoring_plotsMaker.photon_trackhighpT_list
Initial value:
1 = [
2  {'name': 'InDetTrackshighpT', 'color': kBlack,
3  'title': 'All tracks'},
4  {'name': 'InDetTracksMatchElectronhighpT', 'color': kOrange,
5  'title': 'Matched to true electrons'},
6  {'name': 'InDetTracksNotElectronhighpT', 'color': kBlue,
7  'title': 'Not matched to true electrons'},
8  {'name': 'InDetTracksMatchPionhighpT', 'color': kGreen +
9  2, 'title': 'Matched to true Pion'},
10  {'name': 'InDetTracksNotMatchedhighpT', 'color': kCyan +
11  2, 'title': 'Not matched to truth'}
12 ]

Definition at line 260 of file EgammaARTmonitoring_plotsMaker.py.

◆ photon_trackTRT_list

list EgammaARTmonitoring_plotsMaker.photon_trackTRT_list
Initial value:
1 = [
2  {'name': 'InDetTracksTRT', 'color': kBlack,
3  'title': 'All tracks'},
4  {'name': 'InDetTracksTRTMatchElectron', 'color': kOrange,
5  'title': 'Matched to true electrons'},
6  {'name': 'InDetTracksTRTNotElectron', 'color': kBlue,
7  'title': 'Not matched to true electrons'},
8  {'name': 'InDetTracksTRTMatchPion', 'color': kGreen +
9  2, 'title': 'Matched to true Pion'},
10  {'name': 'InDetTracksTRTNotMatched', 'color': kCyan +
11  2, 'title': 'Not matched to truth'}
12 ]

Definition at line 247 of file EgammaARTmonitoring_plotsMaker.py.

◆ photon_trackTRThighpT_list

list EgammaARTmonitoring_plotsMaker.photon_trackTRThighpT_list
Initial value:
1 = [
2  {'name': 'InDetTracksTRThighpT', 'color': kBlack,
3  'title': 'All tracks'},
4  {'name': 'InDetTracksTRTMatchElectronhighpT', 'color': kOrange,
5  'title': 'Matched to true electrons'},
6  {'name': 'InDetTracksTRTNotElectronhighpT', 'color': kBlue,
7  'title': 'Not matched to true electrons'},
8  {'name': 'InDetTracksTRTMatchPionhighpT', 'color': kGreen +
9  2, 'title': 'Matched to true Pion'},
10  {'name': 'InDetTracksTRTNotMatchedhighpT', 'color': kCyan +
11  2, 'title': 'Not matched to truth'}
12 ]

Definition at line 273 of file EgammaARTmonitoring_plotsMaker.py.

◆ photonfake_fraction_list

list EgammaARTmonitoring_plotsMaker.photonfake_fraction_list
Initial value:
1 = [
2  {'name': 'truthPhotonUnconvRecoConvEfficiency',
3  'color': kBlack, 'title': 'True Unconv #rightarrow Conv'},
4  {'name': 'truthPhotonUnconvRecoConv1SiEfficiency', 'color': kBlue +
5  2, 'title': 'True Unconv #rightarrow 1 Si Conv'},
6  {'name': 'truthPhotonUnconvRecoConv1TRTEfficiency', 'color': kRed +
7  2, 'title': 'True Unconv #rightarrow 1 TRT Conv'},
8  {'name': 'truthPhotonUnconvRecoConv2SiEfficiency', 'color': kGreen +
9  2, 'title': 'True Unconv #rightarrow Si-Si Conv'},
10  {'name': 'truthPhotonUnconvRecoConv2TRTEfficiency', 'color': kOrange + 2,
11  'title': 'True Unconv #rightarrow TRT-TRT Conv'},
12  {'name': 'truthPhotonUnconvRecoConv2SiTRTEfficiency', 'color': kCyan + 2,
13  'title': 'True Unconv #rightarrow Si-TRT Conv'},
14 ]

Definition at line 195 of file EgammaARTmonitoring_plotsMaker.py.

EgammaARTmonitoring_plotsMaker.make_conversion_plot
def make_conversion_plot(f_base, f_nightly, result_file)
Definition: EgammaARTmonitoring_plotsMaker.py:363
max
#define max(a, b)
Definition: cfImp.cxx:41
EgammaARTmonitoring_plotsMaker.make_profile_plots
def make_profile_plots(f_base, f_nightly, result_file, particle_type)
Definition: EgammaARTmonitoring_plotsMaker.py:332
EgammaARTmonitoring_plotsMaker.make_comparison_plots
def make_comparison_plots(type, f_base, f_nightly, result_file)
Definition: EgammaARTmonitoring_plotsMaker.py:298
EgammaARTmonitoring_plotsMaker.makeIQEPlots
def makeIQEPlots(inHist, name)
Definition: EgammaARTmonitoring_plotsMaker.py:321
min
#define min(a, b)
Definition: cfImp.cxx:40
EgammaARTmonitoring_plotsMaker.make_ratio_plot
def make_ratio_plot(h_base, h_nightly, name, result_file, y_axis_label=None)
Definition: EgammaARTmonitoring_plotsMaker.py:524
EgammaARTmonitoring_plotsMaker.make_photon_fraction_plot
def make_photon_fraction_plot(f_base, f_nightly, result_file, example_folder, folder_list, plot_name, axis_title, ymin, ymax, normalize=False)
Definition: EgammaARTmonitoring_plotsMaker.py:443
dbg::print
void print(std::FILE *stream, std::format_string< Args... > fmt, Args &&... args)
Definition: SGImplSvc.cxx:70
EgammaARTmonitoring_plotsMaker.get_key_names
def get_key_names(file, directory="")
Definition: EgammaARTmonitoring_plotsMaker.py:287