/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DQMOffline/L1Trigger/python/L1TCommon.py
15 строк
725 B
David
remove unneeded import six
17 июл 2021, 11:39
17 июл 2021, 11:39
2b86720
Код
Авторство
О чём код?
def generateEfficiencyStrings(variables, plots): stringTemplate = "{plot} " + \ "'{var} efficiency; Offline E_{{T}}^{{miss}} (GeV); {var} efficiency'" + \ " {num_path} {den_path}" for variable, thresholds in variables.items(): for plot in plots[variable]: for threshold in thresholds: plotName = '{0}_threshold_{1}'.format(plot, threshold) varName = plot.replace('efficiency', '') yield stringTemplate.format( var=varName, plot=plotName, num_path='efficiency_raw/' + plotName + '_Num', den_path='efficiency_raw/' + plotName + '_Den', )