CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
muonIsolationDQM_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
5 
6 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
7 MuIsoDQM_trk = DQMEDAnalyzer('MuonIsolationDQM',
8  Global_Muon_Label = cms.untracked.InputTag("muons"),
9  requireTRKMuon = cms.untracked.bool(True),
10  requireSTAMuon = cms.untracked.bool(False),
11  requireGLBMuon = cms.untracked.bool(False),
12  ecalIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","ecal"),
13  # rootfilename = cms.untracked.string('ttbar-DQMidation.root'),
14  hcalIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","hcal"),
15  tkIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositTk"),
16  hoIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","ho"),
17  vertexLabel = cms.untracked.InputTag("offlinePrimaryVertices"),
18  directory = cms.string("Muons/Isolation/tracker"),
19  vtxBin = cms.int32(30),
20  vtxMax = cms.double(149.5),
21  vtxMin = cms.double(0.5)
22  )
23 
24 MuIsoDQM_sta = DQMEDAnalyzer('MuonIsolationDQM',
25  Global_Muon_Label = cms.untracked.InputTag("muons"),
26  requireTRKMuon = cms.untracked.bool(False),
27  requireSTAMuon = cms.untracked.bool(True),
28  requireGLBMuon = cms.untracked.bool(False),
29  ecalIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","ecal"),
30  # rootfilename = cms.untracked.string('ttbar-DQMidation.root'),
31  hcalIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","hcal"),
32  tkIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositTk"),
33  hoIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","ho"),
34  vertexLabel = cms.untracked.InputTag("offlinePrimaryVertices"),
35  directory = cms.string("Muons/Isolation/standalone"),
36  vtxBin = cms.int32(30),
37  vtxMax = cms.double(149.5),
38  vtxMin = cms.double(0.5)
39  )
40 
41 MuIsoDQM_glb = DQMEDAnalyzer('MuonIsolationDQM',
42  Global_Muon_Label = cms.untracked.InputTag("muons"),
43  requireTRKMuon = cms.untracked.bool(False),
44  requireSTAMuon = cms.untracked.bool(False),
45  requireGLBMuon = cms.untracked.bool(True),
46  ecalIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","ecal"),
47  # rootfilename = cms.untracked.string('ttbar-DQMidation.root'),
48  hcalIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","hcal"),
49  tkIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositTk"),
50  hoIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","ho"),
51  vertexLabel = cms.untracked.InputTag("offlinePrimaryVertices"),
52  directory = cms.string("Muons/Isolation/global"),
53  vtxBin = cms.int32(30),
54  vtxMax = cms.double(149.5),
55  vtxMin = cms.double(0.5)
56  )
57 muIsoDQM_seq = cms.Sequence(MuIsoDQM_trk+MuIsoDQM_sta+MuIsoDQM_glb)
58 
59 MuIsoDQM_glb_Phase2=MuIsoDQM_glb.clone(
60  vtxBin=20,
61  vtxMin=149.5,
62  vtxMax=249.5
63 )
64 
65 MuIsoDQM_trk_Phase2=MuIsoDQM_trk.clone(
66  vtxBin=20,
67  vtxMin=149.5,
68  vtxMax=249.5
69 )
70 
71 MuIsoDQM_sta_Phase2=MuIsoDQM_sta.clone(
72  vtxBin=20,
73  vtxMin=149.5,
74  vtxMax=249.5
75 )
76 
77 muIsoDQM_seq_Phase2 = cms.Sequence(MuIsoDQM_trk_Phase2+MuIsoDQM_sta_Phase2+MuIsoDQM_glb_Phase2)
78 
79 MuIsoDQM_trk_miniAOD = DQMEDAnalyzer('MuonIsolationDQM',
80  Global_Muon_Label = cms.untracked.InputTag("slimmedMuons"),
81  requireTRKMuon = cms.untracked.bool(True),
82  requireSTAMuon = cms.untracked.bool(False),
83  requireGLBMuon = cms.untracked.bool(False),
84  ecalIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","ecal"),
85  # rootfilename = cms.untracked.string('ttbar-DQMidation.root'),
86  hcalIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","hcal"),
87  tkIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositTk"),
88  hoIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","ho"),
89  vertexLabel = cms.untracked.InputTag("offlinePrimaryVertices"),
90  directory = cms.string("Muons_miniAOD/Isolation/tracker"),
91  vtxBin = cms.int32(30),
92  vtxMax = cms.double(149.5),
93  vtxMin = cms.double(0.5)
94  )
95 
96 MuIsoDQM_sta_miniAOD = DQMEDAnalyzer('MuonIsolationDQM',
97  Global_Muon_Label = cms.untracked.InputTag("slimmedMuons"),
98  requireTRKMuon = cms.untracked.bool(False),
99  requireSTAMuon = cms.untracked.bool(True),
100  requireGLBMuon = cms.untracked.bool(False),
101  ecalIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","ecal"),
102  # rootfilename = cms.untracked.string('ttbar-DQMidation.root'),
103  hcalIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","hcal"),
104  tkIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositTk"),
105  hoIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","ho"),
106  vertexLabel = cms.untracked.InputTag("offlinePrimaryVertices"),
107  directory = cms.string("Muons_miniAOD/Isolation/standalone"),
108  vtxBin = cms.int32(30),
109  vtxMax = cms.double(149.5),
110  vtxMin = cms.double(0.5)
111  )
112 
113 MuIsoDQM_glb_miniAOD = DQMEDAnalyzer('MuonIsolationDQM',
114  Global_Muon_Label = cms.untracked.InputTag("slimmedMuons"),
115  requireTRKMuon = cms.untracked.bool(False),
116  requireSTAMuon = cms.untracked.bool(False),
117  requireGLBMuon = cms.untracked.bool(True),
118  ecalIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","ecal"),
119  # rootfilename = cms.untracked.string('ttbar-DQMidation.root'),
120  hcalIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","hcal"),
121  tkIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositTk"),
122  hoIsoDeposit_Label = cms.untracked.InputTag("muIsoDepositCalByAssociatorTowers","ho"),
123  vertexLabel = cms.untracked.InputTag("offlinePrimaryVertices"),
124  directory = cms.string("Muons_miniAOD/Isolation/global"),
125  vtxBin = cms.int32(30),
126  vtxMax = cms.double(149.5),
127  vtxMin = cms.double(0.5),
128  )
129 muIsoDQM_seq_miniAOD = cms.Sequence(MuIsoDQM_trk_miniAOD+MuIsoDQM_sta_miniAOD+MuIsoDQM_glb_miniAOD)
130 
131 MuIsoDQM_glb_miniAOD_Phase2=MuIsoDQM_glb_miniAOD.clone(
132  vtxBin=20,
133  vtxMin=149.5,
134  vtxMax=249.5
135 )
136 
137 MuIsoDQM_trk_miniAOD_Phase2=MuIsoDQM_trk_miniAOD.clone(
138  vtxBin=20,
139  vtxMin=149.5,
140  vtxMax=249.5
141 )
142 
143 MuIsoDQM_sta_miniAOD_Phase2=MuIsoDQM_sta_miniAOD.clone(
144  vtxBin=20,
145  vtxMin=149.5,
146  vtxMax=249.5
147 )
148 
149 muIsoDQM_seq_miniAOD_Phase2 = cms.Sequence(MuIsoDQM_trk_miniAOD_Phase2+MuIsoDQM_sta_miniAOD_Phase2+MuIsoDQM_glb_miniAOD_Phase2)
150 
151 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
152 phase2_muon.toReplaceWith(muIsoDQM_seq, muIsoDQM_seq_Phase2)
153 phase2_muon.toReplaceWith(muIsoDQM_seq_miniAOD, muIsoDQM_seq_miniAOD_Phase2)