CMS 3D CMS Logo

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

Functions

def add_reco_strings
 
def efficiency_string
 

Variables

list efficiency_strings = []
 
tuple hltSMPPostProcessors
 
tuple hltSMPPostSinglePhoton = hltSMPPostProcessor.clone()
 
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 hltSMPPostProcessors_cff.add_reco_strings (   strings)

Definition at line 49 of file hltSMPPostProcessors_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 hltSMPPostProcessors_cff.efficiency_string (   objtype,
  plot_type,
  triggerpath 
)

Definition at line 6 of file hltSMPPostProcessors_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 hltSMPPostProcessors_cff.efficiency_strings = []

Definition at line 65 of file hltSMPPostProcessors_cff.py.

tuple hltSMPPostProcessors_cff.hltSMPPostProcessors
Initial value:
1 = cms.Sequence(
2 # hltSMPPostSingleEle+
3 # hltSMPPostSingleMu+
4  hltSMPPostSinglePhoton
5 )

Definition at line 106 of file hltSMPPostProcessors_cff.py.

tuple hltSMPPostProcessors_cff.hltSMPPostSinglePhoton = hltSMPPostProcessor.clone()

Definition at line 102 of file hltSMPPostProcessors_cff.py.

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

Definition at line 62 of file hltSMPPostProcessors_cff.py.

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

Definition at line 59 of file hltSMPPostProcessors_cff.py.

tuple hltSMPPostProcessors_cff.s = _config.__getattribute__(an)

Definition at line 71 of file hltSMPPostProcessors_cff.py.

tuple hltSMPPostProcessors_cff.triggers = [ ]

Definition at line 64 of file hltSMPPostProcessors_cff.py.

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

Definition at line 72 of file hltSMPPostProcessors_cff.py.