1 import FWCore.ParameterSet.Config
as cms
5 numDenDir =
"numerators_and_denominators/"
6 varStrings = [
'pt',
'eta',
'phi',
'vtx']
7 etaStrings = [
'etaMin0_etaMax0p83',
'etaMin0p83_etaMax1p24',
'etaMin1p24_etaMax2p4',
'etaMin0_etaMax2p4']
8 qualStrings = {0:
'qualAll', 4:
'qualOpen', 8:
'qualDouble', 12:
'qualSingle'}
10 efficiencyStrings = []
11 for ptQualCut
in ptQualCuts:
12 effDenNamePrefix = numDenDir+
"effDen_"
13 effNumNamePrefix = numDenDir+
"effNum_"
14 effNamePrefix =
"eff_"
15 for varString
in varStrings:
16 effDenNameVar = effDenNamePrefix+varString
17 effNumNameVar = effNumNamePrefix+varString+
"_"+
str(ptQualCut[0])
18 effNameVar = effNamePrefix+varString+
"_"+
str(ptQualCut[0])
20 effDenNameVar +=
"_"+
str(ptQualCut[0])
24 if varString !=
"eta":
25 for etaString
in etaStrings:
26 effDenName = effDenNameVar+
"_"+etaString
27 effNumName = effNumNameVar+
"_"+etaString+
"_"+qualStrings[ptQualCut[1]]
28 effName = effNameVar+
"_"+etaString+
"_"+qualStrings[ptQualCut[1]]
29 efficiencyStrings.append(effName+
" '"+effName+
";;L1 muon efficiency' "+effNumName+
" "+effDenName)
31 effDenName = effDenNameVar
32 effNumName = effNumNameVar+
"_"+qualStrings[ptQualCut[1]]
33 effName = effNameVar+
"_"+qualStrings[ptQualCut[1]]
34 efficiencyStrings.append(effName+
" '"+effName+
";;L1 muon efficiency' "+effNumName+
" "+effDenName)
35 return efficiencyStrings
37 from DQMServices.Core.DQMEDHarvester
import DQMEDHarvester
41 subDirs = cms.untracked.vstring(
"L1T/L1TObjects/L1TMuon/L1TriggerVsReco/"),
42 efficiency = cms.vstring(),
44 resolution = cms.vstring(),
45 outputFileName = cms.untracked.string(
""),
46 verbose = cms.untracked.uint32(0)
50 l1tMuonDQMEmuEfficiency = l1tMuonDQMEfficiency.clone(
51 subDirs = [
"L1TEMU/L1TObjects/L1TMuon/L1TriggerVsReco/"]
55 from Configuration.Eras.Modifier_ppRef_2017_cff
import ppRef_2017
56 ppRef_2017.toModify(l1tMuonDQMEfficiency,
59 ppRef_2017.toModify(l1tMuonDQMEmuEfficiency,
def generateEfficiencyStrings