CMS 3D CMS Logo

TopMonitoring_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from DQMOffline.Trigger.TopMonitor_cfi import hltTOPmonitoring
4 
5 from Configuration.Eras.Modifier_run2_HLTconditions_2018_cff import run2_HLTconditions_2018
6 from Configuration.Eras.Modifier_run2_HLTconditions_2017_cff import run2_HLTconditions_2017
7 from Configuration.Eras.Modifier_run2_HLTconditions_2016_cff import run2_HLTconditions_2016
8 
9 
12 
13 topEleJet_jet = hltTOPmonitoring.clone(
14  FolderName = 'HLT/TOP/EleJet/JetMonitor',
15  nmuons = 0,
16  nelectrons = 1,
17  njets = 1,
18  eleSelection = 'pt>50 & abs(eta)<2.1',
19  jetSelection = 'pt>30 & abs(eta)<2.4',
20  histoPSet = dict(eleEtaBinning = [-2.1,-1.5,-0.9,-0.6,-0.3,-0.1,0,0.1,0.3,0.6,0.9,1.5,2.1],
21  eleEtaBinning2D = [-2.1,-1.5,-0.6,0,0.6,1.5,2.1],
22  elePtBinning = [0,50,60,80,120,200,400],
23  elePtBinning2D = [0,50,70,120,200,400],
24  jetPtBinning = [0,30,35,37.5,40,50,60,80,120,200,400],
25  jetPtBinning2D = [0,30,35,40,50,60,80,100,200,400]),
26  numGenericTriggerEventPSet= dict(hltPaths = ['HLT_Ele30_eta2p1_WPTight_Gsf_CentralPFJet35_EleCleaned_v*']),
27  denGenericTriggerEventPSet = dict(hltPaths = ['HLT_Ele35_WPTight_Gsf_v*',
28  'HLT_Ele38_WPTight_Gsf_v*',
29  'HLT_Ele40_WPTight_Gsf_v*',])
30 )
31 
32 
33 topEleJet_ele = hltTOPmonitoring.clone(
34  FolderName = 'HLT/TOP/EleJet/ElectronMonitor',
35  nmuons = 0,
36  nelectrons = 1,
37  njets = 1,
38  eleSelection = 'pt>25 & abs(eta)<2.1',
39  jetSelection = 'pt>50 & abs(eta)<2.4',
40  histoPSet = dict(eleEtaBinning = [-2.1,-1.5,-0.9,-0.6,-0.3,-0.1,0,0.1,0.3,0.6,0.9,1.5,2.1],
41  eleEtaBinning2D = [-2.1,-1.5,-0.6,0,0.6,1.5,2.1],
42  elePtBinning = [0,25,30,32.5,35,40,45,50,60,80,120,200,400],
43  elePtBinning2D = [0,25,30,40,50,60,80,100,200,400],
44  jetPtBinning = [0,50,60,80,120,200,400],
45  jetPtBinning2D = [0,50,60,80,100,200,400]),
46  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Ele30_eta2p1_WPTight_Gsf_CentralPFJet35_EleCleaned_v*']),
47  denGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFJet60_v*',
48  'HLT_PFJet80_v*',
49  'HLT_PFJet140_v*',
50  'HLT_PFJet200_v*',
51  'HLT_PFJet260_v*',
52  'HLT_PFJet320_v*',
53  'HLT_PFJet400_v*',
54  'HLT_PFJet450_v*',
55  'HLT_PFJet500_v*',
56  'HLT_PFJet550_v*'])
57 )
58 
59 topEleJet_all = hltTOPmonitoring.clone(
60  FolderName = 'HLT/TOP/EleJet/GlobalMonitor',
61  nmuons = 0,
62  nelectrons = 1,
63  njets = 1,
64  eleSelection = 'pt>25 & abs(eta)<2.1',
65  jetSelection = 'pt>30 & abs(eta)<2.4',
66  histoPSet = dict(eleEtaBinning = [-2.1,-1.5,-0.9,-0.6,-0.3,-0.1,0,0.1,0.3,0.6,0.9,1.5,2.1],
67  eleEtaBinning2D = [-2.1,-1.5,-0.6,0,0.6,1.5,2.1],
68  elePtBinning = [0,25,30,32.5,35,40,45,50,60,80,120,200,400],
69  elePtBinning2D = [0,25,30,40,50,60,80,100,200,400],
70  jetPtBinning = [0,30,35,37.5,40,50,60,80,120,200,400],
71  jetPtBinning2D = [0,30,35,40,50,60,80,100,200,400]),
72  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Ele30_eta2p1_WPTight_Gsf_CentralPFJet35_EleCleaned_v*']),
73  #denGenericTriggerEventPSet = dict(hltPaths = ['HLT_IsoMu24_v*'])
74 )
75 
78 
79 topEleHT_ht = hltTOPmonitoring.clone(
80  FolderName = 'HLT/TOP/EleHT/HTMonitor',
81  nmuons = 0,
82  nelectrons = 1,
83  njets = 2,
84  eleSelection = 'pt>50 & abs(eta)<2.1',
85  jetSelection = 'pt>30 & abs(eta)<2.4',
86  HTcut = 100,
87  histoPSet = dict(eleEtaBinning = [-2.1,-1.5,-0.9,-0.6,-0.3,-0.1,0,0.1,0.3,0.6,0.9,1.5,2.1],
88  eleEtaBinning2D = [-2.1,-1.5,-0.6,0,0.6,1.5,2.1],
89  elePtBinning = [0,50,60,80,120,200,400],
90  elePtBinning2D = [0,50,70,120,200,400],
91  jetPtBinning = [0,30,40,50,60,80,120,200,400],
92  jetPtBinning2D = [0,30,40,60,80,100,200,400],
93  HTBinning = [0,100,120,140,150,160,175,200,300,400,500,700],
94  HTBinning2D = [0,100,125,150,175,200,400,700]),
95  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Ele28_eta2p1_WPTight_Gsf_HT150_v*']),
96  denGenericTriggerEventPSet = dict(hltPaths = ['HLT_Ele35_WPTight_Gsf_v*',
97  'HLT_Ele38_WPTight_Gsf_v*',
98  'HLT_Ele40_WPTight_Gsf_v*'])
99 )
100 
101 
102 topEleHT_ele = hltTOPmonitoring.clone(
103  FolderName = 'HLT/TOP/EleHT/ElectronMonitor',
104  nmuons = 0,
105  nelectrons = 1,
106  njets = 2,
107  eleSelection = 'pt>25 & abs(eta)<2.1',
108  jetSelection = 'pt>30 & abs(eta)<2.4',
109  HTcut = 200,
110  histoPSet = dict(eleEtaBinning = [-2.1,-1.5,-0.9,-0.6,-0.3,-0.1,0,0.1,0.3,0.6,0.9,1.5,2.1],
111  eleEtaBinning2D = [-2.1,-1.5,-0.6,0,0.6,1.5,2.1],
112  elePtBinning = [0,25,30,32.5,35,40,45,50,60,80,120,200,400],
113  elePtBinning2D = [0,25,30,40,50,60,80,100,200,400],
114  jetPtBinning = [0,30,40,50,60,80,120,200,400],
115  jetPtBinning2D = [0,30,40,60,80,100,200,400],
116  HTBinning = [0,200,250,300,350,400,500,700],
117  HTBinning2D = [0,200,250,300,400,500,700]),
118  numGenericTriggerEventPSet =dict(hltPaths = ['HLT_Ele28_eta2p1_WPTight_Gsf_HT150_v*']),
119  denGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT250_v*',
120  'HLT_PFHT370_v*',
121  'HLT_PFHT430_v*',
122  'HLT_PFHT510_v*',
123  'HLT_PFHT590_v*',
124  'HLT_PFHT680_v*',
125  'HLT_PFHT780_v*',
126  'HLT_PFHT890_v*'])
127 )
128 
129 
130 topEleHT_all = hltTOPmonitoring.clone(
131  FolderName = 'HLT/TOP/EleHT/GlobalMonitor',
132  nmuons = 0,
133  nelectrons = 1,
134  njets = 2,
135  eleSelection = 'pt>25 & abs(eta)<2.1',
136  jetSelection = 'pt>30 & abs(eta)<2.4',
137  HTcut = 100,
138  histoPSet = dict(eleEtaBinning = [-2.1,-1.5,-0.9,-0.6,-0.3,-0.1,0,0.1,0.3,0.6,0.9,1.5,2.1],
139  eleEtaBinning2D = [-2.1,-1.5,-0.6,0,0.6,1.5,2.1],
140  elePtBinning = [0,25,30,32.5,35,40,45,50,60,80,120,200,400],
141  elePtBinning2D = [0,25,30,40,50,60,80,100,200,400],
142  jetPtBinning = [0,30,40,50,60,80,120,200,400],
143  jetPtBinning2D = [0,30,40,60,80,100,200,400],
144  HTBinning = [0,100,120,140,150,160,175,200,300,400,500,700],
145  HTBinning2D = [0,100,125,150.175,200,400,700]),
146  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Ele28_eta2p1_WPTight_Gsf_HT150_v*'])
147  #denGenericTriggerEventPSet = dict(hltPaths = ['HLT_IsoMu24_v*'])
148 )
149 
152 
153 topSingleMuonHLTMonitor_Mu24 = hltTOPmonitoring.clone(
154  FolderName = 'HLT/TOP/SingleLepton/SingleMuon/Mu24/',
155  nmuons = 1,
156  nelectrons = 0,
157  njets = 0,
158  eleSelection = 'pt>30 & abs(eta)<2.4',
159  muoSelection = 'pt>26 & abs(eta)<2.1 & isPFMuon & isGlobalMuon & isTrackerMuon & numberOfMatches>1 & innerTrack.hitPattern.trackerLayersWithMeasurement>5 & innerTrack.hitPattern.numberOfValidPixelHits>0 & globalTrack.hitPattern.numberOfValidMuonHits>0 & globalTrack.normalizedChi2<10 & (pfIsolationR04.sumChargedHadronPt + max(pfIsolationR04.sumNeutralHadronEt + pfIsolationR04.sumPhotonEt - (pfIsolationR04.sumPUPt)/2.,0.) )/pt<0.15',
160  jetSelection = 'pt>20 & abs(eta)<2.4',
161  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_IsoMu24_eta2p1_v*', 'HLT_IsoMu24_v*'])
162 )
163 
164 
165 topSingleMuonHLTMonitor_Mu27 = hltTOPmonitoring.clone(
166  FolderName = 'HLT/TOP/SingleLepton/SingleMuon/Mu27/',
167  nmuons = 1,
168  nelectrons = 0,
169  njets = 0,
170  eleSelection = 'pt>30 & abs(eta)<2.4',
171  muoSelection = 'pt>26 & abs(eta)<2.1 & isPFMuon & isGlobalMuon & isTrackerMuon & numberOfMatches>1 & innerTrack.hitPattern.trackerLayersWithMeasurement>5 & innerTrack.hitPattern.numberOfValidPixelHits>0 & globalTrack.hitPattern.numberOfValidMuonHits>0 & globalTrack.normalizedChi2<10 & (pfIsolationR04.sumChargedHadronPt + max(pfIsolationR04.sumNeutralHadronEt + pfIsolationR04.sumPhotonEt - (pfIsolationR04.sumPUPt)/2.,0.) )/pt<0.15',
172  jetSelection = 'pt>20 & abs(eta)<2.4',
173  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_IsoMu27_v*'])
174 )
175 
176 
177 topSingleMuonHLTMonitor_Mu50 = hltTOPmonitoring.clone(
178  FolderName = 'HLT/TOP/SingleLepton/SingleMuon/Mu50/',
179  nmuons = 1,
180  nelectrons = 0,
181  njets = 0,
182  eleSelection = 'pt>30 & abs(eta)<2.4',
183  muoSelection = 'pt>26 & abs(eta)<2.1 & isPFMuon & isGlobalMuon & isTrackerMuon & numberOfMatches>1 & innerTrack.hitPattern.trackerLayersWithMeasurement>5 & innerTrack.hitPattern.numberOfValidPixelHits>0 & globalTrack.hitPattern.numberOfValidMuonHits>0 & globalTrack.normalizedChi2<10 & (pfIsolationR04.sumChargedHadronPt + max(pfIsolationR04.sumNeutralHadronEt + pfIsolationR04.sumPhotonEt - (pfIsolationR04.sumPUPt)/2.,0.) )/pt<0.15',
184  jetSelection = 'pt>20 & abs(eta)<2.4',
185  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu50_v*'])
186 )
187 
190 
191 topDiElectronHLTMonitor = hltTOPmonitoring.clone(
192  FolderName = 'HLT/TOP/DiLepton/DiElectron/Ele23Ele12/',
193  nmuons = 0,
194  nelectrons = 2,
195  njets = 0,
196  eleSelection = 'pt>15 & abs(eta)<2.4',
197  muoSelection = 'pt>15 & abs(eta)<2.4 & (pfIsolationR04.sumChargedHadronPt + max(pfIsolationR04.sumNeutralHadronEt + pfIsolationR04.sumPhotonEt - (pfIsolationR04.sumPUPt)/2.,0.))/pt < 0.25 & isPFMuon & (isTrackerMuon || isGlobalMuon)',
198  jetSelection = 'pt>30 & abs(eta)<2.4',
199  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Ele23_Ele12_CaloIdL_TrackIdL_IsoVL_DZ_v*'])
200 )
201 
202 
203 topDiElectronHLTMonitor_Dz = topDiElectronHLTMonitor.clone(
204  FolderName = 'HLT/TOP/DiLepton/DiElectron/Ele23Ele12_DzEfficiency/',
205  denGenericTriggerEventPSet = dict(hltPaths = ['HLT_Ele23_Ele12_CaloIdL_TrackIdL_IsoVL_v*'])
206 )
207 
210 
211 topDiMuonHLTMonitor_noDz = hltTOPmonitoring.clone(
212  FolderName = 'HLT/TOP/DiLepton/DiMuon/Mu17_Mu8/',
213  nmuons = 2,
214  nelectrons = 0,
215  njets = 0,
216  eleSelection = 'pt>15 & abs(eta)<2.4',
217  muoSelection = 'pt>15 & abs(eta)<2.4 & (pfIsolationR04.sumChargedHadronPt + max(pfIsolationR04.sumNeutralHadronEt + pfIsolationR04.sumPhotonEt - (pfIsolationR04.sumPUPt)/2.,0.))/pt < 0.25 & isPFMuon & (isTrackerMuon || isGlobalMuon)',
218  jetSelection = 'pt>30 & abs(eta)<2.4',
219  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_v*'])
220 )
221 
222 
223 topDiMuonHLTMonitor_Dz = hltTOPmonitoring.clone(
224  FolderName = 'HLT/TOP/DiLepton/DiMuon/Mu17_Mu8_Dz/',
225  nmuons = 2,
226  nelectrons = 0,
227  njets = 0,
228  eleSelection = 'pt>15 & abs(eta)<2.4',
229  muoSelection = 'pt>15 & abs(eta)<2.4 & (pfIsolationR04.sumChargedHadronPt + max(pfIsolationR04.sumNeutralHadronEt + pfIsolationR04.sumPhotonEt - (pfIsolationR04.sumPUPt)/2.,0.))/pt < 0.25 & isPFMuon & (isTrackerMuon || isGlobalMuon)',
230  jetSelection = 'pt>30 & abs(eta)<2.4',
231  numGenericTriggerEventPSet =dict(hltPaths = ['HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_v*'])
232 )
233 
234 
235 topDiMuonHLTMonitor_Dz_Mu17_Mu8 = topDiMuonHLTMonitor_Dz.clone(
236  FolderName = 'HLT/TOP/DiLepton/DiMuon/Mu17_Mu8_DzEfficiency/',
237  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_v*']),
238  denGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_v*'])
239 )
240 
241 
242 topDiMuonHLTMonitor_Mass8 = hltTOPmonitoring.clone(
243  FolderName = 'HLT/TOP/DiLepton/DiMuon/Mass8/',
244  nmuons = 2,
245  nelectrons = 0,
246  njets = 0,
247  eleSelection = 'pt>15 & abs(eta)<2.4',
248  muoSelection = 'pt>15 & abs(eta)<2.4 & (pfIsolationR04.sumChargedHadronPt + max(pfIsolationR04.sumNeutralHadronEt + pfIsolationR04.sumPhotonEt - (pfIsolationR04.sumPUPt)/2.,0.))/pt < 0.25 & isPFMuon & (isTrackerMuon || isGlobalMuon)',
249  jetSelection = 'pt>30 & abs(eta)<2.4',
250  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_Mass8_v*'])
251 )
252 
253 
254 topDiMuonHLTMonitor_Mass3p8 = hltTOPmonitoring.clone(
255  FolderName = 'HLT/TOP/DiLepton/DiMuon/Mass3p8/',
256  nmuons = 2,
257  nelectrons = 0,
258  njets = 0,
259  eleSelection = 'pt>15 & abs(eta)<2.4',
260  muoSelection = 'pt>15 & abs(eta)<2.4 & (pfIsolationR04.sumChargedHadronPt + max(pfIsolationR04.sumNeutralHadronEt + pfIsolationR04.sumPhotonEt - (pfIsolationR04.sumPUPt)/2.,0.))/pt < 0.25 & isPFMuon & (isTrackerMuon || isGlobalMuon)',
261  jetSelection = 'pt>30 & abs(eta)<2.4',
262  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_Mass3p8_v*'])
263 )
264 
265 
266 topDiMuonHLTMonitor_Mass8Mon = hltTOPmonitoring.clone(
267  #FolderName = 'HLT/TopHLTOffline/TopMonitor/DiLepton/DiMuon/Mu17_Mu8_Mass8Efficiency/',
268  FolderName = 'HLT/TOP/DiLepton/DiMuon/Mu17_Mu8_Mass8Efficiency/',
269  nmuons = 2,
270  nelectrons = 0,
271  njets = 0,
272  eleSelection = 'pt>15 & abs(eta)<2.4',
273  muoSelection = 'pt>15 & abs(eta)<2.4 & (pfIsolationR04.sumChargedHadronPt + max(pfIsolationR04.sumNeutralHadronEt + pfIsolationR04.sumPhotonEt - (pfIsolationR04.sumPUPt)/2.,0.))/pt < 0.25 & isPFMuon & (isTrackerMuon || isGlobalMuon)',
274  jetSelection = 'pt>30 & abs(eta)<2.4',
275  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_Mass8_v*']),
276  denGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_v*'])
277 )
278 
279 
280 topDiMuonHLTMonitor_Mass3p8Mon = hltTOPmonitoring.clone(
281  #FolderName = 'HLT/TopHLTOffline/TopMonitor/DiLepton/DiMuon/Mu17_Mu8_Mass3p8Efficiency/',
282  FolderName = 'HLT/TOP/DiLepton/DiMuon/Mu17_Mu8_Mass3p8Efficiency/',
283  nmuons = 2,
284  nelectrons = 0,
285  njets = 0,
286  eleSelection = 'pt>15 & abs(eta)<2.4',
287  muoSelection = 'pt>15 & abs(eta)<2.4 & (pfIsolationR04.sumChargedHadronPt + max(pfIsolationR04.sumNeutralHadronEt + pfIsolationR04.sumPhotonEt - (pfIsolationR04.sumPUPt)/2.,0.))/pt < 0.25 & isPFMuon & (isTrackerMuon || isGlobalMuon)',
288  jetSelection = 'pt>30 & abs(eta)<2.4',
289  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_Mass3p8_v*']),
290  denGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_v*'])
291 )
292 
295 
296 topElecMuonHLTMonitor = hltTOPmonitoring.clone(
297  FolderName = 'HLT/TOP/DiLepton/ElecMuon/OR/',
298  nmuons = 1,
299  nelectrons = 1,
300  njets = 0,
301  eleSelection = 'pt>15 & abs(eta)<2.4',
302  muoSelection = 'pt>15 & abs(eta)<2.4 & (pfIsolationR04.sumChargedHadronPt + max(pfIsolationR04.sumNeutralHadronEt + pfIsolationR04.sumPhotonEt - (pfIsolationR04.sumPUPt)/2.,0.))/pt < 0.25 & isPFMuon & (isTrackerMuon || isGlobalMuon)',
303  jetSelection = 'pt>30 & abs(eta)<2.4',
304  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu8_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_DZ_v*',
305  'HLT_Mu12_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_DZ_v*',
306  'HLT_Mu23_TrkIsoVVL_Ele12_CaloIdL_TrackIdL_IsoVL_DZ_v*',
307  'HLT_Mu8_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_v*',
308  'HLT_Mu12_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_v*',
309  'HLT_Mu23_TrkIsoVVL_Ele12_CaloIdL_TrackIdL_IsoVL_v*'])
310 )
311 
312 
313 topElecMuonHLTMonitor_Dz_Mu12Ele23 = topElecMuonHLTMonitor.clone(
314  FolderName = 'HLT/TOP/DiLepton/ElecMuon/Mu12Ele23_DzEfficiency/',
315  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu12_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_DZ_v*']),
316  denGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu12_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_v*'])
317 )
318 
319 
320 topElecMuonHLTMonitor_Dz_Mu8Ele23 = topElecMuonHLTMonitor.clone(
321  FolderName = 'HLT/TOP/DiLepton/ElecMuon/Mu8Ele23_DzEfficiency/',
322  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu8_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_DZ_v*']),
323  denGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu8_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_v*'])
324 )
325 
326 
327 topElecMuonHLTMonitor_Dz_Mu23Ele12 = topElecMuonHLTMonitor.clone(
328  FolderName = 'HLT/TOP/DiLepton/ElecMuon/Mu23Ele12_DzEfficiency/',
329  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu23_TrkIsoVVL_Ele12_CaloIdL_TrackIdL_IsoVL_DZ_v*']),
330  denGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu23_TrkIsoVVL_Ele12_CaloIdL_TrackIdL_IsoVL_v*'])
331 )
332 
333 
334 topElecMuonHLTMonitor_Mu12Ele23 = topElecMuonHLTMonitor.clone(
335  FolderName = 'HLT/TOP/DiLepton/ElecMuon/Mu12Ele23/',
336  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu12_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_DZ_v*'])
337 )
338 
339 
340 topElecMuonHLTMonitor_Mu8Ele23 = topElecMuonHLTMonitor.clone(
341  FolderName = 'HLT/TOP/DiLepton/ElecMuon/Mu8Ele23/',
342  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu8_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_DZ_v*'])
343 )
344 
345 
346 topElecMuonHLTMonitor_Mu23Ele12 = topElecMuonHLTMonitor.clone(
347  FolderName = 'HLT/TOP/DiLepton/ElecMuon/Mu23Ele12/',
348  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu23_TrkIsoVVL_Ele12_CaloIdL_TrackIdL_IsoVL_DZ_v*'])
349 )
350 
351 
352 topElecMuonHLTMonitor_Mu12Ele23_ref = topElecMuonHLTMonitor.clone(
353  FolderName = 'HLT/TOP/DiLepton/ElecMuon/Mu12Ele23_Ref/',
354  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu12_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_v*'])
355 )
356 
357 
358 topElecMuonHLTMonitor_Mu8Ele23_ref = topElecMuonHLTMonitor.clone(
359  FolderName = 'HLT/TOP/DiLepton/ElecMuon/Mu8Ele23_Ref/',
360  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu8_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_v*'])
361 )
362 
363 
364 topElecMuonHLTMonitor_Mu23Ele12_ref = topElecMuonHLTMonitor.clone(
365  FolderName = 'HLT/TOP/DiLepton/ElecMuon/Mu23Ele12_Ref/',
366  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu23_TrkIsoVVL_Ele12_CaloIdL_TrackIdL_IsoVL_v*'])
367 )
368 
371 
372 fullyhadronic_ref350 = hltTOPmonitoring.clone(
373  FolderName = 'HLT/TOP/FullyHadronic/Reference/PFHT350Monitor/',
374  # Selections
375  leptJetDeltaRmin = 0.0,
376  HTdefinition = 'pt>30 & abs(eta)<2.4',
377  HTcut = 250,
378  # Binning
379  histoPSet =dict(htPSet = dict(nbins= 50, xmin= 0.0, xmax= 1000 ),
380  HTBinning = [0,240,260,280,300,320,340,360,380,400,420,440,460,480,500,520,540,560,580,600,650,700,750,800,850,900,1000]),
381  # Trigger
382  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT350_v*']),
383  denGenericTriggerEventPSet = dict(hltPaths = ['HLT_IsoMu27_v*'])
384 )
385 
386 
387 fullyhadronic_ref370 = hltTOPmonitoring.clone(
388  FolderName = 'HLT/TOP/FullyHadronic/Reference/PFHT370Monitor/',
389  # Selections
390  leptJetDeltaRmin = 0.0,
391  HTdefinition = 'pt>30 & abs(eta)<2.4',
392  HTcut = 250,
393  # Binning
394  histoPSet = dict(htPSet = dict(nbins= 50, xmin= 0.0, xmax= 1000),
395  HTBinning = [0,240,260,280,300,320,340,360,380,400,420,440,460,480,500,520,540,560,580,600,650,700,750,800,850,900,1000]),
396  # Trigger
397  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT370_v*']),
398  denGenericTriggerEventPSet = dict(hltPaths = ['HLT_IsoMu27_v*'])
399 )
400 
401 
402 fullyhadronic_ref430 = hltTOPmonitoring.clone(
403  FolderName = 'HLT/TOP/FullyHadronic/Reference/PFHT430Monitor/',
404  # Selections
405  leptJetDeltaRmin = 0.0,
406  HTdefinition = 'pt>30 & abs(eta)<2.4',
407  HTcut = 250,
408  # Binning
409  histoPSet = dict(htPSet = dict(nbins= 50, xmin= 0.0, xmax= 1000 ),
410  HTBinning = [0,240,260,280,300,320,340,360,380,400,420,440,460,480,500,520,540,560,580,600,650,700,750,800,850,900,1000]),
411  # Trigger
412  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT430_v*']),
413  denGenericTriggerEventPSet = dict(hltPaths = ['HLT_IsoMu27_v*'])
414 )
415 
416 
417 fullyhadronic_DoubleBTag_all = hltTOPmonitoring.clone(
418  FolderName = 'HLT/TOP/FullyHadronic/DoubleBTag/GlobalMonitor/',
419  # Selections
420  leptJetDeltaRmin = 0.0,
421  njets = 6,
422  jetSelection = 'pt>40 & abs(eta)<2.4',
423  HTdefinition = 'pt>30 & abs(eta)<2.4',
424  HTcut = 500,
425  nbjets = 2,
426  bjetSelection = 'pt>40 & abs(eta)<2.4',
427  btagAlgos = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"],
428  workingpoint = 0.4941, # Medium (According to: https://twiki.cern.ch/twiki/bin/viewauth/CMS/BtagRecommendation94X)
429  # Binning
430  histoPSet = dict(htPSet = dict(nbins= 50, xmin= 0.0, xmax= 1000),
431  jetPtBinning = [0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,90,100,120,140,160,200],
432  HTBinning = [0,420,440,460,480,500,520,540,560,580,600,650,700,750,800,850,900]),
433  # Triggers
434  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT400_SixPFJet32_DoublePFBTagDeepCSV_2p94_v*']),
435  denGenericTriggerEventPSet = dict(hltPaths = ['HLT_IsoMu27_v*'])
436 )
437 # conditions 2016
438 run2_HLTconditions_2016.toModify(fullyhadronic_DoubleBTag_all, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
439 run2_HLTconditions_2016.toModify(fullyhadronic_DoubleBTag_all, workingpoint = 0.8484)
440 run2_HLTconditions_2016.toModify(fullyhadronic_DoubleBTag_all.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT400_SixJet30_DoubleBTagCSV_p056_v*'])
441 # conditions 2017
442 run2_HLTconditions_2017.toModify(fullyhadronic_DoubleBTag_all, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
443 run2_HLTconditions_2017.toModify(fullyhadronic_DoubleBTag_all, workingpoint = 0.8484)
444 run2_HLTconditions_2017.toModify(fullyhadronic_DoubleBTag_all.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT380_SixPFJet32_DoublePFBTagCSV_2p2_v*'])
445 # conditions 2018
446 run2_HLTconditions_2018.toModify(fullyhadronic_DoubleBTag_all, btagAlgos = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"])
447 run2_HLTconditions_2018.toModify(fullyhadronic_DoubleBTag_all, workingpoint = 0.4941)
448 run2_HLTconditions_2018.toModify(fullyhadronic_DoubleBTag_all.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT400_SixPFJet32_DoublePFBTagDeepCSV_2p94_v*'])
449 
450 
451 fullyhadronic_DoubleBTag_jet = hltTOPmonitoring.clone(
452  FolderName = 'HLT/TOP/FullyHadronic/DoubleBTag/JetMonitor/',
453  # Selections
454  leptJetDeltaRmin = 0.0,
455  njets = 6,
456  jetSelection = 'pt>30 & abs(eta)<2.4',
457  HTdefinition = 'pt>30 & abs(eta)<2.4',
458  HTcut = 500,
459  nbjets = 2,
460  bjetSelection = 'pt>30 & abs(eta)<2.4',
461  btagAlgos = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"],
462  workingpoint = 0.4941, # Medium (According to: https://twiki.cern.ch/twiki/bin/viewauth/CMS/BtagRecommendation94X)
463  # Binning
464  histoPSet = dict(htPSet = dict(nbins= 50, xmin= 0.0, xmax= 1000),
465  jetPtBinning = [0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,90,100,120,140,160,200],
466  HTBinning = [0,420,440,460,480,500,520,540,560,580,600,650,700,750,800,850,900]),
467  # Triggers
468  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT400_SixPFJet32_v*']),
469  denGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT370_v*'])
470 )
471 # conditions 2016
472 run2_HLTconditions_2016.toModify(fullyhadronic_DoubleBTag_jet, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
473 run2_HLTconditions_2016.toModify(fullyhadronic_DoubleBTag_jet, workingpoint = 0.8484)
474 run2_HLTconditions_2016.toModify(fullyhadronic_DoubleBTag_jet.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT400_SixJet30_v*'])
475 run2_HLTconditions_2016.toModify(fullyhadronic_DoubleBTag_jet.denGenericTriggerEventPSet, hltPaths = ['HLT_PFHT350_v*'])
476 # conditions 2017
477 run2_HLTconditions_2017.toModify(fullyhadronic_DoubleBTag_jet, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
478 run2_HLTconditions_2017.toModify(fullyhadronic_DoubleBTag_jet, workingpoint = 0.8484)
479 run2_HLTconditions_2017.toModify(fullyhadronic_DoubleBTag_jet.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT380_SixPFJet32_v*'])
480 run2_HLTconditions_2017.toModify(fullyhadronic_DoubleBTag_jet.denGenericTriggerEventPSet, hltPaths = ['HLT_PFHT370_v*'])
481 # conditions 2018
482 run2_HLTconditions_2018.toModify(fullyhadronic_DoubleBTag_jet, btagAlgos = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"])
483 run2_HLTconditions_2018.toModify(fullyhadronic_DoubleBTag_jet, workingpoint = 0.4941)
484 run2_HLTconditions_2018.toModify(fullyhadronic_DoubleBTag_jet.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT400_SixPFJet32_v*'])
485 run2_HLTconditions_2018.toModify(fullyhadronic_DoubleBTag_jet.denGenericTriggerEventPSet, hltPaths = ['HLT_PFHT370_v*'])
486 
487 
488 fullyhadronic_DoubleBTag_bjet = hltTOPmonitoring.clone(
489  FolderName = 'HLT/TOP/FullyHadronic/DoubleBTag/BJetMonitor/',
490  # Selections
491  leptJetDeltaRmin = 0.0,
492  njets = 6,
493  jetSelection = 'pt>40 & abs(eta)<2.4',
494  HTdefinition = 'pt>30 & abs(eta)<2.4',
495  HTcut = 500,
496  nbjets = 2,
497  bjetSelection = 'pt>40 & abs(eta)<2.4',
498  btagAlgos = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"],
499  workingpoint = 0.1522, # Loose (According to: https://twiki.cern.ch/twiki/bin/viewauth/CMS/BtagRecommendation94X)
500  # Binning
501  histoPSet = dict(htPSet = dict(nbins= 50, xmin= 0.0, xmax= 1000),
502  jetPtBinning = [0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,90,100,120,140,160,200],
503  HTBinning = [0,420,440,460,480,500,520,540,560,580,600,650,700,750,800,850,900]),
504  # Triggers
505  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT400_SixPFJet32_DoublePFBTagDeepCSV_2p94_v*']),
506  denGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT400_SixPFJet32_v*'])
507 )
508 # conditions 2016
509 run2_HLTconditions_2016.toModify(fullyhadronic_DoubleBTag_bjet, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
510 run2_HLTconditions_2016.toModify(fullyhadronic_DoubleBTag_bjet, workingpoint = 0.5426)
511 run2_HLTconditions_2016.toModify(fullyhadronic_DoubleBTag_bjet.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT400_SixJet30_DoubleBTagCSV_p056_v*'])
512 run2_HLTconditions_2016.toModify(fullyhadronic_DoubleBTag_bjet.denGenericTriggerEventPSet, hltPaths = ['HLT_PFHT400_SixJet30_v*'])
513 # conditions 2017
514 run2_HLTconditions_2017.toModify(fullyhadronic_DoubleBTag_bjet, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
515 run2_HLTconditions_2017.toModify(fullyhadronic_DoubleBTag_bjet, workingpoint = 0.5426)
516 run2_HLTconditions_2017.toModify(fullyhadronic_DoubleBTag_bjet.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT380_SixPFJet32_DoublePFBTagCSV_2p2_v*'])
517 run2_HLTconditions_2017.toModify(fullyhadronic_DoubleBTag_bjet.denGenericTriggerEventPSet, hltPaths = ['HLT_PFHT380_SixPFJet32_v*'])
518 # conditions 2018
519 run2_HLTconditions_2018.toModify(fullyhadronic_DoubleBTag_bjet, btagAlgos = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"])
520 run2_HLTconditions_2018.toModify(fullyhadronic_DoubleBTag_bjet, workingpoint = 0.1522)
521 run2_HLTconditions_2018.toModify(fullyhadronic_DoubleBTag_bjet.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT400_SixPFJet32_DoublePFBTagDeepCSV_2p94_v*'])
522 run2_HLTconditions_2018.toModify(fullyhadronic_DoubleBTag_bjet.denGenericTriggerEventPSet, hltPaths = ['HLT_PFHT400_SixPFJet32_v*'])
523 
524 
525 
526 fullyhadronic_DoubleBTag_ref = hltTOPmonitoring.clone(
527  FolderName = 'HLT/TOP/FullyHadronic/DoubleBTag/RefMonitor/',
528  # Selections
529  leptJetDeltaRmin = 0.0,
530  njets = 6,
531  jetSelection = 'pt>40 & abs(eta)<2.4',
532  HTdefinition = 'pt>30 & abs(eta)<2.4',
533  HTcut = 500,
534  nbjets = 0,
535  bjetSelection = 'pt>40 & abs(eta)<2.4',
536  btagAlgos = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"],
537  workingpoint = 0.4941, # Medium (According to: https://twiki.cern.ch/twiki/bin/viewauth/CMS/BtagRecommendation94X)
538  # Binning
539  histoPSet = dict(htPSet = dict(nbins= 50, xmin= 0.0, xmax= 1000),
540  jetPtBinning = [0,30,35,40,45,50,55,60,65,70,75,80,90,100,120,140,160,200],
541  HTBinning = [0,360,380,400,420,440,460,480,500,520,540,560,580,600,650,700,750,800,850,900]),
542  # Triggers
543  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT400_SixPFJet32_v*']),
544  denGenericTriggerEventPSet = dict(hltPaths = ['HLT_IsoMu27_v*'])
545 )
546 # conditions 2016
547 run2_HLTconditions_2016.toModify(fullyhadronic_DoubleBTag_ref, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
548 run2_HLTconditions_2016.toModify(fullyhadronic_DoubleBTag_ref, workingpoint = 0.8484)
549 run2_HLTconditions_2016.toModify(fullyhadronic_DoubleBTag_ref.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT400_SixJet30_v*'])
550 # conditions 2017
551 run2_HLTconditions_2017.toModify(fullyhadronic_DoubleBTag_ref, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
552 run2_HLTconditions_2017.toModify(fullyhadronic_DoubleBTag_ref, workingpoint = 0.8484)
553 run2_HLTconditions_2017.toModify(fullyhadronic_DoubleBTag_ref.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT380_SixPFJet32_v*'])
554 # conditions 2018
555 run2_HLTconditions_2018.toModify(fullyhadronic_DoubleBTag_ref, btagAlgos = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"])
556 run2_HLTconditions_2018.toModify(fullyhadronic_DoubleBTag_ref, workingpoint = 0.4941)
557 run2_HLTconditions_2018.toModify(fullyhadronic_DoubleBTag_ref.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT400_SixPFJet32_v*'])
558 
559 
560 
561 fullyhadronic_SingleBTag_all = hltTOPmonitoring.clone(
562  FolderName= 'HLT/TOP/FullyHadronic/SingleBTag/GlobalMonitor/',
563  # Selections
564  leptJetDeltaRmin = 0.0,
565  njets = 6,
566  jetSelection = 'pt>40 & abs(eta)<2.4',
567  HTdefinition = 'pt>30 & abs(eta)<2.4',
568  HTcut = 500,
569  nbjets = 2,
570  bjetSelection = 'pt>40 & abs(eta)<2.4',
571  btagAlgos = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"],
572  workingpoint = 0.4941, # Medium (According to: https://twiki.cern.ch/twiki/bin/viewauth/CMS/BtagRecommendation94X)
573  # Binning
574  histoPSet = dict(htPSet = dict(nbins= 50, xmin= 0.0, xmax= 1000),
575  jetPtBinning = [0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,90,100,120,140,160,200],
576  HTBinning = [0,420,440,460,480,500,520,540,560,580,600,650,700,750,800,850,900]),
577  # Triggers
578  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT450_SixPFJet36_PFBTagDeepCSV_1p59_v*']),
579  denGenericTriggerEventPSet = dict(hltPaths = ['HLT_IsoMu27_v*'])
580 )
581 # conditions 2016
582 run2_HLTconditions_2016.toModify(fullyhadronic_SingleBTag_all, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
583 run2_HLTconditions_2016.toModify(fullyhadronic_SingleBTag_all, workingpoint = 0.8484)
584 run2_HLTconditions_2016.toModify(fullyhadronic_SingleBTag_all.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT450_SixJet40_BTagCSV_p056_v*'])
585 # conditions 2017
586 run2_HLTconditions_2017.toModify(fullyhadronic_SingleBTag_all, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
587 run2_HLTconditions_2017.toModify(fullyhadronic_SingleBTag_all, workingpoint = 0.8484)
588 run2_HLTconditions_2017.toModify(fullyhadronic_SingleBTag_all.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT430_SixPFJet40_PFBTagCSV_1p5_v*'])
589 # conditions 2018
590 run2_HLTconditions_2018.toModify(fullyhadronic_SingleBTag_all, btagAlgos = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"])
591 run2_HLTconditions_2018.toModify(fullyhadronic_SingleBTag_all, workingpoint = 0.4941)
592 run2_HLTconditions_2018.toModify(fullyhadronic_SingleBTag_all.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT450_SixPFJet36_PFBTagDeepCSV_1p59_v*'])
593 
594 
595 
596 fullyhadronic_SingleBTag_jet = hltTOPmonitoring.clone(
597  FolderName= 'HLT/TOP/FullyHadronic/SingleBTag/JetMonitor/',
598  # Selection
599  leptJetDeltaRmin = 0.0,
600  njets = 6,
601  jetSelection = 'pt>30 & abs(eta)<2.4',
602  HTdefinition = 'pt>30 & abs(eta)<2.4',
603  HTcut = 500,
604  nbjets = 2,
605  bjetSelection = 'pt>30 & abs(eta)<2.4',
606  btagAlgos = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"],
607  workingpoint = 0.4941, # Medium (According to: https://twiki.cern.ch/twiki/bin/viewauth/CMS/BtagRecommendation94X)
608  # Binning
609  histoPSet = dict(htPSet = dict(nbins= 50, xmin= 0.0, xmax= 1000),
610  jetPtBinning = [0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,90,100,120,140,160,200],
611  HTBinning = [0,420,440,460,480,500,520,540,560,580,600,650,700,750,800,850,900]),
612  # Triggers
613  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT450_SixPFJet36_v*']),
614  denGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT430_v*'])
615 )
616 # conditions 2016
617 run2_HLTconditions_2016.toModify(fullyhadronic_SingleBTag_jet, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
618 run2_HLTconditions_2016.toModify(fullyhadronic_SingleBTag_jet, workingpoint = 0.8484)
619 run2_HLTconditions_2016.toModify(fullyhadronic_SingleBTag_jet.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT450_SixJet40_v*'])
620 run2_HLTconditions_2016.toModify(fullyhadronic_SingleBTag_jet.denGenericTriggerEventPSet, hltPaths = ['HLT_PFHT400_v*'])
621 # conditions 2017
622 run2_HLTconditions_2017.toModify(fullyhadronic_SingleBTag_jet, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
623 run2_HLTconditions_2017.toModify(fullyhadronic_SingleBTag_jet, workingpoint = 0.8484)
624 run2_HLTconditions_2017.toModify(fullyhadronic_SingleBTag_jet.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT430_SixPFJet40_v*'])
625 run2_HLTconditions_2017.toModify(fullyhadronic_SingleBTag_jet.denGenericTriggerEventPSet, hltPaths = ['HLT_PFHT430_v*'])
626 # conditions 2018
627 run2_HLTconditions_2018.toModify(fullyhadronic_SingleBTag_jet, btagAlgos = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"])
628 run2_HLTconditions_2018.toModify(fullyhadronic_SingleBTag_jet, workingpoint = 0.4941)
629 run2_HLTconditions_2018.toModify(fullyhadronic_SingleBTag_jet.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT450_SixPFJet36_v*'])
630 run2_HLTconditions_2018.toModify(fullyhadronic_SingleBTag_jet.denGenericTriggerEventPSet, hltPaths = ['HLT_PFHT430_v*'])
631 
632 
633 
634 fullyhadronic_SingleBTag_bjet = hltTOPmonitoring.clone(
635  FolderName= 'HLT/TOP/FullyHadronic/SingleBTag/BJetMonitor/',
636  # Selection
637  leptJetDeltaRmin = 0.0,
638  njets = 6,
639  jetSelection = 'pt>40 & abs(eta)<2.4',
640  HTdefinition = 'pt>30 & abs(eta)<2.4',
641  HTcut = 500,
642  nbjets = 2,
643  bjetSelection = 'pt>40 & abs(eta)<2.4',
644  btagAlgos = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"],
645  workingpoint = 0.1522, # Loose (According to: https://twiki.cern.ch/twiki/bin/viewauth/CMS/BtagRecommendation94X)
646  # Binning
647  histoPSet = dict(htPSet = dict(nbins= 50, xmin= 0.0, xmax= 1000),
648  jetPtBinning = [0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,90,100,120,140,160,200],
649  HTBinning = [0,420,440,460,480,500,520,540,560,580,600,650,700,750,800,850,900]),
650  # Triggers
651  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT450_SixPFJet36_PFBTagDeepCSV_1p59_v*']),
652  denGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT450_SixPFJet36_v*'])
653 )
654 # conditions 2016
655 run2_HLTconditions_2016.toModify(fullyhadronic_SingleBTag_bjet, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
656 run2_HLTconditions_2016.toModify(fullyhadronic_SingleBTag_bjet, workingpoint = 0.5426)
657 run2_HLTconditions_2016.toModify(fullyhadronic_SingleBTag_bjet.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT450_SixJet40_BTagCSV_p056_v*'])
658 run2_HLTconditions_2016.toModify(fullyhadronic_SingleBTag_bjet.denGenericTriggerEventPSet, hltPaths = ['HLT_PFHT450_SixJet40_v*'])
659 # conditions 2017
660 run2_HLTconditions_2017.toModify(fullyhadronic_SingleBTag_bjet, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
661 run2_HLTconditions_2017.toModify(fullyhadronic_SingleBTag_bjet, workingpoint = 0.5426)
662 run2_HLTconditions_2017.toModify(fullyhadronic_SingleBTag_bjet.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT430_SixPFJet40_PFBTagCSV_1p5_v*'])
663 run2_HLTconditions_2017.toModify(fullyhadronic_SingleBTag_bjet.denGenericTriggerEventPSet, hltPaths = ['HLT_PFHT430_SixPFJet40_v*'])
664 # conditions 2018
665 run2_HLTconditions_2018.toModify(fullyhadronic_SingleBTag_bjet, btagAlgos = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"])
666 run2_HLTconditions_2018.toModify(fullyhadronic_SingleBTag_bjet, workingpoint = 0.1522)
667 run2_HLTconditions_2018.toModify(fullyhadronic_SingleBTag_bjet.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT450_SixPFJet36_PFBTagDeepCSV_1p59_v*'])
668 run2_HLTconditions_2018.toModify(fullyhadronic_SingleBTag_bjet.denGenericTriggerEventPSet, hltPaths = ['HLT_PFHT450_SixPFJet36_v*'])
669 
670 
671 
672 fullyhadronic_SingleBTag_ref = hltTOPmonitoring.clone(
673  FolderName= 'HLT/TOP/FullyHadronic/SingleBTag/RefMonitor/',
674  # Selection
675  leptJetDeltaRmin = 0.0,
676  njets = 6,
677  jetSelection = 'pt>40 & abs(eta)<2.4',
678  HTdefinition = 'pt>30 & abs(eta)<2.4',
679  HTcut = 500,
680  nbjets = 0,
681  bjetSelection = 'pt>40 & abs(eta)<2.4',
682  btagAlgos = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"],
683  workingpoint = 0.4941, # Medium (According to: https://twiki.cern.ch/twiki/bin/viewauth/CMS/BtagRecommendation94X)
684  # Binning
685  histoPSet = dict(htPSet = dict(nbins= 50, xmin= 0.0, xmax= 1000),
686  jetPtBinning = [0,30,35,40,45,50,55,60,65,70,75,80,90,100,120,140,160,200],
687  HTBinning = [0,400,420,440,460,480,500,520,540,560,580,600,650,700,750,800,850,900]),
688  # Triggers
689  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT450_SixPFJet36_v*']),
690  denGenericTriggerEventPSet = dict(hltPaths = ['HLT_IsoMu27_v*'])
691 )
692 # conditions 2016
693 run2_HLTconditions_2016.toModify(fullyhadronic_SingleBTag_ref, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
694 run2_HLTconditions_2016.toModify(fullyhadronic_SingleBTag_ref, workingpoint = 0.8484)
695 run2_HLTconditions_2016.toModify(fullyhadronic_SingleBTag_ref.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT450_SixJet40_v*'])
696 # conditions 2017
697 run2_HLTconditions_2017.toModify(fullyhadronic_SingleBTag_ref, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
698 run2_HLTconditions_2017.toModify(fullyhadronic_SingleBTag_ref, workingpoint = 0.8484)
699 run2_HLTconditions_2017.toModify(fullyhadronic_SingleBTag_ref.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT430_SixPFJet40_v*'])
700 # conditions 2018
701 run2_HLTconditions_2018.toModify(fullyhadronic_SingleBTag_ref, btagAlgos = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"])
702 run2_HLTconditions_2018.toModify(fullyhadronic_SingleBTag_ref, workingpoint = 0.4941)
703 run2_HLTconditions_2018.toModify(fullyhadronic_SingleBTag_ref.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT450_SixPFJet36_v*'])
704 
705 
706 
707 fullyhadronic_TripleBTag_all = hltTOPmonitoring.clone(
708  FolderName = 'HLT/TOP/FullyHadronic/TripleBTag/GlobalMonitor/',
709  # Selections
710  leptJetDeltaRmin = 0.0,
711  njets = 4,
712  jetSelection = 'pt>45 & abs(eta)<2.4',
713  HTdefinition = 'pt>30 & abs(eta)<2.4',
714  HTcut = 500,
715  nbjets = 4,
716  bjetSelection = 'pt>45 & abs(eta)<2.4',
717  btagAlgos = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"],
718  workingpoint = 0.4941, # Medium (According to: https://twiki.cern.ch/twiki/bin/viewauth/CMS/BtagRecommendation94X)
719  # Binning
720  histoPSet = dict(htPSet =dict(nbins= 50, xmin= 0.0, xmax= 1000),
721  jetPtBinning = [0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,90,100,120,200,400],
722  HTBinning = [0,460,480,500,520,540,560,580,600,650,700,750,800,850,900]),
723  # Triggers
724  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT330PT30_QuadPFJet_75_60_45_40_TriplePFBTagDeepCSV_4p5_v*']),
725  denGenericTriggerEventPSet = dict(hltPaths = ['HLT_IsoMu27_v*'])
726 )
727 # conditions 2017
728 run2_HLTconditions_2017.toModify(fullyhadronic_TripleBTag_all, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
729 run2_HLTconditions_2017.toModify(fullyhadronic_TripleBTag_all, workingpoint = 0.8484)
730 run2_HLTconditions_2017.toModify(fullyhadronic_TripleBTag_all.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT300PT30_QuadPFJet_75_60_45_40_TriplePFBTagCSV_3p0_v*'])
731 # conditions 2018
732 run2_HLTconditions_2018.toModify(fullyhadronic_TripleBTag_all, btagAlgos = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"])
733 run2_HLTconditions_2018.toModify(fullyhadronic_TripleBTag_all, workingpoint = 0.4941)
734 run2_HLTconditions_2018.toModify(fullyhadronic_TripleBTag_all.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT330PT30_QuadPFJet_75_60_45_40_TriplePFBTagDeepCSV_4p5_v*'])
735 
736 
737 fullyhadronic_TripleBTag_jet = hltTOPmonitoring.clone(
738  FolderName = 'HLT/TOP/FullyHadronic/TripleBTag/JetMonitor/',
739  # Selections
740  leptJetDeltaRmin = 0.0,
741  njets = 4,
742  jetSelection = 'pt>45 & abs(eta)<2.4',
743  HTdefinition = 'pt>30 & abs(eta)<2.4',
744  HTcut = 500,
745  nbjets = 4,
746  bjetSelection = 'pt>45 & abs(eta)<2.4',
747  btagAlgos = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"],
748  workingpoint = 0.4941, # Medium (According to: https://twiki.cern.ch/twiki/bin/viewauth/CMS/BtagRecommendation94X)
749  # Binning
750  histoPSet = dict(htPSet = dict(nbins= 50, xmin= 0.0, xmax= 1000),
751  jetPtBinning = [0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,90,100,120,200,400],
752  HTBinning = [0,460,480,500,520,540,560,580,600,650,700,750,800,850,900]),
753  # Triggers
754  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT330PT30_QuadPFJet_75_60_45_40_v*']),
755  denGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT350_v*'])
756 )
757 # conditions 2017
758 run2_HLTconditions_2017.toModify(fullyhadronic_TripleBTag_jet, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
759 run2_HLTconditions_2017.toModify(fullyhadronic_TripleBTag_jet, workingpoint = 0.8484)
760 run2_HLTconditions_2017.toModify(fullyhadronic_TripleBTag_jet.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT300PT30_QuadPFJet_75_60_45_40_v*'])
761 # conditions 2018
762 run2_HLTconditions_2018.toModify(fullyhadronic_TripleBTag_jet, btagAlgos = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"])
763 run2_HLTconditions_2018.toModify(fullyhadronic_TripleBTag_jet, workingpoint = 0.4941)
764 run2_HLTconditions_2018.toModify(fullyhadronic_TripleBTag_jet.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT330PT30_QuadPFJet_75_60_45_40_v*'])
765 
766 
767 
768 fullyhadronic_TripleBTag_bjet = hltTOPmonitoring.clone(
769  FolderName = 'HLT/TOP/FullyHadronic/TripleBTag/BJetMonitor/',
770  # Selections
771  leptJetDeltaRmin = 0.0,
772  njets = 4,
773  jetSelection = 'pt>45 & abs(eta)<2.4',
774  HTdefinition = 'pt>30 & abs(eta)<2.4',
775  HTcut = 500,
776  nbjets = 4,
777  bjetSelection = 'pt>45 & abs(eta)<2.4',
778  btagAlgos = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"],
779  workingpoint = 0.1522, # Loose (According to: https://twiki.cern.ch/twiki/bin/viewauth/CMS/BtagRecommendation94X)
780  # Binning
781  histoPSet = dict(htPSet = dict(nbins= 50, xmin= 0.0, xmax= 1000),
782  jetPtBinning = [0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,90,100,120,200,400],
783  HTBinning = [0,460,480,500,520,540,560,580,600,650,700,750,800,850,900]),
784  # Triggers
785  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT330PT30_QuadPFJet_75_60_45_40_TriplePFBTagDeepCSV_4p5_v*']),
786  denGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT330PT30_QuadPFJet_75_60_45_40_v*'])
787 )
788 # conditions 2017
789 run2_HLTconditions_2017.toModify(fullyhadronic_TripleBTag_bjet, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
790 run2_HLTconditions_2017.toModify(fullyhadronic_TripleBTag_bjet, workingpoint = 0.5426)
791 run2_HLTconditions_2017.toModify(fullyhadronic_TripleBTag_bjet.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT300PT30_QuadPFJet_75_60_45_40_TriplePFBTagCSV_3p0_v*'])
792 run2_HLTconditions_2017.toModify(fullyhadronic_TripleBTag_bjet.denGenericTriggerEventPSet, hltPaths = ['HLT_PFHT300PT30_QuadPFJet_75_60_45_40_v*'])
793 # conditions 2018
794 run2_HLTconditions_2018.toModify(fullyhadronic_TripleBTag_bjet, btagAlgos = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"])
795 run2_HLTconditions_2018.toModify(fullyhadronic_TripleBTag_bjet, workingpoint = 0.1522)
796 run2_HLTconditions_2018.toModify(fullyhadronic_TripleBTag_bjet.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT330PT30_QuadPFJet_75_60_45_40_TriplePFBTagDeepCSV_4p5_v*'])
797 run2_HLTconditions_2018.toModify(fullyhadronic_TripleBTag_bjet.denGenericTriggerEventPSet, hltPaths = ['HLT_PFHT330PT30_QuadPFJet_75_60_45_40_v*'])
798 
799 
802 
803 from DQMOffline.Trigger.HLTEGTnPMonitor_cfi import egmGsfElectronIDsForDQM
804 
805 topMonitorHLT = cms.Sequence(
806 
807  topEleJet_ele
808  + topEleJet_jet
809  + topEleJet_all
810  + topEleHT_ele
811  + topEleHT_ht
812  + topEleHT_all
813 
814  + topSingleMuonHLTMonitor_Mu24
815  + topSingleMuonHLTMonitor_Mu27
816  + topSingleMuonHLTMonitor_Mu50
817 
818  + topDiElectronHLTMonitor
819  + topDiElectronHLTMonitor_Dz
820 
821  + topDiMuonHLTMonitor_noDz
822  + topDiMuonHLTMonitor_Dz
823  + topDiMuonHLTMonitor_Dz_Mu17_Mu8
824  + topDiMuonHLTMonitor_Mass8
825  + topDiMuonHLTMonitor_Mass3p8
826  + topDiMuonHLTMonitor_Mass8Mon
827  + topDiMuonHLTMonitor_Mass3p8Mon
828 
829  + topElecMuonHLTMonitor
830  + topElecMuonHLTMonitor_Dz_Mu12Ele23
831  + topElecMuonHLTMonitor_Dz_Mu8Ele23
832  + topElecMuonHLTMonitor_Dz_Mu23Ele12
833  + topElecMuonHLTMonitor_Mu12Ele23
834  + topElecMuonHLTMonitor_Mu8Ele23
835  + topElecMuonHLTMonitor_Mu23Ele12
836  + topElecMuonHLTMonitor_Mu12Ele23_ref
837  + topElecMuonHLTMonitor_Mu8Ele23_ref
838  + topElecMuonHLTMonitor_Mu23Ele12_ref
839 
840  + fullyhadronic_ref350
841  + fullyhadronic_ref370
842  + fullyhadronic_ref430
843  + fullyhadronic_DoubleBTag_all
844  + fullyhadronic_DoubleBTag_jet
845  + fullyhadronic_DoubleBTag_bjet
846  + fullyhadronic_DoubleBTag_ref
847  + fullyhadronic_SingleBTag_all
848  + fullyhadronic_SingleBTag_jet
849  + fullyhadronic_SingleBTag_bjet
850  + fullyhadronic_SingleBTag_ref
851  + fullyhadronic_TripleBTag_all
852  + fullyhadronic_TripleBTag_jet
853  + fullyhadronic_TripleBTag_bjet
854 
855  , cms.Task(egmGsfElectronIDsForDQM) # Use of electron VID requires this module being executed first
856 )
857 
858 topHLTDQMSourceExtra = cms.Sequence(
859 )
860 
861 topMonitorHLT_2016 = topMonitorHLT.copy()
862 topMonitorHLT_2016.remove( topEleJet_jet )
863 topMonitorHLT_2016.remove( topEleJet_ele )
864 topMonitorHLT_2016.remove( topEleJet_all )
865 topMonitorHLT_2016.remove( topEleHT_ht )
866 topMonitorHLT_2016.remove( topEleHT_ele )
867 topMonitorHLT_2016.remove( topEleHT_all )
868 topMonitorHLT_2016.remove( topDiMuonHLTMonitor_Mass3p8 )
869 topMonitorHLT_2016.remove( topDiMuonHLTMonitor_Mass8Mon )
870 topMonitorHLT_2016.remove( topDiMuonHLTMonitor_Mass3p8Mon )
871 topMonitorHLT_2016.remove( fullyhadronic_ref370 )
872 topMonitorHLT_2016.remove( fullyhadronic_ref430 )
873 topMonitorHLT_2016.remove( fullyhadronic_TripleBTag_all )
874 topMonitorHLT_2016.remove( fullyhadronic_TripleBTag_jet )
875 topMonitorHLT_2016.remove( fullyhadronic_TripleBTag_bjet )
876 
877 run2_HLTconditions_2016.toReplaceWith(topMonitorHLT, topMonitorHLT_2016)