CMS 3D CMS Logo

L1TMuonDQMOffline_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 import math
3 
4 muonEfficiencyThresholds = [16, 20, 25]
5 
6 # define binning for efficiency plots
7 # pt
8 effVsPtBins = range(0, 50, 2)
9 effVsPtBins += range(50, 70, 5)
10 effVsPtBins += range(70, 100, 10)
11 effVsPtBins += range(100, 200, 25)
12 effVsPtBins += range(200, 300, 50)
13 effVsPtBins += range(300, 500, 100)
14 effVsPtBins.append(500)
15 
16 # phi
17 nPhiBins = 24
18 phiMin = -math.pi
19 phiMax = math.pi
20 effVsPhiBins = [i*(phiMax-phiMin)/nPhiBins + phiMin for i in range(nPhiBins+1)]
21 
22 # eta
23 nEtaBins = 50
24 etaMin = -2.5
25 etaMax = 2.5
26 effVsEtaBins = [i*(etaMax-etaMin)/nEtaBins + etaMin for i in range(nEtaBins+1)]
27 
28 l1tMuonDQMOffline = cms.EDAnalyzer("L1TMuonDQMOffline",
29  histFolder = cms.untracked.string('L1T/L1TMuon'),
30  gmtPtCuts = cms.untracked.vint32(muonEfficiencyThresholds),
31 
32  muonInputTag = cms.untracked.InputTag("muons"),
33  gmtInputTag = cms.untracked.InputTag("gmtStage2Digis","Muon"),
34  vtxInputTag = cms.untracked.InputTag("offlinePrimaryVertices"),
35  bsInputTag = cms.untracked.InputTag("offlineBeamSpot"),
36 
37  triggerNames = cms.untracked.vstring(
38  "HLT_IsoMu18_v*",
39  "HLT_IsoMu20_v*",
40  "HLT_IsoMu22_v*",
41  "HLT_IsoMu24_v*",
42  "HLT_IsoMu27_v*",
43  "HLT_Mu30_v*",
44  "HLT_Mu40_v*"
45  ),
46  trigInputTag = cms.untracked.InputTag("hltTriggerSummaryAOD", "", "HLT"),
47  trigProcess = cms.untracked.string("HLT"),
48  trigProcess_token = cms.untracked.InputTag("TriggerResults","","HLT"),
49 
50  efficiencyVsPtBins = cms.untracked.vdouble(effVsPtBins),
51  efficiencyVsPhiBins = cms.untracked.vdouble(effVsPhiBins),
52  efficiencyVsEtaBins = cms.untracked.vdouble(effVsEtaBins),
53 
54  verbose = cms.untracked.bool(False)
55 )