CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
L1TCommon Namespace Reference

Functions

def generateEfficiencyStrings
 

Function Documentation

def L1TCommon.generateEfficiencyStrings (   variables,
  plots 
)

Definition at line 2 of file L1TCommon.py.

2 
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 variables.items():
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  )
def generateEfficiencyStrings
Definition: L1TCommon.py:2