CMS 3D CMS Logo

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

Functions

def add_reco_strings
 
def efficiency_string
 

Variables

list efficiency_strings = []
 
tuple hltExoticaPostEleMu = hltExoticaPostProcessor.clone()
 
tuple hltExoticaPostHighPtDielectron = hltExoticaPostProcessor.clone()
 
tuple hltExoticaPostHighPtDimuon = hltExoticaPostProcessor.clone()
 
tuple hltExoticaPostHT = hltExoticaPostProcessor.clone()
 
tuple hltExoticaPostMonojet = hltExoticaPostProcessor.clone()
 
tuple hltExoticaPostProcessors
 
tuple hltExoticaPostPureMET = hltExoticaPostProcessor.clone()
 
list obj_types = ["Mu","Ele","Photon","PFTau","PFJet","MET"]
 
list plot_types = ["TurnOn1", "TurnOn2", "TurnOn3", "EffEta", "EffPhi"]
 
tuple s = _config.__getattribute__(an)
 
list triggers = [ ]
 
tuple vstr = s.__getattribute__("hltPathsToCheck")
 

Function Documentation

def hltExoticaPostProcessors_cff.add_reco_strings (   strings)

Definition at line 55 of file hltExoticaPostProcessors_cff.py.

References python.rootplot.root2matplotlib.replace().

55 
56 def add_reco_strings(strings):
57  reco_strings = []
58  for entry in strings:
59  reco_strings.append(entry
60  .replace("Generated", "Reconstructed")
61  .replace("Gen", "Reco")
62  .replace("gen", "rec"))
63  strings.extend(reco_strings)
64 
def hltExoticaPostProcessors_cff.efficiency_string (   objtype,
  plot_type,
  triggerpath 
)

Definition at line 6 of file hltExoticaPostProcessors_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 == "Ele":
13  objtypeLatex="e"
14  elif objtype == "Photon":
15  objtypeLatex="#gamma"
16  elif objtype == "PFTau":
17  objtypeLatex="#tau"
18  elif objtype == "PFJet":
19  objtypeLatex="PFJet"
20  elif objtype == "MET" :
21  objtypeLatex="MET"
22  else:
23  objtypeLatex=objtype
24 
25  numer_description = "# gen %s passed the %s" % (objtypeLatex,triggerpath)
26  denom_description = "# gen %s " % (objtypeLatex)
27 
28  if plot_type == "TurnOn1":
29  title = "pT Turn-On"
30  xAxis = "p_{T} of Leading Generated %s (GeV/c)" % (objtype)
31  input_type = "gen%sMaxPt1" % (objtype)
32  if plot_type == "TurnOn2":
33  title = "Next-to-Leading pT Turn-On"
34  xAxis = "p_{T} of Next-to-Leading Generated %s (GeV/c)" % (objtype)
35  input_type = "gen%sMaxPt2" % (objtype)
36  if plot_type == "TurnOn3":
37  title = "HT Turn-On"
38  xAxis = "HT of Leading Generated %s (GeV/c)" % (objtype)
39  input_type = "gen%sSumEt" % (objtype)
40  if plot_type == "EffEta":
41  title = "#eta Efficiency"
42  xAxis = "#eta of Generated %s " % (objtype)
43  input_type = "gen%sEta" % (objtype)
44  if plot_type == "EffPhi":
45  title = "#phi Efficiency"
46  xAxis = "#phi of Generated %s " % (objtype)
47  input_type = "gen%sPhi" % (objtype)
48 
49  yAxis = "%s / %s" % (numer_description, denom_description)
50  all_titles = "%s for trigger %s; %s; %s" % (title, triggerpath,
51  xAxis, yAxis)
52  return "Eff_%s_%s '%s' %s_%s %s" % (input_type,triggerpath,
53  all_titles,input_type,triggerpath,input_type)
54 
# Adding the reco objects

Variable Documentation

list hltExoticaPostProcessors_cff.efficiency_strings = []

Definition at line 71 of file hltExoticaPostProcessors_cff.py.

tuple hltExoticaPostProcessors_cff.hltExoticaPostEleMu = hltExoticaPostProcessor.clone()

Definition at line 103 of file hltExoticaPostProcessors_cff.py.

tuple hltExoticaPostProcessors_cff.hltExoticaPostHighPtDielectron = hltExoticaPostProcessor.clone()

Definition at line 99 of file hltExoticaPostProcessors_cff.py.

tuple hltExoticaPostProcessors_cff.hltExoticaPostHighPtDimuon = hltExoticaPostProcessor.clone()

Definition at line 95 of file hltExoticaPostProcessors_cff.py.

tuple hltExoticaPostProcessors_cff.hltExoticaPostHT = hltExoticaPostProcessor.clone()

Definition at line 115 of file hltExoticaPostProcessors_cff.py.

tuple hltExoticaPostProcessors_cff.hltExoticaPostMonojet = hltExoticaPostProcessor.clone()

Definition at line 107 of file hltExoticaPostProcessors_cff.py.

tuple hltExoticaPostProcessors_cff.hltExoticaPostProcessors
Initial value:
1 = cms.Sequence(
2  hltExoticaPostHighPtDimuon +
3  hltExoticaPostHighPtDielectron +
4  hltExoticaPostEleMu +
5  hltExoticaPostMonojet +
6  hltExoticaPostPureMET +
7  hltExoticaPostHT
8 )

Definition at line 119 of file hltExoticaPostProcessors_cff.py.

tuple hltExoticaPostProcessors_cff.hltExoticaPostPureMET = hltExoticaPostProcessor.clone()

Definition at line 111 of file hltExoticaPostProcessors_cff.py.

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

Definition at line 68 of file hltExoticaPostProcessors_cff.py.

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

Definition at line 65 of file hltExoticaPostProcessors_cff.py.

tuple hltExoticaPostProcessors_cff.s = _config.__getattribute__(an)

Definition at line 77 of file hltExoticaPostProcessors_cff.py.

tuple hltExoticaPostProcessors_cff.triggers = [ ]

Definition at line 70 of file hltExoticaPostProcessors_cff.py.

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

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

Definition at line 78 of file hltExoticaPostProcessors_cff.py.