CMS 3D CMS Logo

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

Functions

def efficiency_string
 
def get_reco_strings
 

Variables

list efficiency_strings = []
 
list efficiency_strings2 = []
 
list efficiency_strings_TTHbbej = []
 
list efficiency_summary_strings = []
 
tuple hltHiggsPostAHttH = hltHiggsPostProcessor.clone()
 
tuple hltHiggsPostDoubleHinTaus = hltHiggsPostProcessor.clone()
 
tuple hltHiggsPostH2tau = hltHiggsPostProcessor.clone()
 
tuple hltHiggsPostHgg = hltHiggsPostProcessor.clone()
 
tuple hltHiggsPostHggControlPaths = hltHiggsPostProcessor.clone()
 
tuple hltHiggsPostHiggsDalitz = hltHiggsPostProcessor.clone()
 
tuple hltHiggsPostHtaunu = hltHiggsPostProcessor.clone()
 
tuple hltHiggsPostHWW = hltHiggsPostProcessor.clone()
 
tuple hltHiggsPostHZZ = hltHiggsPostProcessor.clone()
 
tuple hltHiggsPostProcessors
 
tuple hltHiggsPostTTHbbej = hltHiggsPostProcessor.clone()
 
tuple hltHiggsPostVBFHbb_0btag = hltHiggsPostProcessor.clone()
 
tuple hltHiggsPostVBFHbb_1btag = hltHiggsPostProcessor.clone()
 
tuple hltHiggsPostVBFHbb_2btag = hltHiggsPostProcessor.clone()
 
tuple hltHiggsPostX4b = hltHiggsPostProcessor.clone()
 
tuple hltHiggsPostZnnHbb = hltHiggsPostProcessor.clone()
 
tuple NminOneCutNames = ("EffdEtaqq", "Effmqq", "EffdPhibb", "EffCSV1", "EffCSV2", "EffCSV3", "EffmaxCSV", "", "", "TurnOn1", "TurnOn2", "TurnOn3", "TurnOn4")
 
tuple NminOneCuts = (_config.__getattribute__("VBFHbb_2btag"))
 
list obj_types = ["Mu","Ele","Photon","MET","PFMET","PFTau","Jet"]
 
list plot_types = ["TurnOn1", "TurnOn2", "EffEta", "EffPhi"]
 
tuple s = _config.__getattribute__(an)
 
list triggers = []
 
tuple vstr = s.__getattribute__("hltPathsToCheck")
 

Function Documentation

def hltHiggsPostProcessors_cff.efficiency_string (   objtype,
  plot_type,
  triggerpath 
)

Definition at line 6 of file hltHiggsPostProcessors_cff.py.

