CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
hltMuonPostProcessors_cff Namespace Reference

Functions

def add_reco_strings
 
def efficiency_string
 

Variables

list efficiency_strings = []
 
tuple hltMuonPostIso = hltMuonPostMain.clone()
 
tuple hltMuonPostMain = hltMuonPostProcessor.clone()
 
tuple hltMuonPostNonIso = hltMuonPostMain.clone()
 
tuple hltMuonPostProcessors
 
list iso_strings = []
 
list noniso_strings = []
 
list plot_types = ["TurnOn1", "TurnOn2", "EffEta", "EffPhi"]
 

Function Documentation

def hltMuonPostProcessors_cff.add_reco_strings (   strings)

Definition at line 46 of file hltMuonPostProcessors_cff.py.

References python.rootplot.root2matplotlib.replace().

46 
47 def add_reco_strings(strings):
48  reco_strings = []
49  for entry in strings:
50  reco_strings.append(entry
51  .replace("Generated", "Reconstructed")
52  .replace("Gen", "Reco")
53  .replace("gen", "rec"))
54  strings.extend(reco_strings)
55 
def hltMuonPostProcessors_cff.efficiency_string (   numer_label,
  denom_label,
  plot_type,
  output_label = None 
)

Definition at line 6 of file hltMuonPostProcessors_cff.py.

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

Variable Documentation

list hltMuonPostProcessors_cff.efficiency_strings = []

Definition at line 57 of file hltMuonPostProcessors_cff.py.

tuple hltMuonPostProcessors_cff.hltMuonPostIso = hltMuonPostMain.clone()

Definition at line 83 of file hltMuonPostProcessors_cff.py.

tuple hltMuonPostProcessors_cff.hltMuonPostMain = hltMuonPostProcessor.clone()

Definition at line 74 of file hltMuonPostProcessors_cff.py.

tuple hltMuonPostProcessors_cff.hltMuonPostNonIso = hltMuonPostMain.clone()

Definition at line 78 of file hltMuonPostProcessors_cff.py.

tuple hltMuonPostProcessors_cff.hltMuonPostProcessors
Initial value:
1 = cms.Sequence(
2  hltMuonPostNonIso *
3  hltMuonPostIso *
4  hltMuonPostMain
5 )

Definition at line 87 of file hltMuonPostProcessors_cff.py.

list hltMuonPostProcessors_cff.iso_strings = []

Definition at line 58 of file hltMuonPostProcessors_cff.py.

list hltMuonPostProcessors_cff.noniso_strings = []

Definition at line 59 of file hltMuonPostProcessors_cff.py.

list hltMuonPostProcessors_cff.plot_types = ["TurnOn1", "TurnOn2", "EffEta", "EffPhi"]

Definition at line 56 of file hltMuonPostProcessors_cff.py.