5 numDenDir =
"nums_and_dens/" 6 varStrings = [
'Pt',
'Eta',
'Phi']
7 etaStrings = [
'etaMin0_etaMax0p83',
'etaMin0p83_etaMax1p24',
'etaMin1p24_etaMax2p4',
'etaMin0_etaMax2p4']
8 qualStrings = [
'qualOpen',
'qualDouble',
'qualSingle']
9 muonStrings = [
'SAMuon',
'TkMuon']
11 efficiencyStrings = []
13 for muonString
in muonStrings:
14 for qualString
in qualStrings:
15 for etaString
in etaStrings:
16 effNumDenPrefix = numDenDir+
"Eff_"+muonString+
"_"+etaString+
"_"+qualString+
"_" 17 effNamePrefix =
"efficiencies/eff_"+muonString+
"_"+etaString+
"_"+qualString+
"_" 19 for varString
in varStrings:
20 effDenName = effNumDenPrefix+varString+
"_Den" 21 effNumName = effNumDenPrefix+varString+
"_Num" 22 effName = effNamePrefix+varString
24 efficiencyStrings.append(effName+
" '"+effName+
";;L1 muon efficiency' "+effNumName+
" "+effDenName)
25 return efficiencyStrings
def generateEfficiencyStrings(ptQualCuts)