6 
7 def efficiency_string(objtype,plot_type,triggerpath):
8  # --- IMPORTANT: Add here a elif if you are introduce a new collection
9  # (see EVTColContainer::getTypeString)
10  if objtype == "Mu":
11  objtypeLatex="#mu"
12  elif objtype == "Photon":
13  objtypeLatex="#gamma"
14  elif objtype == "Ele":
15  objtypeLatex="e"
16  elif objtype == "MET" :
17  objtypeLatex="MET"
18  elif objtype == "PFMET" :
19  objtypeLatex="PFMET"
20  elif objtype == "PFTau":
21  objtypeLatex="#tau"
22  elif objtype == "Jet":
23  objtypeLatex="jet"
24  else:
25  objtypeLatex=objtype
26 
27  numer_description = "# gen %s passed the %s" % (objtypeLatex,triggerpath)
28  denom_description = "# gen %s " % (objtypeLatex)
29 
30  if plot_type == "TurnOn1":
31  title = "pT Turn-On"
32  xAxis = "p_{T} of Leading Generated %s (GeV/c)" % (objtype)
33  input_type = "gen%sMaxPt1" % (objtype)
34  elif plot_type == "TurnOn2":
35  title = "Next-to-Leading pT Turn-On"
36  xAxis = "p_{T} of Next-to-Leading Generated %s (GeV/c)" % (objtype)
37  input_type = "gen%sMaxPt2" % (objtype)
38  elif plot_type == "EffEta":
39  title = "#eta Efficiency"
40  xAxis = "#eta of Generated %s " % (objtype)
41  input_type = "gen%sEta" % (objtype)
42  elif plot_type == "EffPhi":
43  title = "#phi Efficiency"
44  xAxis = "#phi of Generated %s " % (objtype)
45  input_type = "gen%sPhi" % (objtype)
46  elif "TurnOn" in plot_type:
47  title = "%sth Leading pT Turn-On" % (plot_type[-1])
48  xAxis = "p_{T} of %sth Leading Generated %s (GeV/c)" % (plot_type[-1], objtype)
49  input_type = "gen%sMaxPt%s" % (objtype, plot_type[-1])
50  elif plot_type == "EffdEtaqq":
51  title = "#Delta #eta_{qq} Efficiency"
52  xAxis = "#Delta #eta_{qq} of Generated %s " % (objtype)
53  input_type = "gen%sdEtaqq" % (objtype)
54  elif plot_type == "Effmqq":
55  title = "m_{qq} Efficiency"
56  xAxis = "m_{qq} of Generated %s " % (objtype)
57  input_type = "gen%smqq" % (objtype)
58  elif plot_type == "EffdPhibb":
59  title = "#Delta #phi_{bb} Efficiency"
60  xAxis = "#Delta #phi_{bb} of Generated %s " % (objtype)
61  input_type = "gen%sdPhibb" % (objtype)
62  elif plot_type == "EffCSV1":
63  title = "CSV1 Efficiency"
64  xAxis = "CSV1 of Generated %s " % (objtype)
65  input_type = "gen%sCSV1" % (objtype)
66  elif plot_type == "EffCSV2":
67  title = "CSV2 Efficiency"
68  xAxis = "CSV2 of Generated %s " % (objtype)
69  input_type = "gen%sCSV2" % (objtype)
70  elif plot_type == "EffCSV3":
71  title = "CSV3 Efficiency"
72  xAxis = "CSV3 of Generated %s " % (objtype)
73  input_type = "gen%sCSV3" % (objtype)
74  elif plot_type == "EffmaxCSV":
75  title = "max CSV Efficiency"
76  xAxis = "max CSV of Generated %s " % (objtype)
77  input_type = "gen%smaxCSV" % (objtype)
78 
79  yAxis = "%s / %s" % (numer_description, denom_description)
80  all_titles = "%s for trigger %s; %s; %s" % (title, triggerpath,
81  xAxis, yAxis)
82  return "Eff_%s_%s '%s' %s_%s %s" % (input_type,triggerpath,
83  all_titles,input_type,triggerpath,input_type)
84 
# Adding the reco objects
def hltHiggsPostProcessors_cff.get_reco_strings (   strings)

Definition at line 85 of file hltHiggsPostProcessors_cff.py.

References python.rootplot.root2matplotlib.replace().

85 
86 def get_reco_strings(strings):
87  reco_strings = []
88  for entry in strings:
89  reco_strings.append(entry
90  .replace("Generated", "Reconstructed")
91  .replace("Gen", "Reco")
92  .replace("gen", "rec"))
93  return reco_strings
94 

Variable Documentation

tuple hltHiggsPostProcessors_cff.efficiency_strings = []

Definition at line 101 of file hltHiggsPostProcessors_cff.py.

tuple hltHiggsPostProcessors_cff.efficiency_strings2 = []

Definition at line 274 of file hltHiggsPostProcessors_cff.py.

list hltHiggsPostProcessors_cff.efficiency_strings_TTHbbej = []

Definition at line 164 of file hltHiggsPostProcessors_cff.py.

list hltHiggsPostProcessors_cff.efficiency_summary_strings = []

Definition at line 122 of file hltHiggsPostProcessors_cff.py.

tuple hltHiggsPostProcessors_cff.hltHiggsPostAHttH = hltHiggsPostProcessor.clone()

Definition at line 177 of file hltHiggsPostProcessors_cff.py.

tuple hltHiggsPostProcessors_cff.hltHiggsPostDoubleHinTaus = hltHiggsPostProcessor.clone()

Definition at line 147 of file hltHiggsPostProcessors_cff.py.

tuple hltHiggsPostProcessors_cff.hltHiggsPostH2tau = hltHiggsPostProcessor.clone()

Definition at line 155 of file hltHiggsPostProcessors_cff.py.

tuple hltHiggsPostProcessors_cff.hltHiggsPostHgg = hltHiggsPostProcessor.clone()

Definition at line 139 of file hltHiggsPostProcessors_cff.py.

tuple hltHiggsPostProcessors_cff.hltHiggsPostHggControlPaths = hltHiggsPostProcessor.clone()

