CMS 3D CMS Logo

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.

00050                              :
00051     reco_strings = []
00052     for entry in strings:
00053         reco_strings.append(entry
00054                             .replace("Generated", "Reconstructed")
00055                             .replace("Gen", "Reco")
00056                             .replace("gen", "rec"))
00057     strings.extend(reco_strings)
00058 

def hltHiggsPostProcessors_cff::efficiency_string (   objtype,
  plot_type,
  triggerpath 
)

Definition at line 6 of file hltHiggsPostProcessors_cff.py.

00007                                                     :
00008     # --- IMPORTANT: Add here a elif if you are introduce a new collection
00009     #                (see EVTColContainer::getTypeString) 
00010     if objtype == "Mu" :
00011         objtypeLatex="#mu"
00012     elif objtype == "Photon": 
00013         objtypeLatex="#gamma"
00014     elif objtype == "Ele": 
00015         objtypeLatex="e"
00016     elif objtype == "MET" :
00017         objtypeLatex="MET"
00018     elif objtype == "PFTau": 
00019         objtypeLatex="#tau"
00020     else:
00021         objtypeLatex=objtype
00022 
00023     numer_description = "# gen %s passed the %s" % (objtypeLatex,triggerpath)
00024     denom_description = "# gen %s " % (objtypeLatex)
00025 
00026     if plot_type == "TurnOn1":
00027         title = "pT Turn-On"
00028         xAxis = "p_{T} of Leading Generated %s (GeV/c)" % (objtype)
00029         input_type = "gen%sMaxPt1" % (objtype)
00030     if plot_type == "TurnOn2":
00031         title = "Next-to-Leading pT Turn-On"
00032         xAxis = "p_{T} of Next-to-Leading Generated %s (GeV/c)" % (objtype)
00033         input_type = "gen%sMaxPt2" % (objtype)
00034     if plot_type == "EffEta":
00035         title = "#eta Efficiency"
00036         xAxis = "#eta of Generated %s " % (objtype)
00037         input_type = "gen%sEta" % (objtype)
00038     if plot_type == "EffPhi":
00039         title = "#phi Efficiency"
00040         xAxis = "#phi of Generated %s " % (objtype)
00041         input_type = "gen%sPhi" % (objtype)
00042 
00043     yAxis = "%s / %s" % (numer_description, denom_description)
00044     all_titles = "%s for trigger %s; %s; %s" % (title, triggerpath,
00045                                         xAxis, yAxis)
00046     return "Eff_%s_%s '%s' %s_%s %s" % (input_type,triggerpath,
00047                     all_titles,input_type,triggerpath,input_type)
00048 
# Adding the reco objects

Variable Documentation

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.

Initial value:
00001 cms.Sequence(
00002                 hltHiggsPostHWW+
00003                 hltHiggsPostHZZ+
00004                 hltHiggsPostHgg+
00005                 hltHiggsPostHtaunu+
00006                 hltHiggsPostH2tau
00007 )

Definition at line 110 of file hltHiggsPostProcessors_cff.py.

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.

Definition at line 64 of file hltHiggsPostProcessors_cff.py.

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