CMS 3D CMS Logo

L1TPhase2MuonOffline_cfi.py
Go to the documentation of this file.
1 from builtins import range
2 import FWCore.ParameterSet.Config as cms
3 
4 # define binning for efficiency plots
5 # pt
6 import itertools
7 effVsPtBins=list(itertools.chain(range(0, 30, 1), range(30, 50, 2),
8  range(50, 70, 5), range(70, 100, 10),
9  range(100, 200, 25), range(200, 300, 50),
10  range(300, 500, 100), range(500, 700, 200),
11  range(700, 1000, 300)))
12 effVsPtBins.append(1000)
13 
14 # phi
15 nPhiBins = 34
16 phiMin = -3.4
17 phiMax = 3.4
18 effVsPhiBins = [i*(phiMax-phiMin)/nPhiBins + phiMin for i in range(nPhiBins+1)]
19 
20 # eta
21 nEtaBins = 50
22 etaMin = -2.5
23 etaMax = 2.5
24 effVsEtaBins = [i*(etaMax-etaMin)/nEtaBins + etaMin for i in range(nEtaBins+1)]
25 
26 # vtx
27 effVsVtxBins = range(0, 101)
28 
29 # A list of pt cut + quality cut pairs for which efficiency plots should be made
30 ptQualCuts = [[22, 12], [15, 8], [3, 4]]
31 cutsPSets = []
32 for ptQualCut in ptQualCuts:
33  cutsPSets.append(cms.untracked.PSet(ptCut = cms.untracked.int32(ptQualCut[0]),
34  qualCut = cms.untracked.int32(ptQualCut[1])))
35 
36 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
37 l1tPhase2MuonOffline = DQMEDAnalyzer('L1TPhase2MuonOffline',
38  histFolder = cms.untracked.string('L1T/L1TPhase2/Muons/'),
39  cuts = cms.untracked.VPSet(cutsPSets),
40  useL1AtVtxCoord = cms.untracked.bool(False),
41 
42  genParticlesInputTag = cms.untracked.InputTag("genParticles"),
43  gmtMuonToken = cms.InputTag("l1tSAMuonsGmt", "promptSAMuons"),
44  gmtTkMuonToken = cms.InputTag("l1tTkMuonsGmt",""),
45 
46  efficiencyVsPtBins = cms.untracked.vdouble(effVsPtBins),
47  efficiencyVsPhiBins = cms.untracked.vdouble(effVsPhiBins),
48  efficiencyVsEtaBins = cms.untracked.vdouble(effVsEtaBins),
49  efficiencyVsVtxBins = cms.untracked.vdouble(effVsVtxBins),
50 
51  maxDR = cms.untracked.double(0.3),
52 )
53 
54