Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:09:34

0001 
0002 def generateEfficiencyStrings(variables, plots):
0003     stringTemplate = "{plot} " + \
0004         "'{var} efficiency; Offline E_{{T}}^{{miss}} (GeV); {var} efficiency'" + \
0005         " {num_path} {den_path}"
0006     for variable, thresholds in variables.items():
0007         for plot in plots[variable]:
0008             for threshold in thresholds:
0009                 plotName = '{0}_threshold_{1}'.format(plot, threshold)
0010                 varName = plot.replace('efficiency', '')
0011                 yield stringTemplate.format(
0012                     var=varName,
0013                     plot=plotName,
0014                     num_path='efficiency_raw/' + plotName + '_Num',
0015                     den_path='efficiency_raw/' + plotName + '_Den',
0016                 )