CMS 3D CMS Logo

Functions | Variables
hltMuonPostProcessors_cff Namespace Reference

Functions

def add_reco_strings (strings)
 
def efficiency_string (numer_label, denom_label, plot_type, output_label=None)
 

Variables

 efficiency_strings
 
 efficiencyProfile
 
 hltMuonPostIso
 
 hltMuonPostMain
 
 hltMuonPostNonIso
 
 hltMuonPostProcessors
 
 iso_strings
 
 noniso_strings
 
 plot_types
 
 subDirs
 

Function Documentation

◆ add_reco_strings()

def hltMuonPostProcessors_cff.add_reco_strings (   strings)

Definition at line 46 of file hltMuonPostProcessors_cff.py.

References python.rootplot.root2matplotlib.replace().

46 def add_reco_strings(strings):
47  reco_strings = []
48  for entry in strings:
49  reco_strings.append(entry
50  .replace("Generated", "Reconstructed")
51  .replace("Gen", "Reco")
52  .replace("gen", "rec"))
53  strings.extend(reco_strings)
54 
55 
def replace(string, replacements)

◆ efficiency_string()

def hltMuonPostProcessors_cff.efficiency_string (   numer_label,
  denom_label,
  plot_type,
  output_label = None 
)

Definition at line 6 of file hltMuonPostProcessors_cff.py.

6  plot_type, output_label=None):
7 
8  if output_label is None:
9  output_label = numer_label
10  if denom_label == "All" and numer_label != "L1":
11  output_description = "Full Path"
12  else:
13  output_description = numer_label
14  if denom_label == "All":
15  denom_description = "# Gen #mu"
16  else:
17  denom_description = "# Gen #mu Matched to %s" % (denom_label)
18  numer_description = "# Gen #mu Matched to %s" % (numer_label)
19 
20  if plot_type == "TurnOn1":
21  title = "pT Turn-On"
22  xAxis = "p_{T} of Leading Generated Muon (GeV)"
23  input_type = "PassMaxPt1"
24  if plot_type == "TurnOn2":
25  title = "Next-to-Leading pT Turn-On"
26  xAxis = "p_{T} of Next-to-Leading Generated Muon (GeV)"
27  input_type = "PassMaxPt2"
28  if plot_type == "EffEta":
29  title = "#eta Efficiency"
30  xAxis = "#eta of Generated Muon (GeV)"
31  input_type = "PassEta"
32  if plot_type == "EffPhi":
33  title = "#phi Efficiency"
34  xAxis = "#phi of Generated Muon (GeV)"
35  input_type = "PassPhi"
36 
37  yAxis = "%s / %s" % (numer_description, denom_description)
38  all_titles = "%s for %s; %s; %s" % (title, output_description,
39  xAxis, yAxis)
40  return "gen%s_%s '%s' gen%s_%s gen%s_%s" % (plot_type, output_label,
41  all_titles, input_type,
42  numer_label, input_type,
43  denom_label)
44 
45 

Variable Documentation

◆ efficiency_strings

hltMuonPostProcessors_cff.efficiency_strings

Definition at line 57 of file hltMuonPostProcessors_cff.py.

◆ efficiencyProfile

hltMuonPostProcessors_cff.efficiencyProfile

Definition at line 76 of file hltMuonPostProcessors_cff.py.

◆ hltMuonPostIso

hltMuonPostProcessors_cff.hltMuonPostIso

Definition at line 83 of file hltMuonPostProcessors_cff.py.

◆ hltMuonPostMain

hltMuonPostProcessors_cff.hltMuonPostMain

Definition at line 74 of file hltMuonPostProcessors_cff.py.

◆ hltMuonPostNonIso

hltMuonPostProcessors_cff.hltMuonPostNonIso

Definition at line 78 of file hltMuonPostProcessors_cff.py.

◆ hltMuonPostProcessors

hltMuonPostProcessors_cff.hltMuonPostProcessors

Definition at line 87 of file hltMuonPostProcessors_cff.py.

◆ iso_strings

hltMuonPostProcessors_cff.iso_strings

Definition at line 58 of file hltMuonPostProcessors_cff.py.

◆ noniso_strings

hltMuonPostProcessors_cff.noniso_strings

Definition at line 59 of file hltMuonPostProcessors_cff.py.

◆ plot_types

hltMuonPostProcessors_cff.plot_types

Definition at line 56 of file hltMuonPostProcessors_cff.py.

◆ subDirs

hltMuonPostProcessors_cff.subDirs

Definition at line 75 of file hltMuonPostProcessors_cff.py.