CMS 3D CMS Logo

Functions
L1TCommon Namespace Reference

Functions

def generateEfficiencyStrings (variables, plots)
 

Function Documentation

def L1TCommon.generateEfficiencyStrings (   variables,
  plots 
)

Definition at line 1 of file L1TCommon.py.

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  )
16 
def generateEfficiencyStrings(variables, plots)
Definition: L1TCommon.py:1