6 numDenDir =
"numerators_and_denominators/"
7 varStrings = [
'pt',
'eta',
'phi',
'vtx']
8 etaStrings = [
'etaMin0_etaMax0p83',
'etaMin0p83_etaMax1p24',
'etaMin1p24_etaMax2p4',
'etaMin0_etaMax2p4']
9 qualStrings = {0:
'qualAll', 4:
'qualOpen', 8:
'qualDouble', 12:
'qualSingle'}
11 efficiencyStrings = []
12 for ptQualCut
in ptQualCuts:
13 effDenNamePrefix = numDenDir+
"effDen_"
14 effNumNamePrefix = numDenDir+
"effNum_"
15 effNamePrefix =
"eff_"
16 for varString
in varStrings:
17 effDenNameVar = effDenNamePrefix+varString
18 effNumNameVar = effNumNamePrefix+varString+
"_"+
str(ptQualCut[0])
19 effNameVar = effNamePrefix+varString+
"_"+
str(ptQualCut[0])
21 effDenNameVar +=
"_"+
str(ptQualCut[0])
25 if varString !=
"eta":
26 for etaString
in etaStrings:
27 effDenName = effDenNameVar+
"_"+etaString
28 effNumName = effNumNameVar+
"_"+etaString+
"_"+qualStrings[ptQualCut[1]]
29 effName = effNameVar+
"_"+etaString+
"_"+qualStrings[ptQualCut[1]]
30 efficiencyStrings.append(effName+
" '"+effName+
";;L1 muon efficiency' "+effNumName+
" "+effDenName)
32 effDenName = effDenNameVar
33 effNumName = effNumNameVar+
"_"+qualStrings[ptQualCut[1]]
34 effName = effNameVar+
"_"+qualStrings[ptQualCut[1]]
35 efficiencyStrings.append(effName+
" '"+effName+
";;L1 muon efficiency' "+effNumName+
" "+effDenName)
36 return efficiencyStrings