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 hltExoticaPostDiPhoton = hltExoticaPostProcessor.clone()
 
tuple hltExoticaPostDisplacedDimuon = hltExoticaPostProcessor.clone()
 
tuple hltExoticaPostDisplacedEleMu = hltExoticaPostProcessor.clone()
 
tuple hltExoticaPostDisplacedL2Dimuon = hltExoticaPostProcessor.clone()
 
tuple hltExoticaPostHighPtDielectron = hltExoticaPostProcessor.clone()
 
tuple hltExoticaPostHighPtDimuon = hltExoticaPostProcessor.clone()
 
tuple hltExoticaPostHighPtElectron = hltExoticaPostProcessor.clone()
 
tuple hltExoticaPostHighPtPhoton = hltExoticaPostProcessor.clone()
 
tuple hltExoticaPostHT = hltExoticaPostProcessor.clone()
 
tuple hltExoticaPostJetNoBptx = hltExoticaPostProcessor.clone()
 
tuple hltExoticaPostLowPtDielectron = hltExoticaPostProcessor.clone()
 
tuple hltExoticaPostLowPtDimuon = hltExoticaPostProcessor.clone()
 
tuple hltExoticaPostLowPtElectron = hltExoticaPostProcessor.clone()
 
tuple hltExoticaPostMonojet = hltExoticaPostProcessor.clone()
 
tuple hltExoticaPostMuonNoBptx = hltExoticaPostProcessor.clone()
 
tuple hltExoticaPostProcessors
 
tuple hltExoticaPostPureMET = hltExoticaPostProcessor.clone()
 
list obj_types = ["Mu","refittedStandAloneMuons","Ele","Photon","PFTau","PFJet","MET","PFMET","CaloJet"]
 
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 61 of file hltExoticaPostProcessors_cff.py.

References python.rootplot.root2matplotlib.replace().

61 
62 def add_reco_strings(strings):
63  reco_strings = []
64  for entry in strings:
65  reco_strings.append(entry
66  .replace("Generated", "Reconstructed")
67  .replace("Gen", "Reco")
68  .replace("gen", "rec"))
69  strings.extend(reco_strings)
70 
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 == "refittedStandAloneMuons":
13  objtypeLatex="refittedStandAlone #mu"
14  elif objtype == "Ele":
15  objtypeLatex="e"
16  elif objtype == "Photon":
17  objtypeLatex="#gamma"
18  elif objtype == "PFTau":
19  objtypeLatex="#tau"
20  elif objtype == "PFJet":
21  objtypeLatex="PFJet"
22  elif objtype == "MET" :
23  objtypeLatex="MET"
24  elif objtype == "PFMET" :
25  objtypeLatex="PFMET"
26  elif objtype == "CaloJet" :
27  objtypeLatex="CaloJet"
28  else:
29  objtypeLatex=objtype
30 
31  numer_description = "# gen %s passed the %s" % (objtypeLatex,triggerpath)
32  denom_description = "# gen %s " % (objtypeLatex)
33 
34  if plot_type == "TurnOn1":
35  title = "pT Turn-On"
36  xAxis = "p_{T} of Leading Generated %s (GeV/c)" % (objtype)
37  input_type = "gen%sMaxPt1" % (objtype)
38  if plot_type == "TurnOn2":
39  title = "Next-to-Leading pT Turn-On"
40  xAxis = "p_{T} of Next-to-Leading Generated %s (GeV/c)" % (objtype)
41  input_type = "gen%sMaxPt2" % (objtype)
42  if plot_type == "TurnOn3":
43  title = "HT Turn-On"
44  xAxis = "HT of Leading Generated %s (GeV/c)" % (objtype)
45  input_type = "gen%sSumEt" % (objtype)
46  if plot_type == "EffEta":
47  title = "#eta Efficiency"
48  xAxis = "#eta of Generated %s " % (objtype)
49  input_type = "gen%sEta" % (objtype)
50  if plot_type == "EffPhi":
51  title = "#phi Efficiency"
52  xAxis = "#phi of Generated %s " % (objtype)
53  input_type = "gen%sPhi" % (objtype)
54 
55  yAxis = "%s / %s" % (numer_description, denom_description)
56  all_titles = "%s for trigger %s; %s; %s" % (title, triggerpath,
57  xAxis, yAxis)
58  return "Eff_%s_%s '%s' %s_%s %s" % (input_type,triggerpath,
59  all_titles,input_type,triggerpath,input_type)
60 
# Adding the reco objects

Variable Documentation

list hltExoticaPostProcessors_cff.efficiency_strings = []

Definition at line 77 of file hltExoticaPostProcessors_cff.py.

tuple hltExoticaPostProcessors_cff.hltExoticaPostDiPhoton = hltExoticaPostProcessor.clone()

Definition at line 129 of file hltExoticaPostProcessors_cff.py.

