CMS 3D CMS Logo

B2GMonitoring_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from DQMOffline.Trigger.JetMonitor_cfi import hltJetMETmonitoring
4 from DQMOffline.Trigger.HTMonitor_cfi import hltHTmonitoring
5 from DQMOffline.Trigger.MjjMonitor_cfi import hltMjjmonitoring
6 from DQMOffline.Trigger.SoftdropMonitor_cfi import hltSoftdropmonitoring
7 from DQMOffline.Trigger.B2GTnPMonitor_cfi import B2GegmGsfElectronIDsForDQM,B2GegHLTDQMOfflineTnPSource
8 from DQMOffline.Trigger.TopMonitor_cfi import hltTOPmonitoring
9 
10 
20 
21 # HT and AK8jet monitoring
22 
23 PFHT1050_Mjjmonitoring = hltMjjmonitoring.clone(
24  FolderName = 'HLT/B2G/PFHT1050',
25  jets = "ak8PFJetsPuppi",
26  jetSelection = "pt > 200 && eta < 2.4",
27  numGenericTriggerEventPSet= dict(hltPaths = ["HLT_PFHT1050_v*"])
28 )
29 
30 PFHT1050_Softdropmonitoring = hltSoftdropmonitoring.clone(
31  FolderName = 'HLT/B2G/PFHT1050',
32  jetSelection = "pt > 200 && eta < 2.4",
33  numGenericTriggerEventPSet = dict(hltPaths = ["HLT_PFHT1050_v*"])
34 )
35 
36 AK8PFJet500_Mjjmonitoring = hltMjjmonitoring.clone(
37  FolderName = 'HLT/B2G/AK8PFJet500',
38  jets = "ak8PFJetsPuppi",
39  jetSelection = "pt > 200 && eta < 2.4",
40  numGenericTriggerEventPSet = dict(hltPaths = ["HLT_AK8PFJet500_v*"])
41 )
42 
43 AK8PFJet500_Softdropmonitoring = hltSoftdropmonitoring.clone(
44  FolderName = 'HLT/B2G/AK8PFJet500',
45  jetSelection = "pt > 200 && eta < 2.4",
46  numGenericTriggerEventPSet= dict(hltPaths = ["HLT_AK8PFJet500_v*"]),
47  histoPSet = dict(
48  htBinning = [0., 10., 20., 30., 40., 50., 60., 70., 80., 90., 100., 110., 120., 130., 140., 150., 160., 170., 180., 190., 200., 210., 220., 230., 240., 250., 260., 270., 280., 290., 300., 310., 320., 330., 340., 350.],
49  htPSet = dict(nbins = 200, xmin = -0.5, xmax = 19999.5)
50  )
51 )
52 
53 # AK8PFHT800_TrimMass50 monitoring
54 
55 AK8PFHT800_TrimMass50_HTmonitoring = hltHTmonitoring.clone(
56  FolderName = 'HLT/B2G/AK8PFHT800_TrimMass50',
57  jets = "ak8PFJetsPuppi",
58  jetSelection = "pt > 200 && eta < 2.4",
59  jetSelection_HT = "pt > 200 && eta < 2.4",
60  numGenericTriggerEventPSet = dict(hltPaths = ["HLT_AK8PFHT800_TrimMass50_v*"])
61 )
62 
63 AK8PFHT800_TrimMass50_Mjjmonitoring = hltMjjmonitoring.clone(
64  FolderName = 'HLT/B2G/AK8PFHT800_TrimMass50',
65  jets = "ak8PFJetsPuppi",
66  jetSelection = "pt > 200 && eta < 2.4",
67  numGenericTriggerEventPSet= dict(hltPaths = ["HLT_AK8PFHT800_TrimMass50_v*"])
68 )
69 
70 AK8PFHT800_TrimMass50_Softdropmonitoring = hltSoftdropmonitoring.clone(
71  FolderName = 'HLT/B2G/AK8PFHT800_TrimMass50',
72  jetSelection = "pt > 200 && eta < 2.4",
73  numGenericTriggerEventPSet = dict(hltPaths = ["HLT_AK8PFHT800_TrimMass50_v*"]),
74  histoPSet = dict(
75  htBinning = [0., 10., 20., 30., 40., 50., 60., 70., 80., 90., 100., 110., 120., 130., 140., 150., 160., 170., 180., 190., 200., 210., 220., 230., 240., 250., 260., 270., 280., 290., 300., 310., 320., 330., 340., 350.],
76  htPSet = dict(nbins = 200, xmin = -0.5, xmax = 19999.5)
77  )
78 )
79 
80 # AK8PFJet400_TrimMass30 monitoring
81 
82 AK8PFJet400_TrimMass30_PromptMonitoring = hltJetMETmonitoring.clone(
83  FolderName = 'HLT/B2G/AK8PFJet400_TrimMass30',
84  ptcut = 200,
85  numGenericTriggerEventPSet = dict(hltPaths = ["HLT_AK8PFJet400_TrimMass30_v*"])
86 )
87 
88 AK8PFJet400_TrimMass30_Mjjmonitoring = hltMjjmonitoring.clone(
89  FolderName = 'HLT/B2G/AK8PFJet400_TrimMass30',
90  jets = "ak8PFJetsPuppi",
91  jetSelection = "pt > 200 && eta < 2.4",
92  numGenericTriggerEventPSet= dict(hltPaths = ["HLT_AK8PFJet400_TrimMass30_v*"])
93 )
94 
95 AK8PFJet400_TrimMass30_Softdropmonitoring = hltSoftdropmonitoring.clone(
96  FolderName = 'HLT/B2G/AK8PFJet400_TrimMass30',
97  jetSelection = "pt > 200 && eta < 2.4",
98  numGenericTriggerEventPSet = dict(hltPaths = ["HLT_AK8PFJet400_TrimMass30_v*"]),
99  histoPSet = dict(
100  htBinning = [0., 10., 20., 30., 40., 50., 60., 70., 80., 90., 100., 110., 120., 130., 140., 150., 160., 170., 180., 190., 200., 210., 220., 230., 240., 250., 260., 270., 280., 290., 300., 310., 320., 330., 340., 350.],
101  htPSet = dict(nbins = 200, xmin = -0.5, xmax = 19999.5)
102  )
103 )
104 
105 # AK8PFJet400_MassSD30 monitoring
106 
107 AK8PFJet400_MassSD30_PromptMonitoring = hltJetMETmonitoring.clone(
108  FolderName = 'HLT/B2G/AK8PFJet400_MassSD30',
109  ptcut = 200,
110  numGenericTriggerEventPSet = dict(hltPaths = ["HLT_AK8PFJet400_MassSD30_v*"])
111 )
112 
113 AK8PFJet400_MassSD30_Mjjmonitoring = hltMjjmonitoring.clone(
114  FolderName = 'HLT/B2G/AK8PFJet400_MassSD30',
115  jets = "ak8PFJetsPuppi",
116  jetSelection = "pt > 200 && eta < 2.4",
117  numGenericTriggerEventPSet= dict(hltPaths = ["HLT_AK8PFJet400_MassSD30_v*"])
118 )
119 
120 AK8PFJet400_MassSD30_Softdropmonitoring = hltSoftdropmonitoring.clone(
121  FolderName = 'HLT/B2G/AK8PFJet400_MassSD30',
122  jetSelection = "pt > 200 && eta < 2.4",
123  numGenericTriggerEventPSet = dict(hltPaths = ["HLT_AK8PFJet400_MassSD30_v*"]),
124  histoPSet = dict(
125  htBinning = [0., 10., 20., 30., 40., 50., 60., 70., 80., 90., 100., 110., 120., 130., 140., 150., 160., 170., 180., 190., 200., 210., 220., 230., 240., 250., 260., 270., 280., 290., 300., 310., 320., 330., 340., 350.],
126  htPSet = dict(nbins = 200, xmin = -0.5, xmax = 19999.5)
127  )
128 )
129 
130 # AK8DiPFJet250_250_MassSD30 monitoring
131 
132 AK8DiPFJet250_250_MassSD30_PromptMonitoring = hltJetMETmonitoring.clone(
133  FolderName = 'HLT/B2G/AK8DiPFJet250_250_MassSD30',
134  ptcut = 200,
135  numGenericTriggerEventPSet = dict(hltPaths = ["HLT_AK8DiPFJet250_250_MassSD30_v*"])
136 )
137 
138 AK8DiPFJet250_250_MassSD30_Mjjmonitoring = hltMjjmonitoring.clone(
139  FolderName = 'HLT/B2G/AK8DiPFJet250_250_MassSD30',
140  jets = "ak8PFJetsPuppi",
141  jetSelection = "pt > 200 && eta < 2.4",
142  numGenericTriggerEventPSet= dict(hltPaths = ["HLT_AK8DiPFJet250_250_MassSD30_v*"])
143 )
144 
145 AK8DiPFJet250_250_MassSD30_Softdropmonitoring = hltSoftdropmonitoring.clone(
146  FolderName = 'HLT/B2G/AK8DiPFJet250_250_MassSD30',
147  jetSelection = "pt > 200 && eta < 2.4",
148  numGenericTriggerEventPSet = dict(hltPaths = ["HLT_AK8DiPFJet250_250_MassSD30_v*"]),
149  histoPSet = dict(
150  htBinning = [0., 10., 20., 30., 40., 50., 60., 70., 80., 90., 100., 110., 120., 130., 140., 150., 160., 170., 180., 190., 200., 210., 220., 230., 240., 250., 260., 270., 280., 290., 300., 310., 320., 330., 340., 350.],
151  htPSet = dict(nbins = 200, xmin = -0.5, xmax = 19999.5)
152  )
153 )
154 
155 # Lepton cross trigger monitoring
156 
157 hltDQMonitorB2G_MuEle = hltTOPmonitoring.clone(
158  FolderName = 'HLT/B2G/Dileptonic/HLT_MuXX_EleXX_CaloIdL_MW',
159  nelectrons = 1,
160  eleSelection = 'pt>20 & abs(eta)<2.4',
161  nmuons = 1,
162  muoSelection = 'pt>20 & abs(eta)<2.4 & ((pfIsolationR04.sumChargedHadronPt + max(pfIsolationR04.sumNeutralHadronEt + pfIsolationR04.sumPhotonEt - (pfIsolationR04.sumPUPt)/2.,0.))/pt < 0.25) & isPFMuon & (isTrackerMuon || isGlobalMuon)',
163  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu37_Ele27_CaloIdL_MW_v*', 'HLT_Mu27_Ele37_CaloIdL_MW_v*'])
164 )
165 
166 hltDQMonitorB2G_MuTkMu = hltTOPmonitoring.clone(
167  FolderName = 'HLT/B2G/Dileptonic/HLT_Mu37_TkMu27',
168  nmuons = 2,
169  muoSelection = 'pt>20 & abs(eta)<2.4 & ((pfIsolationR04.sumChargedHadronPt + max(pfIsolationR04.sumNeutralHadronEt + pfIsolationR04.sumPhotonEt - (pfIsolationR04.sumPUPt)/2.,0.))/pt < 0.25) & isPFMuon & (isTrackerMuon || isGlobalMuon)',
170  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu37_TkMu27_v*'])
171 )
172 
173 
174 # the sequence
175 
176 b2gMonitorHLT = cms.Sequence(
177 
178  PFHT1050_Mjjmonitoring +
179 
180  AK8PFJet500_Mjjmonitoring +
181 
182  AK8PFHT800_TrimMass50_HTmonitoring +
183  AK8PFHT800_TrimMass50_Mjjmonitoring +
184 
185  AK8PFJet400_TrimMass30_PromptMonitoring +
186  AK8PFJet400_TrimMass30_Mjjmonitoring +
187 
188  AK8PFJet400_MassSD30_PromptMonitoring +
189  AK8PFJet400_MassSD30_Mjjmonitoring +
190 
191  AK8DiPFJet250_250_MassSD30_PromptMonitoring +
192  AK8DiPFJet250_250_MassSD30_Mjjmonitoring +
193 
194  B2GegHLTDQMOfflineTnPSource
195 
196  * hltDQMonitorB2G_MuEle
197  * hltDQMonitorB2G_MuTkMu
198 
199  , cms.Task(B2GegmGsfElectronIDsForDQM)
200 )
201 
202 
206 b2gHLTDQMSourceWithRECO = cms.Sequence(
207  PFHT1050_Softdropmonitoring +
208  AK8PFJet500_Softdropmonitoring +
209  AK8PFHT800_TrimMass50_Softdropmonitoring +
210  AK8PFJet400_TrimMass30_Softdropmonitoring +
211  AK8PFJet400_MassSD30_Softdropmonitoring +
212  AK8DiPFJet250_250_MassSD30_Softdropmonitoring
213 )
214 
215 b2gHLTDQMSourceExtra = cms.Sequence(
216 )