Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-12-01 03:53:39

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from RecoMuon.TrackingTools.MuonServiceProxy_cff import *
0004 
0005 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0006 TightMuonEfficiencyAnalyzer = DQMEDAnalyzer('EfficiencyAnalyzer',
0007                                              MuonServiceProxy,
0008                                              MuonCollection  = cms.InputTag("muons"),
0009                                              TrackCollection = cms.InputTag("generalTracks"),
0010                                              VertexLabel     = cms.InputTag("offlinePrimaryVertices"),
0011                                              BeamSpotLabel   = cms.InputTag("offlineBeamSpot"),
0012                                              
0013                                              doPrimaryVertexCheck = cms.bool( True ),
0014                                              
0015                                              ptBin = cms.int32(10),
0016                                              ptMax = cms.double(100),
0017                                              ptMin = cms.double(10),
0018                                              
0019                                              etaBin = cms.int32(8),
0020                                              etaMax = cms.double(2.5),
0021                                              etaMin = cms.double(-2.5),
0022                                              
0023                                              phiBin = cms.int32(8),
0024                                              phiMax = cms.double(3.2),
0025                                              phiMin = cms.double(-3.2),
0026                                              
0027                                              vtxBin = cms.int32(30),
0028                                              vtxMax = cms.double(149.5),
0029                                              vtxMin = cms.double(0.5),
0030                                              
0031                                              ID = cms.string("Tight"),
0032                                              folder = cms.string("Muons/EfficiencyAnalyzer/")
0033                                              )
0034 TightMuonEfficiencyAnalyzer_miniAOD = DQMEDAnalyzer('EfficiencyAnalyzer',
0035                                                      MuonServiceProxy,
0036                                                      MuonCollection  = cms.InputTag("slimmedMuons"),
0037                                                      TrackCollection = cms.InputTag("generalTracks"),
0038                                                      VertexLabel     = cms.InputTag("offlineSlimmedPrimaryVertices"),
0039                                                      BeamSpotLabel   = cms.InputTag("offlineBeamSpot"),
0040                                                      
0041                                                      doPrimaryVertexCheck = cms.bool( True ),
0042                                                      
0043                                                      ptBin = cms.int32(10),
0044                                                      ptMax = cms.double(100),
0045                                                      ptMin = cms.double(10),
0046                                         
0047                                                      etaBin = cms.int32(8),
0048                                                      etaMax = cms.double(2.5),
0049                                                      etaMin = cms.double(-2.5),
0050                                                      
0051                                                      phiBin = cms.int32(8),
0052                                                      phiMax = cms.double(3.2),
0053                                                      phiMin = cms.double(-3.2),
0054                                                      
0055                                                      vtxBin = cms.int32(30),
0056                                                      vtxMax = cms.double(149.5),
0057                                                      vtxMin = cms.double(0.5),
0058                                                      
0059                                                      ID = cms.string("Tight"),
0060                                                      folder = cms.string("Muons_miniAOD/EfficiencyAnalyzer/")
0061                                                      )
0062 
0063 
0064 LooseMuonEfficiencyAnalyzer = DQMEDAnalyzer('EfficiencyAnalyzer',
0065                                              MuonServiceProxy,
0066                                              MuonCollection  = cms.InputTag("muons"),
0067                                              TrackCollection = cms.InputTag("generalTracks"),
0068                                              VertexLabel     = cms.InputTag("offlinePrimaryVertices"),
0069                                              BeamSpotLabel   = cms.InputTag("offlineBeamSpot"),
0070                                              
0071                                              doPrimaryVertexCheck = cms.bool( True ),
0072                                              
0073                                              ptBin = cms.int32(10),
0074                                              ptMax = cms.double(100),
0075                                              ptMin = cms.double(10),
0076                                              
0077                                              etaBin = cms.int32(8),
0078                                              etaMax = cms.double(2.5),
0079                                              etaMin = cms.double(-2.5),
0080                                              
0081                                              phiBin = cms.int32(8),
0082                                              phiMax = cms.double(3.2),
0083                                              phiMin = cms.double(-3.2),
0084                                              
0085                                              vtxBin = cms.int32(30),
0086                                              vtxMax = cms.double(149.5),
0087                                              vtxMin = cms.double(0.5),
0088                                              
0089                                              ID = cms.string("Loose"),
0090                                              folder = cms.string("Muons/EfficiencyAnalyzer/")
0091                                              
0092                                              )
0093 LooseMuonEfficiencyAnalyzer_miniAOD = DQMEDAnalyzer('EfficiencyAnalyzer',
0094                                                      MuonServiceProxy,
0095                                                      MuonCollection  = cms.InputTag("slimmedMuons"),
0096                                                      TrackCollection = cms.InputTag("generalTracks"),
0097                                                      VertexLabel     = cms.InputTag("offlineSlimmedPrimaryVertices"),
0098                                                      BeamSpotLabel   = cms.InputTag("offlineBeamSpot"),
0099                                                      
0100                                                      doPrimaryVertexCheck = cms.bool( True ),
0101                                                      
0102                                                      ptBin = cms.int32(10),
0103                                                      ptMax = cms.double(100),
0104                                                      ptMin = cms.double(10),
0105                                                      
0106                                                      etaBin = cms.int32(8),
0107                                                      etaMax = cms.double(2.5),
0108                                                      etaMin = cms.double(-2.5),
0109                                                      
0110                                                      phiBin = cms.int32(8),
0111                                                      phiMax = cms.double(3.2),
0112                                                      phiMin = cms.double(-3.2),
0113                                                      
0114                                                      vtxBin = cms.int32(30),
0115                                                      vtxMax = cms.double(149.5),
0116                                                      vtxMin = cms.double(0.5),
0117 
0118                                                      ID = cms.string("Loose"),
0119                                                      folder = cms.string("Muons_miniAOD/EfficiencyAnalyzer/")
0120                                                      
0121                                                      )
0122 
0123 
0124 MediumMuonEfficiencyAnalyzer = DQMEDAnalyzer('EfficiencyAnalyzer',
0125                                               MuonServiceProxy,
0126                                               MuonCollection  = cms.InputTag("muons"),
0127                                               TrackCollection = cms.InputTag("generalTracks"),
0128                                               VertexLabel     = cms.InputTag("offlinePrimaryVertices"),
0129                                               BeamSpotLabel   = cms.InputTag("offlineBeamSpot"),
0130                                               
0131                                               doPrimaryVertexCheck = cms.bool( True ),
0132                                               
0133                                               ptBin = cms.int32(10),
0134                                               ptMax = cms.double(100),
0135                                               ptMin = cms.double(10),
0136                                               
0137                                               etaBin = cms.int32(8),
0138                                               etaMax = cms.double(2.5),
0139                                               etaMin = cms.double(-2.5),
0140                                               
0141                                               phiBin = cms.int32(8),
0142                                               phiMax = cms.double(3.2),
0143                                               phiMin = cms.double(-3.2),
0144                                               
0145                                               vtxBin = cms.int32(30),
0146                                               vtxMax = cms.double(149.5),
0147                                               vtxMin = cms.double(0.5),
0148                                               
0149                                               ID = cms.string("Medium"),
0150                                               folder = cms.string("Muons/EfficiencyAnalyzer/")
0151                                               )
0152 
0153 MediumMuonEfficiencyAnalyzer_miniAOD = DQMEDAnalyzer('EfficiencyAnalyzer',
0154                                                       MuonServiceProxy,
0155                                                       MuonCollection  = cms.InputTag("slimmedMuons"),
0156                                                       TrackCollection = cms.InputTag("generalTracks"),
0157                                                       VertexLabel     = cms.InputTag("offlineSlimmedPrimaryVertices"),
0158                                                       BeamSpotLabel   = cms.InputTag("offlineBeamSpot"),
0159                                                       
0160                                                       doPrimaryVertexCheck = cms.bool( True ),
0161                                                       
0162                                                       ptBin = cms.int32(10),
0163                                                       ptMax = cms.double(100),
0164                                                       ptMin = cms.double(10),
0165                                                       
0166                                                       etaBin = cms.int32(8),
0167                                                       etaMax = cms.double(2.5),
0168                                                       etaMin = cms.double(-2.5),
0169                                               
0170                                                       phiBin = cms.int32(8),
0171                                                       phiMax = cms.double(3.2),
0172                                                       phiMin = cms.double(-3.2),
0173                                                       
0174                                                       vtxBin = cms.int32(30),
0175                                                       vtxMax = cms.double(149.5),
0176                                                       vtxMin = cms.double(0.5),                                                      
0177                                                       ID = cms.string("Medium"),
0178                                                       folder = cms.string("Muons_miniAOD/EfficiencyAnalyzer/")
0179                                                       )
0180 
0181 
0182 EfficiencyAnalyzer = cms.Sequence(TightMuonEfficiencyAnalyzer*LooseMuonEfficiencyAnalyzer*MediumMuonEfficiencyAnalyzer)
0183 
0184 EfficiencyAnalyzer_miniAOD = cms.Sequence(TightMuonEfficiencyAnalyzer_miniAOD*LooseMuonEfficiencyAnalyzer_miniAOD*MediumMuonEfficiencyAnalyzer_miniAOD)
0185 
0186 TightMuonEfficiencyAnalyzer_Phase2=TightMuonEfficiencyAnalyzer.clone(
0187     vtxBin=20,
0188     vtxMin=149.5,
0189     vtxMax=249.5
0190 )
0191 
0192 LooseMuonEfficiencyAnalyzer_Phase2=LooseMuonEfficiencyAnalyzer.clone(
0193     vtxBin=20,
0194     vtxMin=149.5,
0195     vtxMax=249.5 
0196 )                                                                     
0197 
0198 MediumMuonEfficiencyAnalyzer_Phase2=MediumMuonEfficiencyAnalyzer.clone(                                                                    
0199     vtxBin=20,
0200     vtxMin=149.5,
0201     vtxMax=249.5
0202 )
0203 
0204 TightMuonEfficiencyAnalyzer_miniAOD_Phase2=TightMuonEfficiencyAnalyzer_miniAOD.clone(                                                      
0205     vtxBin=20,
0206     vtxMin=149.5,
0207     vtxMax=249.5
0208 )
0209 
0210 LooseMuonEfficiencyAnalyzer_miniAOD_Phase2=LooseMuonEfficiencyAnalyzer_miniAOD.clone(
0211     vtxBin=20,
0212     vtxMin=149.5,
0213     vtxMax=249.5                                                      
0214 )
0215 
0216 MediumMuonEfficiencyAnalyzer_miniAOD_Phase2=MediumMuonEfficiencyAnalyzer.clone(
0217     vtxBin=20,
0218     vtxMin=149.5,
0219     vtxMax=249.5                                                           
0220 )
0221                                                         
0222 EfficiencyAnalyzer_Phase2 = cms.Sequence(TightMuonEfficiencyAnalyzer_Phase2*LooseMuonEfficiencyAnalyzer_Phase2*MediumMuonEfficiencyAnalyzer_Phase2)
0223 
0224 EfficiencyAnalyzer_miniAOD_Phase2 = cms.Sequence(TightMuonEfficiencyAnalyzer_miniAOD_Phase2*LooseMuonEfficiencyAnalyzer_miniAOD_Phase2*MediumMuonEfficiencyAnalyzer_miniAOD_Phase2)                                                                                                    
0225             
0226 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon                                                                         
0227 phase2_muon.toReplaceWith(EfficiencyAnalyzer, EfficiencyAnalyzer_Phase2)                                                                   
0228 phase2_muon.toReplaceWith(EfficiencyAnalyzer_miniAOD, EfficiencyAnalyzer_miniAOD_Phase2)