124 self.process.rerunMvaIsolationTask = self.cms.Task()
125 self.process.rerunMvaIsolationSequence = self.cms.Sequence()
126 tauIDSources = self.cms.PSet()
129 if "2017v1" in self.
toKeep:
132 'tauIdMVAIsoDBoldDMwLT2017' :
"tauIdMVAIsoDBoldDMwLT2017",
135 'tauIdMVAIsoDBoldDMwLT2017' : {
136 'Eff95' :
"DBoldDMwLTEff95",
137 'Eff90' :
"DBoldDMwLTEff90",
138 'Eff80' :
"DBoldDMwLTEff80",
139 'Eff70' :
"DBoldDMwLTEff70",
140 'Eff60' :
"DBoldDMwLTEff60",
141 'Eff50' :
"DBoldDMwLTEff50",
142 'Eff40' :
"DBoldDMwLTEff40" 147 if self.
debug:
print (
"runTauID: not is_above_cmssw_version(9, 4, 4). Will update the list of available in DB samples to access 2017v1")
150 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1raw = patDiscriminationByIsolationMVArun2v1raw.clone(
151 PATTauProducer = self.cms.InputTag(
'slimmedTaus'),
152 Prediscriminants = noPrediscriminants,
153 loadMVAfromDB = self.cms.bool(
True),
154 mvaName = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1"),
155 mvaOpt = self.cms.string(
"DBoldDMwLTwGJ"),
156 verbosity = self.cms.int32(0)
159 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VLoose = patDiscriminationByIsolationMVArun2v1VLoose.clone(
160 PATTauProducer = self.cms.InputTag(
'slimmedTaus'),
161 Prediscriminants = noPrediscriminants,
162 toMultiplex = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v1raw'),
163 key = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v1raw:category'),
164 loadMVAfromDB = self.cms.bool(
True),
165 mvaOutput_normalization = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_mvaOutput_normalization"),
166 mapping = self.cms.VPSet(
168 category = self.cms.uint32(0),
169 cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff90"),
170 variable = self.cms.string(
"pt"),
175 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VVLoose = self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VLoose.clone()
176 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VVLoose.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff95")
177 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1Loose = self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VLoose.clone()
178 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1Loose.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff80")
179 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1Medium = self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VLoose.clone()
180 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1Medium.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff70")
181 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1Tight = self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VLoose.clone()
182 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1Tight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff60")
183 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VTight = self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VLoose.clone()
184 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VTight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff50")
185 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VVTight = self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VLoose.clone()
186 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VVTight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff40")
189 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1raw,
190 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VLoose,
191 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VVLoose,
192 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1Loose,
193 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1Medium,
194 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1Tight,
195 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VTight,
196 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VVTight
201 tauIDSources.byIsolationMVArun2017v1DBoldDMwLTraw2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v1raw')
202 tauIDSources.byVVLooseIsolationMVArun2017v1DBoldDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v1VVLoose')
203 tauIDSources.byVLooseIsolationMVArun2017v1DBoldDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v1VLoose')
204 tauIDSources.byLooseIsolationMVArun2017v1DBoldDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v1Loose')
205 tauIDSources.byMediumIsolationMVArun2017v1DBoldDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v1Medium')
206 tauIDSources.byTightIsolationMVArun2017v1DBoldDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v1Tight')
207 tauIDSources.byVTightIsolationMVArun2017v1DBoldDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v1VTight')
208 tauIDSources.byVVTightIsolationMVArun2017v1DBoldDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v1VVTight')
211 if "2017v2" in self.
toKeep:
214 'tauIdMVAIsoDBoldDMwLT2017' :
"tauIdMVAIsoDBoldDMwLT2017",
217 'tauIdMVAIsoDBoldDMwLT2017' : {
218 'Eff95' :
"DBoldDMwLTEff95",
219 'Eff90' :
"DBoldDMwLTEff90",
220 'Eff80' :
"DBoldDMwLTEff80",
221 'Eff70' :
"DBoldDMwLTEff70",
222 'Eff60' :
"DBoldDMwLTEff60",
223 'Eff50' :
"DBoldDMwLTEff50",
224 'Eff40' :
"DBoldDMwLTEff40" 229 if self.
debug:
print (
"runTauID: not is_above_cmssw_version(9, 4, 5). Will update the list of available in DB samples to access 2017v2")
232 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2raw = patDiscriminationByIsolationMVArun2v1raw.clone(
233 PATTauProducer = self.cms.InputTag(
'slimmedTaus'),
234 Prediscriminants = noPrediscriminants,
235 loadMVAfromDB = self.cms.bool(
True),
236 mvaName = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2"),
237 mvaOpt = self.cms.string(
"DBoldDMwLTwGJ"),
238 verbosity = self.cms.int32(0)
241 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VLoose = patDiscriminationByIsolationMVArun2v1VLoose.clone(
242 PATTauProducer = self.cms.InputTag(
'slimmedTaus'),
243 Prediscriminants = noPrediscriminants,
244 toMultiplex = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v2raw'),
245 key = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v2raw:category'),
246 loadMVAfromDB = self.cms.bool(
True),
247 mvaOutput_normalization = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_mvaOutput_normalization"),
248 mapping = self.cms.VPSet(
250 category = self.cms.uint32(0),
251 cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff90"),
252 variable = self.cms.string(
"pt"),
255 verbosity = self.cms.int32(0)
258 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VVLoose = self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VLoose.clone()
259 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VVLoose.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff95")
260 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2Loose = self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VLoose.clone()
261 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2Loose.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff80")
262 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2Medium = self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VLoose.clone()
263 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2Medium.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff70")
264 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2Tight = self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VLoose.clone()
265 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2Tight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff60")
266 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VTight = self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VLoose.clone()
267 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VTight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff50")
268 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VVTight = self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VLoose.clone()
269 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VVTight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff40")
272 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2raw,
273 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VLoose,
274 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VVLoose,
275 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2Loose,
276 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2Medium,
277 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2Tight,
278 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VTight,
279 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VVTight
284 tauIDSources.byIsolationMVArun2017v2DBoldDMwLTraw2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v2raw')
285 tauIDSources.byVVLooseIsolationMVArun2017v2DBoldDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v2VVLoose')
286 tauIDSources.byVLooseIsolationMVArun2017v2DBoldDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v2VLoose')
287 tauIDSources.byLooseIsolationMVArun2017v2DBoldDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v2Loose')
288 tauIDSources.byMediumIsolationMVArun2017v2DBoldDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v2Medium')
289 tauIDSources.byTightIsolationMVArun2017v2DBoldDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v2Tight')
290 tauIDSources.byVTightIsolationMVArun2017v2DBoldDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v2VTight')
291 tauIDSources.byVVTightIsolationMVArun2017v2DBoldDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v2VVTight')
293 if "newDM2017v2" in self.
toKeep:
296 'tauIdMVAIsoDBnewDMwLT2017' :
"tauIdMVAIsoDBnewDMwLT2017",
299 'tauIdMVAIsoDBnewDMwLT2017' : {
300 'Eff95' :
"DBnewDMwLTEff95",
301 'Eff90' :
"DBnewDMwLTEff90",
302 'Eff80' :
"DBnewDMwLTEff80",
303 'Eff70' :
"DBnewDMwLTEff70",
304 'Eff60' :
"DBnewDMwLTEff60",
305 'Eff50' :
"DBnewDMwLTEff50",
306 'Eff40' :
"DBnewDMwLTEff40" 311 if self.
debug:
print (
"runTauID: not is_above_cmssw_version(9, 4, 5). Will update the list of available in DB samples to access newDM2017v2")
314 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2raw = patDiscriminationByIsolationMVArun2v1raw.clone(
315 PATTauProducer = self.cms.InputTag(
'slimmedTaus'),
316 Prediscriminants = noPrediscriminants,
317 loadMVAfromDB = self.cms.bool(
True),
318 mvaName = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2"),
319 mvaOpt = self.cms.string(
"DBnewDMwLTwGJ"),
320 verbosity = self.cms.int32(0)
323 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VLoose = patDiscriminationByIsolationMVArun2v1VLoose.clone(
324 PATTauProducer = self.cms.InputTag(
'slimmedTaus'),
325 Prediscriminants = noPrediscriminants,
326 toMultiplex = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2017v2raw'),
327 key = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2017v2raw:category'),
328 loadMVAfromDB = self.cms.bool(
True),
329 mvaOutput_normalization = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_mvaOutput_normalization"),
330 mapping = self.cms.VPSet(
332 category = self.cms.uint32(0),
333 cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff90"),
334 variable = self.cms.string(
"pt"),
337 verbosity = self.cms.int32(0)
340 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VVLoose = self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VLoose.clone()
341 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VVLoose.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff95")
342 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2Loose = self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VLoose.clone()
343 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2Loose.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff80")
344 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2Medium = self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VLoose.clone()
345 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2Medium.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff70")
346 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2Tight = self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VLoose.clone()
347 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2Tight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff60")
348 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VTight = self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VLoose.clone()
349 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VTight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff50")
350 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VVTight = self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VLoose.clone()
351 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VVTight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff40")
354 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2raw,
355 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VLoose,
356 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VVLoose,
357 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2Loose,
358 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2Medium,
359 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2Tight,
360 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VTight,
361 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VVTight
366 tauIDSources.byIsolationMVArun2017v2DBnewDMwLTraw2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2017v2raw')
367 tauIDSources.byVVLooseIsolationMVArun2017v2DBnewDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2017v2VVLoose')
368 tauIDSources.byVLooseIsolationMVArun2017v2DBnewDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2017v2VLoose')
369 tauIDSources.byLooseIsolationMVArun2017v2DBnewDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2017v2Loose')
370 tauIDSources.byMediumIsolationMVArun2017v2DBnewDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2017v2Medium')
371 tauIDSources.byTightIsolationMVArun2017v2DBnewDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2017v2Tight')
372 tauIDSources.byVTightIsolationMVArun2017v2DBnewDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2017v2VTight')
373 tauIDSources.byVVTightIsolationMVArun2017v2DBnewDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2017v2VVTight')
375 if "dR0p32017v2" in self.
toKeep:
378 'tauIdMVAIsoDBoldDMdR0p3wLT2017' :
"tauIdMVAIsoDBoldDMdR0p3wLT2017",
381 'tauIdMVAIsoDBoldDMdR0p3wLT2017' : {
382 'Eff95' :
"DBoldDMdR0p3wLTEff95",
383 'Eff90' :
"DBoldDMdR0p3wLTEff90",
384 'Eff80' :
"DBoldDMdR0p3wLTEff80",
385 'Eff70' :
"DBoldDMdR0p3wLTEff70",
386 'Eff60' :
"DBoldDMdR0p3wLTEff60",
387 'Eff50' :
"DBoldDMdR0p3wLTEff50",
388 'Eff40' :
"DBoldDMdR0p3wLTEff40" 393 if self.
debug:
print (
"runTauID: not is_above_cmssw_version(9, 4, 5). Will update the list of available in DB samples to access dR0p32017v2")
396 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2raw = patDiscriminationByIsolationMVArun2v1raw.clone(
397 PATTauProducer = self.cms.InputTag(
'slimmedTaus'),
398 Prediscriminants = noPrediscriminants,
399 loadMVAfromDB = self.cms.bool(
True),
400 mvaName = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2"),
401 mvaOpt = self.cms.string(
"DBoldDMwLTwGJ"),
402 srcChargedIsoPtSum = self.cms.string(
'chargedIsoPtSumdR03'),
403 srcFootprintCorrection = self.cms.string(
'footprintCorrectiondR03'),
404 srcNeutralIsoPtSum = self.cms.string(
'neutralIsoPtSumdR03'),
405 srcPhotonPtSumOutsideSignalCone = self.cms.string(
'photonPtSumOutsideSignalConedR03'),
406 verbosity = self.cms.int32(0)
409 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VLoose = patDiscriminationByIsolationMVArun2v1VLoose.clone(
410 PATTauProducer = self.cms.InputTag(
'slimmedTaus'),
411 Prediscriminants = noPrediscriminants,
412 toMultiplex = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2raw'),
413 key = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2raw:category'),
414 loadMVAfromDB = self.cms.bool(
True),
415 mvaOutput_normalization = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_mvaOutput_normalization"),
416 mapping = self.cms.VPSet(
418 category = self.cms.uint32(0),
419 cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff90"),
420 variable = self.cms.string(
"pt"),
423 verbosity = self.cms.int32(0)
426 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VVLoose = self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VLoose.clone()
427 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VVLoose.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff95")
428 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2Loose = self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VLoose.clone()
429 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2Loose.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff80")
430 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2Medium = self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VLoose.clone()
431 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2Medium.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff70")
432 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2Tight = self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VLoose.clone()
433 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2Tight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff60")
434 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VTight = self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VLoose.clone()
435 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VTight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff50")
436 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VVTight = self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VLoose.clone()
437 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VVTight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff40")
440 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2raw,
441 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VLoose,
442 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VVLoose,
443 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2Loose,
444 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2Medium,
445 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2Tight,
446 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VTight,
447 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VVTight
452 tauIDSources.byIsolationMVArun2017v2DBoldDMdR0p3wLTraw2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2raw')
453 tauIDSources.byVVLooseIsolationMVArun2017v2DBoldDMdR0p3wLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VVLoose')
454 tauIDSources.byVLooseIsolationMVArun2017v2DBoldDMdR0p3wLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VLoose')
455 tauIDSources.byLooseIsolationMVArun2017v2DBoldDMdR0p3wLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2Loose')
456 tauIDSources.byMediumIsolationMVArun2017v2DBoldDMdR0p3wLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2Medium')
457 tauIDSources.byTightIsolationMVArun2017v2DBoldDMdR0p3wLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2Tight')
458 tauIDSources.byVTightIsolationMVArun2017v2DBoldDMdR0p3wLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VTight')
459 tauIDSources.byVVTightIsolationMVArun2017v2DBoldDMdR0p3wLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VVTight')
488 if "2016v1" in self.
toKeep:
489 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1raw = patDiscriminationByIsolationMVArun2v1raw.clone(
490 PATTauProducer = self.cms.InputTag(
'slimmedTaus'),
491 Prediscriminants = noPrediscriminants,
492 loadMVAfromDB = self.cms.bool(
True),
493 mvaName = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2016v1"),
494 mvaOpt = self.cms.string(
"DBoldDMwLT"),
495 verbosity = self.cms.int32(0)
498 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1VLoose = patDiscriminationByIsolationMVArun2v1VLoose.clone(
499 PATTauProducer = self.cms.InputTag(
'slimmedTaus'),
500 Prediscriminants = noPrediscriminants,
501 toMultiplex = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2v1raw'),
502 key = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2v1raw:category'),
503 loadMVAfromDB = self.cms.bool(
True),
504 mvaOutput_normalization = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2016v1_mvaOutput_normalization"),
505 mapping = self.cms.VPSet(
507 category = self.cms.uint32(0),
508 cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2016v1_WPEff90"),
509 variable = self.cms.string(
"pt"),
514 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1Loose = self.process.rerunDiscriminationByIsolationOldDMMVArun2v1VLoose.clone()
515 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1Loose.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2016v1_WPEff80")
516 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1Medium = self.process.rerunDiscriminationByIsolationOldDMMVArun2v1VLoose.clone()
517 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1Medium.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2016v1_WPEff70")
518 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1Tight = self.process.rerunDiscriminationByIsolationOldDMMVArun2v1VLoose.clone()
519 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1Tight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2016v1_WPEff60")
520 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1VTight = self.process.rerunDiscriminationByIsolationOldDMMVArun2v1VLoose.clone()
521 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1VTight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2016v1_WPEff50")
522 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1VVTight = self.process.rerunDiscriminationByIsolationOldDMMVArun2v1VLoose.clone()
523 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1VVTight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2016v1_WPEff40")
526 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1raw,
527 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1VLoose,
528 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1Loose,
529 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1Medium,
530 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1Tight,
531 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1VTight,
532 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1VVTight
537 tauIDSources.byIsolationMVArun2v1DBoldDMwLTraw2016 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2v1raw')
538 tauIDSources.byVLooseIsolationMVArun2v1DBoldDMwLT2016 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2v1VLoose')
539 tauIDSources.byLooseIsolationMVArun2v1DBoldDMwLT2016 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2v1Loose')
540 tauIDSources.byMediumIsolationMVArun2v1DBoldDMwLT2016 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2v1Medium')
541 tauIDSources.byTightIsolationMVArun2v1DBoldDMwLT2016 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2v1Tight')
542 tauIDSources.byVTightIsolationMVArun2v1DBoldDMwLT2016 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2v1VTight')
543 tauIDSources.byVVTightIsolationMVArun2v1DBoldDMwLT2016 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2v1VVTight')
546 if "newDM2016v1" in self.
toKeep:
547 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1raw = patDiscriminationByIsolationMVArun2v1raw.clone(
548 PATTauProducer = self.cms.InputTag(
'slimmedTaus'),
549 Prediscriminants = noPrediscriminants,
550 loadMVAfromDB = self.cms.bool(
True),
551 mvaName = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2016v1"),
552 mvaOpt = self.cms.string(
"DBnewDMwLT"),
553 verbosity = self.cms.int32(0)
556 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1VLoose = patDiscriminationByIsolationMVArun2v1VLoose.clone(
557 PATTauProducer = self.cms.InputTag(
'slimmedTaus'),
558 Prediscriminants = noPrediscriminants,
559 toMultiplex = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2v1raw'),
560 key = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2v1raw:category'),
561 loadMVAfromDB = self.cms.bool(
True),
562 mvaOutput_normalization = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2016v1_mvaOutput_normalization"),
563 mapping = self.cms.VPSet(
565 category = self.cms.uint32(0),
566 cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2016v1_WPEff90"),
567 variable = self.cms.string(
"pt"),
572 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1Loose = self.process.rerunDiscriminationByIsolationNewDMMVArun2v1VLoose.clone()
573 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1Loose.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2016v1_WPEff80")
574 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1Medium = self.process.rerunDiscriminationByIsolationNewDMMVArun2v1VLoose.clone()
575 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1Medium.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2016v1_WPEff70")
576 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1Tight = self.process.rerunDiscriminationByIsolationNewDMMVArun2v1VLoose.clone()
577 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1Tight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2016v1_WPEff60")
578 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1VTight = self.process.rerunDiscriminationByIsolationNewDMMVArun2v1VLoose.clone()
579 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1VTight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2016v1_WPEff50")
580 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1VVTight = self.process.rerunDiscriminationByIsolationNewDMMVArun2v1VLoose.clone()
581 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1VVTight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2016v1_WPEff40")
584 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1raw,
585 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1VLoose,
586 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1Loose,
587 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1Medium,
588 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1Tight,
589 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1VTight,
590 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1VVTight
595 tauIDSources.byIsolationMVArun2v1DBnewDMwLTraw2016 = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2v1raw')
596 tauIDSources.byVLooseIsolationMVArun2v1DBnewDMwLT2016 = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2v1VLoose')
597 tauIDSources.byLooseIsolationMVArun2v1DBnewDMwLT2016 = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2v1Loose')
598 tauIDSources.byMediumIsolationMVArun2v1DBnewDMwLT2016 = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2v1Medium')
599 tauIDSources.byTightIsolationMVArun2v1DBnewDMwLT2016 = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2v1Tight')
600 tauIDSources.byVTightIsolationMVArun2v1DBnewDMwLT2016 = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2v1VTight')
601 tauIDSources.byVVTightIsolationMVArun2v1DBnewDMwLT2016 = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2v1VVTight')
603 if "deepTau2017v1" in self.
toKeep:
604 if self.
debug:
print (
"Adding DeepTau IDs")
608 "VVVLoose" : 0.96424,
618 "VVVLoose" : 0.959619,
619 "VVLoose" : 0.997687,
639 file_names = [
'RecoTauTag/TrainingFiles/data/DeepTauId/deepTau_2017v1_20L1024N_quantized.pb']
640 self.process.deepTau2017v1 = self.cms.EDProducer(
"DeepTauId",
641 electrons = self.cms.InputTag(
'slimmedElectrons'),
642 muons = self.cms.InputTag(
'slimmedMuons'),
643 taus = self.cms.InputTag(
'slimmedTaus'),
644 pfcands = self.cms.InputTag(
'packedPFCandidates'),
645 vertices = self.cms.InputTag(
'offlineSlimmedPrimaryVertices'),
646 rho = self.cms.InputTag(
'fixedGridRhoAll'),
647 graph_file = self.cms.vstring(file_names),
648 mem_mapped = self.cms.bool(
False),
650 debug_level = self.cms.int32(0),
651 disable_dxy_pca = self.cms.bool(
False)
656 self.process.rerunMvaIsolationTask.add(self.process.deepTau2017v1)
657 self.process.rerunMvaIsolationSequence += self.process.deepTau2017v1
659 if "deepTau2017v2" in self.
toKeep:
660 if self.
debug:
print (
"Adding DeepTau IDs")
664 "VVVLoose": 0.0630386,
665 "VVLoose": 0.1686942,
671 "VVTight": 0.9928449,
680 "VVVLoose": 0.2599605,
681 "VVLoose": 0.4249705,
687 "VVTight": 0.9733927,
692 'core:RecoTauTag/TrainingFiles/data/DeepTauId/deepTau_2017v2p6_e6_core.pb',
693 'inner:RecoTauTag/TrainingFiles/data/DeepTauId/deepTau_2017v2p6_e6_inner.pb',
694 'outer:RecoTauTag/TrainingFiles/data/DeepTauId/deepTau_2017v2p6_e6_outer.pb',
696 self.process.deepTau2017v2 = self.cms.EDProducer(
"DeepTauId",
697 electrons = self.cms.InputTag(
'slimmedElectrons'),
698 muons = self.cms.InputTag(
'slimmedMuons'),
699 taus = self.cms.InputTag(
'slimmedTaus'),
700 pfcands = self.cms.InputTag(
'packedPFCandidates'),
701 vertices = self.cms.InputTag(
'offlineSlimmedPrimaryVertices'),
702 rho = self.cms.InputTag(
'fixedGridRhoAll'),
703 graph_file = self.cms.vstring(file_names),
704 mem_mapped = self.cms.bool(
True),
706 debug_level = self.cms.int32(0),
707 disable_dxy_pca = self.cms.bool(
False)
712 self.process.rerunMvaIsolationTask.add(self.process.deepTau2017v2)
713 self.process.rerunMvaIsolationSequence += self.process.deepTau2017v2
715 if "deepTau2017v2p1" in self.
toKeep:
716 if self.
debug:
print (
"Adding DeepTau IDs")
720 "VVVLoose": 0.0630386,
721 "VVLoose": 0.1686942,
727 "VVTight": 0.9928449,
736 "VVVLoose": 0.2599605,
737 "VVLoose": 0.4249705,
743 "VVTight": 0.9733927,
748 'core:RecoTauTag/TrainingFiles/data/DeepTauId/deepTau_2017v2p6_e6_core.pb',
749 'inner:RecoTauTag/TrainingFiles/data/DeepTauId/deepTau_2017v2p6_e6_inner.pb',
750 'outer:RecoTauTag/TrainingFiles/data/DeepTauId/deepTau_2017v2p6_e6_outer.pb',
752 self.process.deepTau2017v2p1 = self.cms.EDProducer(
"DeepTauId",
753 electrons = self.cms.InputTag(
'slimmedElectrons'),
754 muons = self.cms.InputTag(
'slimmedMuons'),
755 taus = self.cms.InputTag(
'slimmedTaus'),
756 pfcands = self.cms.InputTag(
'packedPFCandidates'),
757 vertices = self.cms.InputTag(
'offlineSlimmedPrimaryVertices'),
758 rho = self.cms.InputTag(
'fixedGridRhoAll'),
759 graph_file = self.cms.vstring(file_names),
760 mem_mapped = self.cms.bool(
True),
762 debug_level = self.cms.int32(0),
763 disable_dxy_pca = self.cms.bool(
True)
768 self.process.rerunMvaIsolationTask.add(self.process.deepTau2017v2p1)
769 self.process.rerunMvaIsolationSequence += self.process.deepTau2017v2p1
771 if "DPFTau_2016_v0" in self.
toKeep:
772 if self.
debug:
print (
"Adding DPFTau isolation (v0)")
776 "Tight" :
"if(decayMode == 0) return (0.898328 - 0.000160992 * pt);" + \
777 "if(decayMode == 1) return (0.910138 - 0.000229923 * pt);" + \
778 "if(decayMode == 10) return (0.873958 - 0.0002328 * pt);" + \
788 file_names = [
'RecoTauTag/TrainingFiles/data/DPFTauId/DPFIsolation_2017v0_quantized.pb' ]
789 self.process.dpfTau2016v0 = self.cms.EDProducer(
"DPFIsolation",
790 pfcands = self.cms.InputTag(
'packedPFCandidates'),
791 taus = self.cms.InputTag(
'slimmedTaus'),
792 vertices = self.cms.InputTag(
'offlineSlimmedPrimaryVertices'),
793 graph_file = self.cms.vstring(file_names),
795 mem_mapped = self.cms.bool(
False)
800 self.process.rerunMvaIsolationTask.add(self.process.dpfTau2016v0)
801 self.process.rerunMvaIsolationSequence += self.process.dpfTau2016v0
804 if "DPFTau_2016_v1" in self.
toKeep:
805 print (
"Adding DPFTau isolation (v1)")
806 print (
"WARNING: WPs are not defined for DPFTau_2016_v1")
807 print (
"WARNING: The score of DPFTau_2016_v1 is inverted: i.e. for Sig->0, for Bkg->1 with -1 for undefined input (preselection not passed).")
810 "all": {
"Tight" : 0.123}
813 file_names = [
'RecoTauTag/TrainingFiles/data/DPFTauId/DPFIsolation_2017v1_quantized.pb' ]
814 self.process.dpfTau2016v1 = self.cms.EDProducer(
"DPFIsolation",
815 pfcands = self.cms.InputTag(
'packedPFCandidates'),
816 taus = self.cms.InputTag(
'slimmedTaus'),
817 vertices = self.cms.InputTag(
'offlineSlimmedPrimaryVertices'),
818 graph_file = self.cms.vstring(file_names),
820 mem_mapped = self.cms.bool(
False)
825 self.process.rerunMvaIsolationTask.add(self.process.dpfTau2016v1)
826 self.process.rerunMvaIsolationSequence += self.process.dpfTau2016v1
828 if "againstEle2018" in self.
toKeep:
829 antiElectronDiscrMVA6_version =
"MVA6v3_noeveto" 832 from RecoTauTag.RecoTau.PATTauDiscriminationAgainstElectronMVA6_cfi
import patTauDiscriminationAgainstElectronMVA6
833 self.process.patTauDiscriminationByElectronRejectionMVA62018Raw = patTauDiscriminationAgainstElectronMVA6.clone(
834 Prediscriminants = noPrediscriminants,
835 vetoEcalCracks = self.cms.bool(
False),
836 mvaName_NoEleMatch_wGwoGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_BL',
837 mvaName_NoEleMatch_wGwoGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_EC',
838 mvaName_NoEleMatch_woGwoGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_BL',
839 mvaName_NoEleMatch_woGwoGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_EC',
840 mvaName_wGwGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_BL',
841 mvaName_wGwGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_EC',
842 mvaName_woGwGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_BL',
843 mvaName_woGwGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_EC' 848 self.process.patTauDiscriminationByVLooseElectronRejectionMVA62018 = patTauDiscriminantCutMultiplexer.clone(
849 PATTauProducer = self.process.patTauDiscriminationByElectronRejectionMVA62018Raw.PATTauProducer,
850 Prediscriminants = self.process.patTauDiscriminationByElectronRejectionMVA62018Raw.Prediscriminants,
851 toMultiplex = self.cms.InputTag(
"patTauDiscriminationByElectronRejectionMVA62018Raw"),
852 key = self.cms.InputTag(
"patTauDiscriminationByElectronRejectionMVA62018Raw",
"category"),
853 mapping = self.cms.VPSet(
855 category = self.cms.uint32(0),
856 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_BL_WPeff98'),
857 variable = self.cms.string(
'pt')
860 category = self.cms.uint32(2),
861 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_BL_WPeff98'),
862 variable = self.cms.string(
'pt')
865 category = self.cms.uint32(5),
866 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_BL_WPeff98'),
867 variable = self.cms.string(
'pt')
870 category = self.cms.uint32(7),
871 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_BL_WPeff98'),
872 variable = self.cms.string(
'pt')
875 category = self.cms.uint32(8),
876 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_EC_WPeff98'),
877 variable = self.cms.string(
'pt')
880 category = self.cms.uint32(10),
881 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_EC_WPeff98'),
882 variable = self.cms.string(
'pt')
885 category = self.cms.uint32(13),
886 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_EC_WPeff98'),
887 variable = self.cms.string(
'pt')
890 category = self.cms.uint32(15),
891 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_EC_WPeff98'),
892 variable = self.cms.string(
'pt')
897 self.process.patTauDiscriminationByLooseElectronRejectionMVA62018 = self.process.patTauDiscriminationByVLooseElectronRejectionMVA62018.clone(
898 mapping = self.cms.VPSet(
900 category = self.cms.uint32(0),
901 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_BL_WPeff90'),
902 variable = self.cms.string(
'pt')
905 category = self.cms.uint32(2),
906 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_BL_WPeff90'),
907 variable = self.cms.string(
'pt')
910 category = self.cms.uint32(5),
911 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_BL_WPeff90'),
912 variable = self.cms.string(
'pt')
915 category = self.cms.uint32(7),
916 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_BL_WPeff90'),
917 variable = self.cms.string(
'pt')
920 category = self.cms.uint32(8),
921 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_EC_WPeff90'),
922 variable = self.cms.string(
'pt')
925 category = self.cms.uint32(10),
926 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_EC_WPeff90'),
927 variable = self.cms.string(
'pt')
930 category = self.cms.uint32(13),
931 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_EC_WPeff90'),
932 variable = self.cms.string(
'pt')
935 category = self.cms.uint32(15),
936 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_EC_WPeff90'),
937 variable = self.cms.string(
'pt')
942 self.process.patTauDiscriminationByMediumElectronRejectionMVA62018 = self.process.patTauDiscriminationByVLooseElectronRejectionMVA62018.clone(
943 mapping = self.cms.VPSet(
945 category = self.cms.uint32(0),
946 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_BL_WPeff80'),
947 variable = self.cms.string(
'pt')
950 category = self.cms.uint32(2),
951 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_BL_WPeff80'),
952 variable = self.cms.string(
'pt')
955 category = self.cms.uint32(5),
956 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_BL_WPeff80'),
957 variable = self.cms.string(
'pt')
960 category = self.cms.uint32(7),
961 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_BL_WPeff80'),
962 variable = self.cms.string(
'pt')
965 category = self.cms.uint32(8),
966 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_EC_WPeff80'),
967 variable = self.cms.string(
'pt')
970 category = self.cms.uint32(10),
971 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_EC_WPeff80'),
972 variable = self.cms.string(
'pt')
975 category = self.cms.uint32(13),
976 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_EC_WPeff80'),
977 variable = self.cms.string(
'pt')
980 category = self.cms.uint32(15),
981 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_EC_WPeff80'),
982 variable = self.cms.string(
'pt')
987 self.process.patTauDiscriminationByTightElectronRejectionMVA62018 = self.process.patTauDiscriminationByVLooseElectronRejectionMVA62018.clone(
988 mapping = self.cms.VPSet(
990 category = self.cms.uint32(0),
991 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_BL_WPeff70'),
992 variable = self.cms.string(
'pt')
995 category = self.cms.uint32(2),
996 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_BL_WPeff70'),
997 variable = self.cms.string(
'pt')
1000 category = self.cms.uint32(5),
1001 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_BL_WPeff70'),
1002 variable = self.cms.string(
'pt')
1005 category = self.cms.uint32(7),
1006 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_BL_WPeff70'),
1007 variable = self.cms.string(
'pt')
1010 category = self.cms.uint32(8),
1011 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_EC_WPeff70'),
1012 variable = self.cms.string(
'pt')
1015 category = self.cms.uint32(10),
1016 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_EC_WPeff70'),
1017 variable = self.cms.string(
'pt')
1020 category = self.cms.uint32(13),
1021 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_EC_WPeff70'),
1022 variable = self.cms.string(
'pt')
1025 category = self.cms.uint32(15),
1026 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_EC_WPeff70'),
1027 variable = self.cms.string(
'pt')
1032 self.process.patTauDiscriminationByVTightElectronRejectionMVA62018 = self.process.patTauDiscriminationByVLooseElectronRejectionMVA62018.clone(
1033 mapping = self.cms.VPSet(
1035 category = self.cms.uint32(0),
1036 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_BL_WPeff60'),
1037 variable = self.cms.string(
'pt')
1040 category = self.cms.uint32(2),
1041 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_BL_WPeff60'),
1042 variable = self.cms.string(
'pt')
1045 category = self.cms.uint32(5),
1046 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_BL_WPeff60'),
1047 variable = self.cms.string(
'pt')
1050 category = self.cms.uint32(7),
1051 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_BL_WPeff60'),
1052 variable = self.cms.string(
'pt')
1055 category = self.cms.uint32(8),
1056 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_EC_WPeff60'),
1057 variable = self.cms.string(
'pt')
1060 category = self.cms.uint32(10),
1061 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_EC_WPeff60'),
1062 variable = self.cms.string(
'pt')
1065 category = self.cms.uint32(13),
1066 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_EC_WPeff60'),
1067 variable = self.cms.string(
'pt')
1070 category = self.cms.uint32(15),
1071 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_EC_WPeff60'),
1072 variable = self.cms.string(
'pt')
1077 self.process.patTauDiscriminationByElectronRejectionMVA62018Task = self.cms.Task(
1078 self.process.patTauDiscriminationByElectronRejectionMVA62018Raw,
1079 self.process.patTauDiscriminationByVLooseElectronRejectionMVA62018,
1080 self.process.patTauDiscriminationByLooseElectronRejectionMVA62018,
1081 self.process.patTauDiscriminationByMediumElectronRejectionMVA62018,
1082 self.process.patTauDiscriminationByTightElectronRejectionMVA62018,
1083 self.process.patTauDiscriminationByVTightElectronRejectionMVA62018
1085 self.process.patTauDiscriminationByElectronRejectionMVA62018Seq = self.cms.Sequence(self.process.patTauDiscriminationByElectronRejectionMVA62018Task)
1086 self.process.rerunMvaIsolationTask.add(self.process.patTauDiscriminationByElectronRejectionMVA62018Task)
1087 self.process.rerunMvaIsolationSequence += self.process.patTauDiscriminationByElectronRejectionMVA62018Seq
1089 _againstElectronTauIDSources = self.cms.PSet(
1090 againstElectronMVA6Raw2018 = self.cms.InputTag(
"patTauDiscriminationByElectronRejectionMVA62018Raw"),
1091 againstElectronMVA6category2018 = self.cms.InputTag(
"patTauDiscriminationByElectronRejectionMVA62018Raw",
"category"),
1092 againstElectronVLooseMVA62018 = self.cms.InputTag(
"patTauDiscriminationByVLooseElectronRejectionMVA62018"),
1093 againstElectronLooseMVA62018 = self.cms.InputTag(
"patTauDiscriminationByLooseElectronRejectionMVA62018"),
1094 againstElectronMediumMVA62018 = self.cms.InputTag(
"patTauDiscriminationByMediumElectronRejectionMVA62018"),
1095 againstElectronTightMVA62018 = self.cms.InputTag(
"patTauDiscriminationByTightElectronRejectionMVA62018"),
1096 againstElectronVTightMVA62018 = self.cms.InputTag(
"patTauDiscriminationByVTightElectronRejectionMVA62018")
1098 _tauIDSourcesWithAgainistEle = self.cms.PSet(
1099 tauIDSources.clone(),
1100 _againstElectronTauIDSources
1102 tauIDSources =_tauIDSourcesWithAgainistEle.clone()
1107 embedID = self.cms.EDProducer(
"PATTauIDEmbedder",
1108 src = self.cms.InputTag(
'slimmedTaus'),
1109 tauIDSources = tauIDSources
1113 tauIDSources = self.cms.PSet(
tauIdDiscrMVA_2017_version
def is_above_cmssw_version(klass, release=9, subversion=4, patch=0, debug=False)
def getDeepTauVersion(self, file_name)
tauIdDiscrMVA_WPs_run2_2017
tauIdDiscrMVA_trainings_run2_2017
def getDpfTauVersion(self, file_name)
def loadMVA_WPs_run2_2017(self)
S & print(S &os, JobReport::InputFile const &f)
rerunIsolationOldDMMVArun2016v1Task
def processDeepProducer(self, producer_name, tauIDSources, workingPoints_)
rerunIsolationNewDMMVArun2017v2Task
rerunIsolationOldDMdR0p3MVArun2017v2Task
rerunIsolationOldDMMVArun2017v2Task
rerunIsolationOldDMMVArun2017v1Task
rerunIsolationNewDMMVArun2016v1Task