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