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 add_reco_strings
 
def efficiency_string
 

Variables

list efficiency_strings = []
 
tuple hltHiggsPostH2tau = hltHiggsPostProcessor.clone()
 
tuple hltHiggsPostHgg = hltHiggsPostProcessor.clone()
 
tuple hltHiggsPostHTauNu = hltHiggsPostProcessor.clone()
 
tuple hltHiggsPostHtaunu = hltHiggsPostProcessor.clone()
 
tuple hltHiggsPostHWW = hltHiggsPostProcessor.clone()
 
tuple hltHiggsPostHZZ = hltHiggsPostProcessor.clone()
 
tuple hltHiggsPostProcessors
 
list obj_types = ["Mu","Ele","Photon","MET","PFTau"]
 
list plot_types = ["TurnOn1", "TurnOn2", "EffEta", "EffPhi"]
 
tuple s = config.__getattribute__(an)
 
list triggers = [ ]
 
tuple vstr = s.__getattribute__("hltPathsToCheck")
 

Function Documentation

def hltHiggsPostProcessors_cff.add_reco_strings (   strings)

Definition at line 49 of file hltHiggsPostProcessors_cff.py.

References python.rootplot.root2matplotlib.replace().

49 
50 def add_reco_strings(strings):
51  reco_strings = []
52  for entry in strings:
53  reco_strings.append(entry
54  .replace("Generated", "Reconstructed")
55  .replace("Gen", "Reco")
56  .replace("gen", "rec"))
57  strings.extend(reco_strings)
58 
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 == "PFTau":
19  objtypeLatex="#tau"
20  else:
21  objtypeLatex=objtype
22 
23  numer_description = "# gen %s passed the %s" % (objtypeLatex,triggerpath)
24  denom_description = "# gen %s " % (objtypeLatex)
25 
26  if plot_type == "TurnOn1":
27  title = "pT Turn-On"
28  xAxis = "p_{T} of Leading Generated %s (GeV/c)" % (objtype)
29  input_type = "gen%sMaxPt1" % (objtype)
30  if plot_type == "TurnOn2":
31  title = "Next-to-Leading pT Turn-On"
32  xAxis = "p_{T} of Next-to-Leading Generated %s (GeV/c)" % (objtype)
33  input_type = "gen%sMaxPt2" % (objtype)
34  if plot_type == "EffEta":
35  title = "#eta Efficiency"
36  xAxis = "#eta of Generated %s " % (objtype)
37  input_type = "gen%sEta" % (objtype)
38  if plot_type == "EffPhi":
39  title = "#phi Efficiency"
40  xAxis = "#phi of Generated %s " % (objtype)
41  input_type = "gen%sPhi" % (objtype)
42 
43  yAxis = "%s / %s" % (numer_description, denom_description)
44  all_titles = "%s for trigger %s; %s; %s" % (title, triggerpath,
45  xAxis, yAxis)
46  return "Eff_%s_%s '%s' %s_%s %s" % (input_type,triggerpath,
47  all_titles,input_type,triggerpath,input_type)
48 
# Adding the reco objects

Variable Documentation

list hltHiggsPostProcessors_cff.efficiency_strings = []

Definition at line 65 of file hltHiggsPostProcessors_cff.py.

tuple hltHiggsPostProcessors_cff.hltHiggsPostH2tau = hltHiggsPostProcessor.clone()

Definition at line 101 of file hltHiggsPostProcessors_cff.py.

tuple hltHiggsPostProcessors_cff.hltHiggsPostHgg = hltHiggsPostProcessor.clone()

Definition at line 97 of file hltHiggsPostProcessors_cff.py.

tuple hltHiggsPostProcessors_cff.hltHiggsPostHTauNu = hltHiggsPostProcessor.clone()

Definition at line 85 of file hltHiggsPostProcessors_cff.py.

tuple hltHiggsPostProcessors_cff.hltHiggsPostHtaunu = hltHiggsPostProcessor.clone()

Definition at line 105 of file hltHiggsPostProcessors_cff.py.

tuple hltHiggsPostProcessors_cff.hltHiggsPostHWW = hltHiggsPostProcessor.clone()

Definition at line 89 of file hltHiggsPostProcessors_cff.py.

tuple hltHiggsPostProcessors_cff.hltHiggsPostHZZ = hltHiggsPostProcessor.clone()

Definition at line 93 of file hltHiggsPostProcessors_cff.py.

tuple hltHiggsPostProcessors_cff.hltHiggsPostProcessors
Initial value:
1 = cms.Sequence(
2  hltHiggsPostHWW+
3  hltHiggsPostHZZ+
4  hltHiggsPostHgg+
5  hltHiggsPostHtaunu+
6  hltHiggsPostH2tau
7 )

Definition at line 110 of file hltHiggsPostProcessors_cff.py.

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

Definition at line 62 of file hltHiggsPostProcessors_cff.py.

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

Definition at line 59 of file hltHiggsPostProcessors_cff.py.

tuple hltHiggsPostProcessors_cff.s = config.__getattribute__(an)

Definition at line 71 of file hltHiggsPostProcessors_cff.py.

tuple hltHiggsPostProcessors_cff.triggers = [ ]

Definition at line 64 of file hltHiggsPostProcessors_cff.py.

Referenced by ZdcTBAnalyzer.analyze(), EBClusterTaskExtras.analyze(), EEClusterTaskExtras.analyze(), and operator<<().

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

Definition at line 72 of file hltHiggsPostProcessors_cff.py.

Referenced by EnergyLossPlain.estimate().