tuple hltExoticaPostProcessors_cff.hltExoticaPostDisplacedDimuon = hltExoticaPostProcessor.clone()

Definition at line 149 of file hltExoticaPostProcessors_cff.py.

tuple hltExoticaPostProcessors_cff.hltExoticaPostDisplacedEleMu = hltExoticaPostProcessor.clone()

Definition at line 145 of file hltExoticaPostProcessors_cff.py.

tuple hltExoticaPostProcessors_cff.hltExoticaPostDisplacedL2Dimuon = hltExoticaPostProcessor.clone()

Definition at line 153 of file hltExoticaPostProcessors_cff.py.

tuple hltExoticaPostProcessors_cff.hltExoticaPostHighPtDielectron = hltExoticaPostProcessor.clone()

Definition at line 105 of file hltExoticaPostProcessors_cff.py.

tuple hltExoticaPostProcessors_cff.hltExoticaPostHighPtDimuon = hltExoticaPostProcessor.clone()

Definition at line 101 of file hltExoticaPostProcessors_cff.py.

tuple hltExoticaPostProcessors_cff.hltExoticaPostHighPtElectron = hltExoticaPostProcessor.clone()

Definition at line 109 of file hltExoticaPostProcessors_cff.py.

tuple hltExoticaPostProcessors_cff.hltExoticaPostHighPtPhoton = hltExoticaPostProcessor.clone()

Definition at line 125 of file hltExoticaPostProcessors_cff.py.

tuple hltExoticaPostProcessors_cff.hltExoticaPostHT = hltExoticaPostProcessor.clone()

Definition at line 133 of file hltExoticaPostProcessors_cff.py.

tuple hltExoticaPostProcessors_cff.hltExoticaPostJetNoBptx = hltExoticaPostProcessor.clone()

Definition at line 137 of file hltExoticaPostProcessors_cff.py.

tuple hltExoticaPostProcessors_cff.hltExoticaPostLowPtDielectron = hltExoticaPostProcessor.clone()

Definition at line 121 of file hltExoticaPostProcessors_cff.py.

tuple hltExoticaPostProcessors_cff.hltExoticaPostLowPtDimuon = hltExoticaPostProcessor.clone()

Definition at line 117 of file hltExoticaPostProcessors_cff.py.

tuple hltExoticaPostProcessors_cff.hltExoticaPostLowPtElectron = hltExoticaPostProcessor.clone()

Definition at line 113 of file hltExoticaPostProcessors_cff.py.

tuple hltExoticaPostProcessors_cff.hltExoticaPostMonojet = hltExoticaPostProcessor.clone()

Definition at line 158 of file hltExoticaPostProcessors_cff.py.

tuple hltExoticaPostProcessors_cff.hltExoticaPostMuonNoBptx = hltExoticaPostProcessor.clone()

Definition at line 141 of file hltExoticaPostProcessors_cff.py.

tuple hltExoticaPostProcessors_cff.hltExoticaPostProcessors
Initial value:
1 = cms.Sequence(
2  # Di-lepton paths
3  hltExoticaPostHighPtDimuon +
4  hltExoticaPostHighPtDielectron +
5  hltExoticaPostLowPtDimuon +
6  hltExoticaPostLowPtDielectron +
7  # Single Lepton paths
8  hltExoticaPostHighPtElectron +
9  hltExoticaPostLowPtElectron +
10  # Photon paths
11  hltExoticaPostHighPtPhoton +
12  hltExoticaPostDiPhoton +
13  # HT path
14  hltExoticaPostHT +
15  # NoBptx paths
16  hltExoticaPostJetNoBptx +
17  hltExoticaPostMuonNoBptx +
18  # Displaced paths
19  hltExoticaPostDisplacedEleMu +
20  hltExoticaPostDisplacedDimuon +
21  hltExoticaPostDisplacedL2Dimuon +
22  # Others (to be properly integrated)
23  hltExoticaPostMonojet +
24  hltExoticaPostPureMET
25  )

Definition at line 166 of file hltExoticaPostProcessors_cff.py.

tuple hltExoticaPostProcessors_cff.hltExoticaPostPureMET = hltExoticaPostProcessor.clone()

Definition at line 162 of file hltExoticaPostProcessors_cff.py.

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

Definition at line 74 of file hltExoticaPostProcessors_cff.py.

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

Definition at line 71 of file hltExoticaPostProcessors_cff.py.

tuple hltExoticaPostProcessors_cff.s = _config.__getattribute__(an)

Definition at line 83 of file hltExoticaPostProcessors_cff.py.

tuple hltExoticaPostProcessors_cff.triggers = [ ]

Definition at line 76 of file hltExoticaPostProcessors_cff.py.

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

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

Definition at line 84 of file hltExoticaPostProcessors_cff.py.