Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-09-14 22:42:58

0001 from builtins import range
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 # define binning for efficiency plots
0005 # pt
0006 import itertools
0007 effVsPtBins=list(itertools.chain(range(0, 30, 1), range(30, 50, 2), 
0008                                  range(50, 70, 5), range(70, 100, 10), 
0009                                  range(100, 200, 25), range(200, 300, 50), 
0010                                  range(300, 500, 100), range(500, 700, 200), 
0011                                  range(700, 1000, 300)))
0012 effVsPtBins.append(1000)
0013 
0014 # phi
0015 nPhiBins = 34
0016 phiMin = -3.4
0017 phiMax = 3.4
0018 effVsPhiBins = [i*(phiMax-phiMin)/nPhiBins + phiMin for i in range(nPhiBins+1)]
0019 
0020 # eta
0021 nEtaBins = 50
0022 etaMin = -2.5
0023 etaMax = 2.5
0024 effVsEtaBins = [i*(etaMax-etaMin)/nEtaBins + etaMin for i in range(nEtaBins+1)]
0025 
0026 # vtx
0027 effVsVtxBins = range(0, 101)
0028 
0029 # A list of pt cut + quality cut pairs for which efficiency plots should be made
0030 ptQualCuts = [[22, 12], [15, 8], [3, 4]]
0031 cutsPSets = []
0032 for ptQualCut in ptQualCuts:
0033     cutsPSets.append(cms.untracked.PSet(ptCut = cms.untracked.int32(ptQualCut[0]),
0034                                         qualCut = cms.untracked.int32(ptQualCut[1])))
0035     
0036 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0037 l1tPhase2MuonOffline = DQMEDAnalyzer('L1TPhase2MuonOffline',
0038     histFolder = cms.untracked.string('L1T/L1TPhase2/Muons/'),
0039     cuts = cms.untracked.VPSet(cutsPSets),
0040     useL1AtVtxCoord = cms.untracked.bool(False),
0041     
0042     genParticlesInputTag = cms.untracked.InputTag("genParticles"),
0043     gmtMuonToken  = cms.InputTag("l1tSAMuonsGmt", "promptSAMuons"),
0044     gmtTkMuonToken  = cms.InputTag("l1tTkMuonsGmt",""),
0045 
0046     efficiencyVsPtBins = cms.untracked.vdouble(effVsPtBins),
0047     efficiencyVsPhiBins = cms.untracked.vdouble(effVsPhiBins),
0048     efficiencyVsEtaBins = cms.untracked.vdouble(effVsEtaBins),
0049     efficiencyVsVtxBins = cms.untracked.vdouble(effVsVtxBins),
0050    
0051     maxDR = cms.untracked.double(0.3),
0052 )
0053 
0054