1 from builtins
import range
2 import FWCore.ParameterSet.Config
as cms
7 effVsPtBins=list(itertools.chain(
range(0, 30, 1),
range(30, 50, 2),
11 range(700, 1000, 300)))
12 effVsPtBins.append(1000)
18 effVsPhiBins = [i*(phiMax-phiMin)/nPhiBins + phiMin
for i
in range(nPhiBins+1)]
24 effVsEtaBins = [i*(etaMax-etaMin)/nEtaBins + etaMin
for i
in range(nEtaBins+1)]
30 ptQualCuts = [[22, 12], [15, 8], [7, 8], [3, 4]]
32 for ptQualCut
in ptQualCuts:
33 cutsPSets.append(cms.untracked.PSet(ptCut = cms.untracked.int32(ptQualCut[0]),
34 qualCut = cms.untracked.int32(ptQualCut[1])))
36 from DQMServices.Core.DQMEDAnalyzer
import DQMEDAnalyzer
38 histFolder = cms.untracked.string(
'L1T/L1TObjects/L1TMuon/L1TriggerVsReco'),
39 tagPtCut = cms.untracked.double(26.),
40 recoToL1PtCutFactor = cms.untracked.double(1.2),
41 cuts = cms.untracked.VPSet(cutsPSets),
42 useL1AtVtxCoord = cms.untracked.bool(
False),
44 muonInputTag = cms.untracked.InputTag(
"muons"),
45 gmtInputTag = cms.untracked.InputTag(
"gmtStage2Digis",
"Muon"),
46 vtxInputTag = cms.untracked.InputTag(
"offlinePrimaryVertices"),
47 bsInputTag = cms.untracked.InputTag(
"offlineBeamSpot"),
49 triggerNames = cms.untracked.vstring(
53 trigInputTag = cms.untracked.InputTag(
"hltTriggerSummaryAOD",
"",
"HLT"),
54 trigProcess = cms.untracked.string(
"HLT"),
55 trigProcess_token = cms.untracked.InputTag(
"TriggerResults",
"",
"HLT"),
57 efficiencyVsPtBins = cms.untracked.vdouble(effVsPtBins),
58 efficiencyVsPhiBins = cms.untracked.vdouble(effVsPhiBins),
59 efficiencyVsEtaBins = cms.untracked.vdouble(effVsEtaBins),
60 efficiencyVsVtxBins = cms.untracked.vdouble(effVsVtxBins),
64 useTrack = cms.string(
"tracker"),
65 useState = cms.string(
"atVertex"),
66 useSimpleGeometry = cms.bool(
True),
67 useStation2 = cms.bool(
True),
68 fallbackToME1 = cms.bool(
False),
71 verbose = cms.untracked.bool(
False)
75 l1tMuonDQMOfflineEmu = l1tMuonDQMOffline.clone(
76 gmtInputTag = cms.untracked.InputTag(
"simGmtStage2Digis"),
77 histFolder = cms.untracked.string(
'L1TEMU/L1TObjects/L1TMuon/L1TriggerVsReco')
82 ptQualCuts_HI = [[12, 12], [7, 8], [5, 4]]
84 for ptQualCut
in ptQualCuts_HI:
85 cutsPSets_HI.append(cms.untracked.PSet(ptCut = cms.untracked.int32(ptQualCut[0]),
86 qualCut = cms.untracked.int32(ptQualCut[1])))
87 from Configuration.Eras.Modifier_ppRef_2017_cff
import ppRef_2017
88 ppRef_2017.toModify(l1tMuonDQMOffline,
89 tagPtCut = cms.untracked.double(14.),
90 cuts = cms.untracked.VPSet(cutsPSets_HI),
91 triggerNames = cms.untracked.vstring(
95 ppRef_2017.toModify(l1tMuonDQMOfflineEmu,
96 tagPtCut = cms.untracked.double(14.),
97 cuts = cms.untracked.VPSet(cutsPSets_HI),
98 triggerNames = cms.untracked.vstring(