3 stringTemplate =
"{plot} " + \
4 "'{var} efficiency; Offline E_{{T}}^{{miss}} (GeV); {var} efficiency'" + \
5 " {num_path} {den_path}" 6 for variable, thresholds
in variables.items():
7 for plot
in plots[variable]:
8 for threshold
in thresholds:
9 plotName =
'{0}_threshold_{1}'.
format(plot, threshold)
10 varName = plot.replace(
'efficiency',
'')
11 yield stringTemplate.format(
14 num_path=
'efficiency_raw/' + plotName +
'_Num',
15 den_path=
'efficiency_raw/' + plotName +
'_Den',
def generateEfficiencyStrings(variables, plots)