CMS 3D CMS Logo

Functions
L1TCommon Namespace Reference

Functions

def generateEfficiencyStrings (variables, plots)
 

Function Documentation

def L1TCommon.generateEfficiencyStrings (   variables,
  plots 
)

Definition at line 3 of file L1TCommon.py.

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