File indexing completed on 2024-04-06 12:09:39
0001 import FWCore.ParameterSet.Config as cms
0002
0003 from RecoMuon.MuonIsolationProducers.muIsoDeposits_cff import *
0004 from TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorAny_cfi import *
0005
0006 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0007 MuIsoDQM_trk = DQMEDAnalyzer('MuonIsolationDQM',
0008 Global_Muon_Label = cms.untracked.InputTag("muons"),
0009 requireTRKMuon = cms.untracked.bool(True),
0010 requireSTAMuon = cms.untracked.bool(False),
0011 requireGLBMuon = cms.untracked.bool(False),
0012 ecalIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","ecal"),
0013
0014 hcalIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","hcal"),
0015 tkIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositTk"),
0016 hoIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","ho"),
0017 vertexLabel = cms.untracked.InputTag("offlinePrimaryVertices"),
0018 directory = cms.string("Muons/Isolation/tracker"),
0019 vtxBin = cms.int32(30),
0020 vtxMax = cms.double(149.5),
0021 vtxMin = cms.double(0.5)
0022 )
0023
0024 MuIsoDQM_sta = DQMEDAnalyzer('MuonIsolationDQM',
0025 Global_Muon_Label = cms.untracked.InputTag("muons"),
0026 requireTRKMuon = cms.untracked.bool(False),
0027 requireSTAMuon = cms.untracked.bool(True),
0028 requireGLBMuon = cms.untracked.bool(False),
0029 ecalIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","ecal"),
0030
0031 hcalIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","hcal"),
0032 tkIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositTk"),
0033 hoIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","ho"),
0034 vertexLabel = cms.untracked.InputTag("offlinePrimaryVertices"),
0035 directory = cms.string("Muons/Isolation/standalone"),
0036 vtxBin = cms.int32(30),
0037 vtxMax = cms.double(149.5),
0038 vtxMin = cms.double(0.5)
0039 )
0040
0041 MuIsoDQM_glb = DQMEDAnalyzer('MuonIsolationDQM',
0042 Global_Muon_Label = cms.untracked.InputTag("muons"),
0043 requireTRKMuon = cms.untracked.bool(False),
0044 requireSTAMuon = cms.untracked.bool(False),
0045 requireGLBMuon = cms.untracked.bool(True),
0046 ecalIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","ecal"),
0047
0048 hcalIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","hcal"),
0049 tkIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositTk"),
0050 hoIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","ho"),
0051 vertexLabel = cms.untracked.InputTag("offlinePrimaryVertices"),
0052 directory = cms.string("Muons/Isolation/global"),
0053 vtxBin = cms.int32(30),
0054 vtxMax = cms.double(149.5),
0055 vtxMin = cms.double(0.5)
0056 )
0057 muIsoDQM_seq = cms.Sequence(MuIsoDQM_trk+MuIsoDQM_sta+MuIsoDQM_glb)
0058
0059 MuIsoDQM_glb_Phase2=MuIsoDQM_glb.clone(
0060 vtxBin=20,
0061 vtxMin=149.5,
0062 vtxMax=249.5
0063 )
0064
0065 MuIsoDQM_trk_Phase2=MuIsoDQM_trk.clone(
0066 vtxBin=20,
0067 vtxMin=149.5,
0068 vtxMax=249.5
0069 )
0070
0071 MuIsoDQM_sta_Phase2=MuIsoDQM_sta.clone(
0072 vtxBin=20,
0073 vtxMin=149.5,
0074 vtxMax=249.5
0075 )
0076
0077 muIsoDQM_seq_Phase2 = cms.Sequence(MuIsoDQM_trk_Phase2+MuIsoDQM_sta_Phase2+MuIsoDQM_glb_Phase2)
0078
0079 MuIsoDQM_trk_miniAOD = DQMEDAnalyzer('MuonIsolationDQM',
0080 Global_Muon_Label = cms.untracked.InputTag("slimmedMuons"),
0081 requireTRKMuon = cms.untracked.bool(True),
0082 requireSTAMuon = cms.untracked.bool(False),
0083 requireGLBMuon = cms.untracked.bool(False),
0084 ecalIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","ecal"),
0085
0086 hcalIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","hcal"),
0087 tkIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositTk"),
0088 hoIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","ho"),
0089 vertexLabel = cms.untracked.InputTag("offlinePrimaryVertices"),
0090 directory = cms.string("Muons_miniAOD/Isolation/tracker"),
0091 vtxBin = cms.int32(30),
0092 vtxMax = cms.double(149.5),
0093 vtxMin = cms.double(0.5)
0094 )
0095
0096 MuIsoDQM_sta_miniAOD = DQMEDAnalyzer('MuonIsolationDQM',
0097 Global_Muon_Label = cms.untracked.InputTag("slimmedMuons"),
0098 requireTRKMuon = cms.untracked.bool(False),
0099 requireSTAMuon = cms.untracked.bool(True),
0100 requireGLBMuon = cms.untracked.bool(False),
0101 ecalIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","ecal"),
0102
0103 hcalIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","hcal"),
0104 tkIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositTk"),
0105 hoIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","ho"),
0106 vertexLabel = cms.untracked.InputTag("offlinePrimaryVertices"),
0107 directory = cms.string("Muons_miniAOD/Isolation/standalone"),
0108 vtxBin = cms.int32(30),
0109 vtxMax = cms.double(149.5),
0110 vtxMin = cms.double(0.5)
0111 )
0112
0113 MuIsoDQM_glb_miniAOD = DQMEDAnalyzer('MuonIsolationDQM',
0114 Global_Muon_Label = cms.untracked.InputTag("slimmedMuons"),
0115 requireTRKMuon = cms.untracked.bool(False),
0116 requireSTAMuon = cms.untracked.bool(False),
0117 requireGLBMuon = cms.untracked.bool(True),
0118 ecalIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","ecal"),
0119
0120 hcalIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","hcal"),
0121 tkIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositTk"),
0122 hoIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","ho"),
0123 vertexLabel = cms.untracked.InputTag("offlinePrimaryVertices"),
0124 directory = cms.string("Muons_miniAOD/Isolation/global"),
0125 vtxBin = cms.int32(30),
0126 vtxMax = cms.double(149.5),
0127 vtxMin = cms.double(0.5),
0128 )
0129 muIsoDQM_seq_miniAOD = cms.Sequence(MuIsoDQM_trk_miniAOD+MuIsoDQM_sta_miniAOD+MuIsoDQM_glb_miniAOD)
0130
0131 MuIsoDQM_glb_miniAOD_Phase2=MuIsoDQM_glb_miniAOD.clone(
0132 vtxBin=20,
0133 vtxMin=149.5,
0134 vtxMax=249.5
0135 )
0136
0137 MuIsoDQM_trk_miniAOD_Phase2=MuIsoDQM_trk_miniAOD.clone(
0138 vtxBin=20,
0139 vtxMin=149.5,
0140 vtxMax=249.5
0141 )
0142
0143 MuIsoDQM_sta_miniAOD_Phase2=MuIsoDQM_sta_miniAOD.clone(
0144 vtxBin=20,
0145 vtxMin=149.5,
0146 vtxMax=249.5
0147 )
0148
0149 muIsoDQM_seq_miniAOD_Phase2 = cms.Sequence(MuIsoDQM_trk_miniAOD_Phase2+MuIsoDQM_sta_miniAOD_Phase2+MuIsoDQM_glb_miniAOD_Phase2)
0150
0151 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
0152 phase2_muon.toReplaceWith(muIsoDQM_seq, muIsoDQM_seq_Phase2)
0153 phase2_muon.toReplaceWith(muIsoDQM_seq_miniAOD, muIsoDQM_seq_miniAOD_Phase2)