86 def make_higgs_postprocessor(analysis_name, plot_types=["TurnOn1", "TurnOn2", "EffEta", "EffPhi"], object_types=["Mu","Ele","Photon","MET","PFMET","PFTau","Jet"], extra_str_templates=[]):
87 postprocessor = hltHiggsPostProcessor.clone()
88 postprocessor.subDirs = [
"HLT/Higgs/" + analysis_name]
89 efficiency_strings = []
91 efficiency_summary_string =
"EffSummaryPaths_" + analysis_name +
"_gen ' Efficiency of paths used in " + analysis_name +
" ; trigger path ' SummaryPaths_" + analysis_name +
"_gen_passingHLT SummaryPaths_" + analysis_name +
"_gen" 92 efficiency_strings.append(efficiency_summary_string)
93 efficiency_strings.append(efficiency_summary_string.replace(
"Generated",
"Reconstructed").
replace(
"Gen",
"Reco").
replace(
"gen",
"rec"))
95 for plot_type
in plot_types:
96 for object_type
in object_types:
97 for trigger
in [x.replace(
"_v",
"")
for x
in _config.__getattribute__(analysis_name).hltPathsToCheck]:
99 efficiency_strings.append(this_efficiency_string)
100 efficiency_strings.append(this_efficiency_string.replace(
"Generated",
"Reconstructed").
replace(
"Gen",
"Reco").
replace(
"gen",
"rec"))
102 for str_template
in extra_str_templates:
103 this_extra_string = str_template.replace(
"@ANALYSIS@", analysis_name).
replace(
"@TRIGGER@", trigger)
104 efficiency_strings.append(this_extra_string)
105 efficiency_strings.append(this_extra_string.replace(
"Generated",
"Reconstructed").
replace(
"Gen",
"Reco").
replace(
"gen",
"rec"))
107 postprocessor.efficiencyProfile = efficiency_strings
def make_higgs_postprocessor(analysis_name, plot_types=["TurnOn1", TurnOn2, EffEta, EffPhi, object_types=["Mu", Ele, Photon, MET, PFMET, PFTau, Jet, extra_str_templates=[])
def replace(string, replacements)
def make_efficiency_string(objtype, plot_type, triggerpath)