CMS 3D CMS Logo

L1TCommon.py
Go to the documentation of this file.
1 def generateEfficiencyStrings(variables, plots):
2  stringTemplate = "{plot} " + \
3  "'{var} efficiency; Offline E_{{T}}^{{miss}} (GeV); {var} efficiency'" + \
4  " {num_path} {den_path}"
5  for variable, thresholds in variables.iteritems():
6  for plot in plots[variable]:
7  for threshold in thresholds:
8  plotName = '{0}_threshold_{1}'.format(plot, threshold)
9  varName = plot.replace('efficiency', '')
10  yield stringTemplate.format(
11  var=varName,
12  plot=plotName,
13  num_path='efficiency_raw/' + plotName + '_Num',
14  den_path='efficiency_raw/' + plotName + '_Den',
15  )
def generateEfficiencyStrings(variables, plots)
Definition: L1TCommon.py:1