Definition at line 143 of file hltHiggsPostProcessors_cff.py.

tuple hltHiggsPostProcessors_cff.hltHiggsPostHiggsDalitz = hltHiggsPostProcessor.clone()

Definition at line 151 of file hltHiggsPostProcessors_cff.py.

tuple hltHiggsPostProcessors_cff.hltHiggsPostHtaunu = hltHiggsPostProcessor.clone()

Definition at line 159 of file hltHiggsPostProcessors_cff.py.

tuple hltHiggsPostProcessors_cff.hltHiggsPostHWW = hltHiggsPostProcessor.clone()

Definition at line 131 of file hltHiggsPostProcessors_cff.py.

tuple hltHiggsPostProcessors_cff.hltHiggsPostHZZ = hltHiggsPostProcessor.clone()

Definition at line 135 of file hltHiggsPostProcessors_cff.py.

tuple hltHiggsPostProcessors_cff.hltHiggsPostProcessors
Initial value:
1 = cms.Sequence(
2  hltHiggsPostHWW+
3  hltHiggsPostHZZ+
4  hltHiggsPostHgg+
5  hltHiggsPostHggControlPaths+
6  hltHiggsPostHtaunu+
7  hltHiggsPostH2tau+
8  hltHiggsPostTTHbbej+
9  hltHiggsPostAHttH+
10  hltHiggsPostVBFHbb_0btag+
11  hltHiggsPostVBFHbb_1btag+
12  hltHiggsPostVBFHbb_2btag+
13  hltHiggsPostZnnHbb+
14  hltHiggsPostDoubleHinTaus+
15  hltHiggsPostHiggsDalitz+
16  hltHiggsPostX4b
17 
18 )

Definition at line 312 of file hltHiggsPostProcessors_cff.py.

tuple hltHiggsPostProcessors_cff.hltHiggsPostTTHbbej = hltHiggsPostProcessor.clone()

Definition at line 173 of file hltHiggsPostProcessors_cff.py.

tuple hltHiggsPostProcessors_cff.hltHiggsPostVBFHbb_0btag = hltHiggsPostProcessor.clone()

Definition at line 250 of file hltHiggsPostProcessors_cff.py.

tuple hltHiggsPostProcessors_cff.hltHiggsPostVBFHbb_1btag = hltHiggsPostProcessor.clone()

Definition at line 226 of file hltHiggsPostProcessors_cff.py.

tuple hltHiggsPostProcessors_cff.hltHiggsPostVBFHbb_2btag = hltHiggsPostProcessor.clone()

Definition at line 202 of file hltHiggsPostProcessors_cff.py.

tuple hltHiggsPostProcessors_cff.hltHiggsPostX4b = hltHiggsPostProcessor.clone()

Definition at line 306 of file hltHiggsPostProcessors_cff.py.

tuple hltHiggsPostProcessors_cff.hltHiggsPostZnnHbb = hltHiggsPostProcessor.clone()

Definition at line 284 of file hltHiggsPostProcessors_cff.py.

tuple hltHiggsPostProcessors_cff.NminOneCutNames = ("EffdEtaqq", "Effmqq", "EffdPhibb", "EffCSV1", "EffCSV2", "EffCSV3", "EffmaxCSV", "", "", "TurnOn1", "TurnOn2", "TurnOn3", "TurnOn4")

Definition at line 183 of file hltHiggsPostProcessors_cff.py.

tuple hltHiggsPostProcessors_cff.NminOneCuts = (_config.__getattribute__("VBFHbb_2btag"))

Definition at line 185 of file hltHiggsPostProcessors_cff.py.

list hltHiggsPostProcessors_cff.obj_types = ["Mu","Ele","Photon","MET","PFMET","PFTau","Jet"]

Definition at line 98 of file hltHiggsPostProcessors_cff.py.

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

Definition at line 95 of file hltHiggsPostProcessors_cff.py.

tuple hltHiggsPostProcessors_cff.s = _config.__getattribute__(an)

Definition at line 107 of file hltHiggsPostProcessors_cff.py.

tuple hltHiggsPostProcessors_cff.triggers = []

Definition at line 100 of file hltHiggsPostProcessors_cff.py.

tuple hltHiggsPostProcessors_cff.vstr = s.__getattribute__("hltPathsToCheck")

Definition at line 108 of file hltHiggsPostProcessors_cff.py.