Main Page
Namespaces
Classes
Package Documentation
DQMOffline
L1Trigger
python
L1TCommon.py
Go to the documentation of this file.
1
import
six
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
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
)
L1TCommon.generateEfficiencyStrings
def generateEfficiencyStrings(variables, plots)
Definition:
L1TCommon.py:3
format
Generated for CMSSW Reference Manual by
1.8.11