CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
L1TCommon.py
Go to the documentation of this file.
1 
2 def generateEfficiencyStrings(variables, plots):
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(
12  var=varName,
13  plot=plotName,
14  num_path='efficiency_raw/' + plotName + '_Num',
15  den_path='efficiency_raw/' + plotName + '_Den',
16  )
def generateEfficiencyStrings(variables, plots)
Definition: L1TCommon.py:2