116 self.process.rerunMvaIsolationTask = self.cms.Task()
117 self.process.rerunMvaIsolationSequence = self.cms.Sequence()
118 tauIDSources = self.cms.PSet()
121 if "2017v1" in self.
toKeep:
124 'tauIdMVAIsoDBoldDMwLT2017' :
"tauIdMVAIsoDBoldDMwLT2017",
127 'tauIdMVAIsoDBoldDMwLT2017' : {
128 'Eff95' :
"DBoldDMwLTEff95",
129 'Eff90' :
"DBoldDMwLTEff90",
130 'Eff80' :
"DBoldDMwLTEff80",
131 'Eff70' :
"DBoldDMwLTEff70",
132 'Eff60' :
"DBoldDMwLTEff60",
133 'Eff50' :
"DBoldDMwLTEff50",
134 'Eff40' :
"DBoldDMwLTEff40" 139 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")
142 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1raw = patDiscriminationByIsolationMVArun2v1raw.clone(
143 PATTauProducer = self.cms.InputTag(
'slimmedTaus'),
144 Prediscriminants = noPrediscriminants,
145 loadMVAfromDB = self.cms.bool(
True),
146 mvaName = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1"),
147 mvaOpt = self.cms.string(
"DBoldDMwLTwGJ"),
148 verbosity = self.cms.int32(0)
151 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VLoose = patDiscriminationByIsolationMVArun2v1VLoose.clone(
152 PATTauProducer = self.cms.InputTag(
'slimmedTaus'),
153 Prediscriminants = noPrediscriminants,
154 toMultiplex = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v1raw'),
155 key = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v1raw:category'),
156 loadMVAfromDB = self.cms.bool(
True),
157 mvaOutput_normalization = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_mvaOutput_normalization"),
158 mapping = self.cms.VPSet(
160 category = self.cms.uint32(0),
161 cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff90"),
162 variable = self.cms.string(
"pt"),
167 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VVLoose = self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VLoose.clone()
168 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VVLoose.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff95")
169 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1Loose = self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VLoose.clone()
170 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1Loose.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff80")
171 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1Medium = self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VLoose.clone()
172 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1Medium.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff70")
173 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1Tight = self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VLoose.clone()
174 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1Tight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff60")
175 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VTight = self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VLoose.clone()
176 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VTight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff50")
177 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VVTight = self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VLoose.clone()
178 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VVTight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff40")
181 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1raw,
182 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VLoose,
183 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VVLoose,
184 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1Loose,
185 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1Medium,
186 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1Tight,
187 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VTight,
188 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v1VVTight
193 tauIDSources.byIsolationMVArun2017v1DBoldDMwLTraw2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v1raw')
194 tauIDSources.byVVLooseIsolationMVArun2017v1DBoldDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v1VVLoose')
195 tauIDSources.byVLooseIsolationMVArun2017v1DBoldDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v1VLoose')
196 tauIDSources.byLooseIsolationMVArun2017v1DBoldDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v1Loose')
197 tauIDSources.byMediumIsolationMVArun2017v1DBoldDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v1Medium')
198 tauIDSources.byTightIsolationMVArun2017v1DBoldDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v1Tight')
199 tauIDSources.byVTightIsolationMVArun2017v1DBoldDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v1VTight')
200 tauIDSources.byVVTightIsolationMVArun2017v1DBoldDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v1VVTight')
203 if "2017v2" in self.
toKeep:
206 'tauIdMVAIsoDBoldDMwLT2017' :
"tauIdMVAIsoDBoldDMwLT2017",
209 'tauIdMVAIsoDBoldDMwLT2017' : {
210 'Eff95' :
"DBoldDMwLTEff95",
211 'Eff90' :
"DBoldDMwLTEff90",
212 'Eff80' :
"DBoldDMwLTEff80",
213 'Eff70' :
"DBoldDMwLTEff70",
214 'Eff60' :
"DBoldDMwLTEff60",
215 'Eff50' :
"DBoldDMwLTEff50",
216 'Eff40' :
"DBoldDMwLTEff40" 221 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")
224 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2raw = patDiscriminationByIsolationMVArun2v1raw.clone(
225 PATTauProducer = self.cms.InputTag(
'slimmedTaus'),
226 Prediscriminants = noPrediscriminants,
227 loadMVAfromDB = self.cms.bool(
True),
228 mvaName = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2"),
229 mvaOpt = self.cms.string(
"DBoldDMwLTwGJ"),
230 verbosity = self.cms.int32(0)
233 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VLoose = patDiscriminationByIsolationMVArun2v1VLoose.clone(
234 PATTauProducer = self.cms.InputTag(
'slimmedTaus'),
235 Prediscriminants = noPrediscriminants,
236 toMultiplex = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v2raw'),
237 key = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v2raw:category'),
238 loadMVAfromDB = self.cms.bool(
True),
239 mvaOutput_normalization = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_mvaOutput_normalization"),
240 mapping = self.cms.VPSet(
242 category = self.cms.uint32(0),
243 cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff90"),
244 variable = self.cms.string(
"pt"),
247 verbosity = self.cms.int32(0)
250 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VVLoose = self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VLoose.clone()
251 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VVLoose.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff95")
252 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2Loose = self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VLoose.clone()
253 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2Loose.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff80")
254 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2Medium = self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VLoose.clone()
255 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2Medium.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff70")
256 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2Tight = self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VLoose.clone()
257 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2Tight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff60")
258 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VTight = self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VLoose.clone()
259 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VTight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff50")
260 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VVTight = self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VLoose.clone()
261 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VVTight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff40")
264 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2raw,
265 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VLoose,
266 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VVLoose,
267 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2Loose,
268 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2Medium,
269 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2Tight,
270 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VTight,
271 self.process.rerunDiscriminationByIsolationOldDMMVArun2017v2VVTight
276 tauIDSources.byIsolationMVArun2017v2DBoldDMwLTraw2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v2raw')
277 tauIDSources.byVVLooseIsolationMVArun2017v2DBoldDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v2VVLoose')
278 tauIDSources.byVLooseIsolationMVArun2017v2DBoldDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v2VLoose')
279 tauIDSources.byLooseIsolationMVArun2017v2DBoldDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v2Loose')
280 tauIDSources.byMediumIsolationMVArun2017v2DBoldDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v2Medium')
281 tauIDSources.byTightIsolationMVArun2017v2DBoldDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v2Tight')
282 tauIDSources.byVTightIsolationMVArun2017v2DBoldDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v2VTight')
283 tauIDSources.byVVTightIsolationMVArun2017v2DBoldDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2017v2VVTight')
285 if "newDM2017v2" in self.
toKeep:
288 'tauIdMVAIsoDBnewDMwLT2017' :
"tauIdMVAIsoDBnewDMwLT2017",
291 'tauIdMVAIsoDBnewDMwLT2017' : {
292 'Eff95' :
"DBnewDMwLTEff95",
293 'Eff90' :
"DBnewDMwLTEff90",
294 'Eff80' :
"DBnewDMwLTEff80",
295 'Eff70' :
"DBnewDMwLTEff70",
296 'Eff60' :
"DBnewDMwLTEff60",
297 'Eff50' :
"DBnewDMwLTEff50",
298 'Eff40' :
"DBnewDMwLTEff40" 303 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")
306 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2raw = patDiscriminationByIsolationMVArun2v1raw.clone(
307 PATTauProducer = self.cms.InputTag(
'slimmedTaus'),
308 Prediscriminants = noPrediscriminants,
309 loadMVAfromDB = self.cms.bool(
True),
310 mvaName = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2"),
311 mvaOpt = self.cms.string(
"DBnewDMwLTwGJ"),
312 verbosity = self.cms.int32(0)
315 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VLoose = patDiscriminationByIsolationMVArun2v1VLoose.clone(
316 PATTauProducer = self.cms.InputTag(
'slimmedTaus'),
317 Prediscriminants = noPrediscriminants,
318 toMultiplex = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2017v2raw'),
319 key = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2017v2raw:category'),
320 loadMVAfromDB = self.cms.bool(
True),
321 mvaOutput_normalization = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_mvaOutput_normalization"),
322 mapping = self.cms.VPSet(
324 category = self.cms.uint32(0),
325 cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff90"),
326 variable = self.cms.string(
"pt"),
329 verbosity = self.cms.int32(0)
332 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VVLoose = self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VLoose.clone()
333 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VVLoose.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff95")
334 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2Loose = self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VLoose.clone()
335 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2Loose.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff80")
336 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2Medium = self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VLoose.clone()
337 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2Medium.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff70")
338 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2Tight = self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VLoose.clone()
339 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2Tight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff60")
340 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VTight = self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VLoose.clone()
341 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VTight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff50")
342 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VVTight = self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VLoose.clone()
343 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VVTight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff40")
346 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2raw,
347 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VLoose,
348 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VVLoose,
349 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2Loose,
350 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2Medium,
351 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2Tight,
352 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VTight,
353 self.process.rerunDiscriminationByIsolationNewDMMVArun2017v2VVTight
358 tauIDSources.byIsolationMVArun2017v2DBnewDMwLTraw2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2017v2raw')
359 tauIDSources.byVVLooseIsolationMVArun2017v2DBnewDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2017v2VVLoose')
360 tauIDSources.byVLooseIsolationMVArun2017v2DBnewDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2017v2VLoose')
361 tauIDSources.byLooseIsolationMVArun2017v2DBnewDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2017v2Loose')
362 tauIDSources.byMediumIsolationMVArun2017v2DBnewDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2017v2Medium')
363 tauIDSources.byTightIsolationMVArun2017v2DBnewDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2017v2Tight')
364 tauIDSources.byVTightIsolationMVArun2017v2DBnewDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2017v2VTight')
365 tauIDSources.byVVTightIsolationMVArun2017v2DBnewDMwLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2017v2VVTight')
367 if "dR0p32017v2" in self.
toKeep:
370 'tauIdMVAIsoDBoldDMdR0p3wLT2017' :
"tauIdMVAIsoDBoldDMdR0p3wLT2017",
373 'tauIdMVAIsoDBoldDMdR0p3wLT2017' : {
374 'Eff95' :
"DBoldDMdR0p3wLTEff95",
375 'Eff90' :
"DBoldDMdR0p3wLTEff90",
376 'Eff80' :
"DBoldDMdR0p3wLTEff80",
377 'Eff70' :
"DBoldDMdR0p3wLTEff70",
378 'Eff60' :
"DBoldDMdR0p3wLTEff60",
379 'Eff50' :
"DBoldDMdR0p3wLTEff50",
380 'Eff40' :
"DBoldDMdR0p3wLTEff40" 385 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")
388 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2raw = patDiscriminationByIsolationMVArun2v1raw.clone(
389 PATTauProducer = self.cms.InputTag(
'slimmedTaus'),
390 Prediscriminants = noPrediscriminants,
391 loadMVAfromDB = self.cms.bool(
True),
392 mvaName = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2"),
393 mvaOpt = self.cms.string(
"DBoldDMwLTwGJ"),
394 srcChargedIsoPtSum = self.cms.string(
'chargedIsoPtSumdR03'),
395 srcFootprintCorrection = self.cms.string(
'footprintCorrectiondR03'),
396 srcNeutralIsoPtSum = self.cms.string(
'neutralIsoPtSumdR03'),
397 srcPhotonPtSumOutsideSignalCone = self.cms.string(
'photonPtSumOutsideSignalConedR03'),
398 verbosity = self.cms.int32(0)
401 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VLoose = patDiscriminationByIsolationMVArun2v1VLoose.clone(
402 PATTauProducer = self.cms.InputTag(
'slimmedTaus'),
403 Prediscriminants = noPrediscriminants,
404 toMultiplex = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2raw'),
405 key = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2raw:category'),
406 loadMVAfromDB = self.cms.bool(
True),
407 mvaOutput_normalization = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_mvaOutput_normalization"),
408 mapping = self.cms.VPSet(
410 category = self.cms.uint32(0),
411 cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff90"),
412 variable = self.cms.string(
"pt"),
415 verbosity = self.cms.int32(0)
418 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VVLoose = self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VLoose.clone()
419 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VVLoose.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff95")
420 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2Loose = self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VLoose.clone()
421 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2Loose.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff80")
422 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2Medium = self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VLoose.clone()
423 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2Medium.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff70")
424 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2Tight = self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VLoose.clone()
425 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2Tight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff60")
426 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VTight = self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VLoose.clone()
427 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VTight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff50")
428 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VVTight = self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VLoose.clone()
429 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VVTight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff40")
432 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2raw,
433 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VLoose,
434 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VVLoose,
435 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2Loose,
436 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2Medium,
437 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2Tight,
438 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VTight,
439 self.process.rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VVTight
444 tauIDSources.byIsolationMVArun2017v2DBoldDMdR0p3wLTraw2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2raw')
445 tauIDSources.byVVLooseIsolationMVArun2017v2DBoldDMdR0p3wLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VVLoose')
446 tauIDSources.byVLooseIsolationMVArun2017v2DBoldDMdR0p3wLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VLoose')
447 tauIDSources.byLooseIsolationMVArun2017v2DBoldDMdR0p3wLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2Loose')
448 tauIDSources.byMediumIsolationMVArun2017v2DBoldDMdR0p3wLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2Medium')
449 tauIDSources.byTightIsolationMVArun2017v2DBoldDMdR0p3wLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2Tight')
450 tauIDSources.byVTightIsolationMVArun2017v2DBoldDMdR0p3wLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VTight')
451 tauIDSources.byVVTightIsolationMVArun2017v2DBoldDMdR0p3wLT2017 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMdR0p3MVArun2017v2VVTight')
480 if "2016v1" in self.
toKeep:
481 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1raw = patDiscriminationByIsolationMVArun2v1raw.clone(
482 PATTauProducer = self.cms.InputTag(
'slimmedTaus'),
483 Prediscriminants = noPrediscriminants,
484 loadMVAfromDB = self.cms.bool(
True),
485 mvaName = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2016v1"),
486 mvaOpt = self.cms.string(
"DBoldDMwLT"),
487 verbosity = self.cms.int32(0)
490 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1VLoose = patDiscriminationByIsolationMVArun2v1VLoose.clone(
491 PATTauProducer = self.cms.InputTag(
'slimmedTaus'),
492 Prediscriminants = noPrediscriminants,
493 toMultiplex = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2v1raw'),
494 key = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2v1raw:category'),
495 loadMVAfromDB = self.cms.bool(
True),
496 mvaOutput_normalization = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2016v1_mvaOutput_normalization"),
497 mapping = self.cms.VPSet(
499 category = self.cms.uint32(0),
500 cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2016v1_WPEff90"),
501 variable = self.cms.string(
"pt"),
506 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1Loose = self.process.rerunDiscriminationByIsolationOldDMMVArun2v1VLoose.clone()
507 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1Loose.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2016v1_WPEff80")
508 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1Medium = self.process.rerunDiscriminationByIsolationOldDMMVArun2v1VLoose.clone()
509 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1Medium.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2016v1_WPEff70")
510 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1Tight = self.process.rerunDiscriminationByIsolationOldDMMVArun2v1VLoose.clone()
511 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1Tight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2016v1_WPEff60")
512 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1VTight = self.process.rerunDiscriminationByIsolationOldDMMVArun2v1VLoose.clone()
513 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1VTight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2016v1_WPEff50")
514 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1VVTight = self.process.rerunDiscriminationByIsolationOldDMMVArun2v1VLoose.clone()
515 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1VVTight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2016v1_WPEff40")
518 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1raw,
519 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1VLoose,
520 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1Loose,
521 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1Medium,
522 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1Tight,
523 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1VTight,
524 self.process.rerunDiscriminationByIsolationOldDMMVArun2v1VVTight
529 tauIDSources.byIsolationMVArun2v1DBoldDMwLTraw2016 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2v1raw')
530 tauIDSources.byVLooseIsolationMVArun2v1DBoldDMwLT2016 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2v1VLoose')
531 tauIDSources.byLooseIsolationMVArun2v1DBoldDMwLT2016 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2v1Loose')
532 tauIDSources.byMediumIsolationMVArun2v1DBoldDMwLT2016 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2v1Medium')
533 tauIDSources.byTightIsolationMVArun2v1DBoldDMwLT2016 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2v1Tight')
534 tauIDSources.byVTightIsolationMVArun2v1DBoldDMwLT2016 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2v1VTight')
535 tauIDSources.byVVTightIsolationMVArun2v1DBoldDMwLT2016 = self.cms.InputTag(
'rerunDiscriminationByIsolationOldDMMVArun2v1VVTight')
538 if "newDM2016v1" in self.
toKeep:
539 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1raw = patDiscriminationByIsolationMVArun2v1raw.clone(
540 PATTauProducer = self.cms.InputTag(
'slimmedTaus'),
541 Prediscriminants = noPrediscriminants,
542 loadMVAfromDB = self.cms.bool(
True),
543 mvaName = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2016v1"),
544 mvaOpt = self.cms.string(
"DBnewDMwLT"),
545 verbosity = self.cms.int32(0)
548 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1VLoose = patDiscriminationByIsolationMVArun2v1VLoose.clone(
549 PATTauProducer = self.cms.InputTag(
'slimmedTaus'),
550 Prediscriminants = noPrediscriminants,
551 toMultiplex = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2v1raw'),
552 key = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2v1raw:category'),
553 loadMVAfromDB = self.cms.bool(
True),
554 mvaOutput_normalization = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2016v1_mvaOutput_normalization"),
555 mapping = self.cms.VPSet(
557 category = self.cms.uint32(0),
558 cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2016v1_WPEff90"),
559 variable = self.cms.string(
"pt"),
564 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1Loose = self.process.rerunDiscriminationByIsolationNewDMMVArun2v1VLoose.clone()
565 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1Loose.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2016v1_WPEff80")
566 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1Medium = self.process.rerunDiscriminationByIsolationNewDMMVArun2v1VLoose.clone()
567 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1Medium.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2016v1_WPEff70")
568 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1Tight = self.process.rerunDiscriminationByIsolationNewDMMVArun2v1VLoose.clone()
569 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1Tight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2016v1_WPEff60")
570 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1VTight = self.process.rerunDiscriminationByIsolationNewDMMVArun2v1VLoose.clone()
571 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1VTight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2016v1_WPEff50")
572 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1VVTight = self.process.rerunDiscriminationByIsolationNewDMMVArun2v1VLoose.clone()
573 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1VVTight.mapping[0].cut = self.cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2016v1_WPEff40")
576 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1raw,
577 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1VLoose,
578 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1Loose,
579 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1Medium,
580 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1Tight,
581 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1VTight,
582 self.process.rerunDiscriminationByIsolationNewDMMVArun2v1VVTight
587 tauIDSources.byIsolationMVArun2v1DBnewDMwLTraw2016 = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2v1raw')
588 tauIDSources.byVLooseIsolationMVArun2v1DBnewDMwLT2016 = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2v1VLoose')
589 tauIDSources.byLooseIsolationMVArun2v1DBnewDMwLT2016 = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2v1Loose')
590 tauIDSources.byMediumIsolationMVArun2v1DBnewDMwLT2016 = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2v1Medium')
591 tauIDSources.byTightIsolationMVArun2v1DBnewDMwLT2016 = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2v1Tight')
592 tauIDSources.byVTightIsolationMVArun2v1DBnewDMwLT2016 = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2v1VTight')
593 tauIDSources.byVVTightIsolationMVArun2v1DBnewDMwLT2016 = self.cms.InputTag(
'rerunDiscriminationByIsolationNewDMMVArun2v1VVTight')
595 if "deepTau2017v1" in self.
toKeep:
596 print (
"Adding DeepTau IDs")
600 "VVVLoose" : 0.96424,
610 "VVVLoose" : 0.959619,
611 "VVLoose" : 0.997687,
631 file_name =
'RecoTauTag/TrainingFiles/data/DeepTauId/deepTau_2017v1_20L1024N_quantized.pb' 632 self.process.deepTau2017v1 = self.cms.EDProducer(
"DeepTauId",
633 electrons = self.cms.InputTag(
'slimmedElectrons'),
634 muons = self.cms.InputTag(
'slimmedMuons'),
635 taus = self.cms.InputTag(
'slimmedTaus'),
636 graph_file = self.cms.string(file_name),
637 mem_mapped = self.cms.bool(
False)
642 self.process.rerunMvaIsolationTask.add(self.process.deepTau2017v1)
643 self.process.rerunMvaIsolationSequence += self.process.deepTau2017v1
645 if "DPFTau_2016_v0" in self.
toKeep:
646 print (
"Adding DPFTau isolation (v0)")
650 "Tight" :
"if(decayMode == 0) return (0.898328 - 0.000160992 * pt);" + \
651 "if(decayMode == 1) return (0.910138 - 0.000229923 * pt);" + \
652 "if(decayMode == 10) return (0.873958 - 0.0002328 * pt);" + \
662 file_name =
'RecoTauTag/TrainingFiles/data/DPFTauId/DPFIsolation_2017v0_quantized.pb' 663 self.process.dpfTau2016v0 = self.cms.EDProducer(
"DPFIsolation",
664 pfcands = self.cms.InputTag(
'packedPFCandidates'),
665 taus = self.cms.InputTag(
'slimmedTaus'),
666 vertices = self.cms.InputTag(
'offlineSlimmedPrimaryVertices'),
667 graph_file = self.cms.string(file_name),
669 mem_mapped = self.cms.bool(
False)
674 self.process.rerunMvaIsolationTask.add(self.process.dpfTau2016v0)
675 self.process.rerunMvaIsolationSequence += self.process.dpfTau2016v0
678 if "DPFTau_2016_v1" in self.
toKeep:
679 print (
"Adding DPFTau isolation (v1)")
680 print (
"WARNING: WPs are not defined for DPFTau_2016_v1")
681 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).")
684 "all": {
"Tight" : 0.123}
687 file_name =
'RecoTauTag/TrainingFiles/data/DPFTauId/DPFIsolation_2017v1_quantized.pb' 688 self.process.dpfTau2016v1 = self.cms.EDProducer(
"DPFIsolation",
689 pfcands = self.cms.InputTag(
'packedPFCandidates'),
690 taus = self.cms.InputTag(
'slimmedTaus'),
691 vertices = self.cms.InputTag(
'offlineSlimmedPrimaryVertices'),
692 graph_file = self.cms.string(file_name),
694 mem_mapped = self.cms.bool(
False)
699 self.process.rerunMvaIsolationTask.add(self.process.dpfTau2016v1)
700 self.process.rerunMvaIsolationSequence += self.process.dpfTau2016v1
702 if "againstEle2018" in self.
toKeep:
703 antiElectronDiscrMVA6_version =
"MVA6v3_noeveto" 706 from RecoTauTag.RecoTau.PATTauDiscriminationAgainstElectronMVA6_cfi
import patTauDiscriminationAgainstElectronMVA6
707 self.process.patTauDiscriminationByElectronRejectionMVA62018Raw = patTauDiscriminationAgainstElectronMVA6.clone(
708 Prediscriminants = noPrediscriminants,
709 vetoEcalCracks = self.cms.bool(
False),
710 mvaName_NoEleMatch_wGwoGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_BL',
711 mvaName_NoEleMatch_wGwoGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_EC',
712 mvaName_NoEleMatch_woGwoGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_BL',
713 mvaName_NoEleMatch_woGwoGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_EC',
714 mvaName_wGwGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_BL',
715 mvaName_wGwGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_EC',
716 mvaName_woGwGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_BL',
717 mvaName_woGwGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_EC' 722 self.process.patTauDiscriminationByVLooseElectronRejectionMVA62018 = patTauDiscriminantCutMultiplexer.clone(
723 PATTauProducer = self.process.patTauDiscriminationByElectronRejectionMVA62018Raw.PATTauProducer,
724 Prediscriminants = self.process.patTauDiscriminationByElectronRejectionMVA62018Raw.Prediscriminants,
725 toMultiplex = self.cms.InputTag(
"patTauDiscriminationByElectronRejectionMVA62018Raw"),
726 key = self.cms.InputTag(
"patTauDiscriminationByElectronRejectionMVA62018Raw",
"category"),
727 mapping = self.cms.VPSet(
729 category = self.cms.uint32(0),
730 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_BL_WPeff98'),
731 variable = self.cms.string(
'pt')
734 category = self.cms.uint32(2),
735 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_BL_WPeff98'),
736 variable = self.cms.string(
'pt')
739 category = self.cms.uint32(5),
740 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_BL_WPeff98'),
741 variable = self.cms.string(
'pt')
744 category = self.cms.uint32(7),
745 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_BL_WPeff98'),
746 variable = self.cms.string(
'pt')
749 category = self.cms.uint32(8),
750 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_EC_WPeff98'),
751 variable = self.cms.string(
'pt')
754 category = self.cms.uint32(10),
755 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_EC_WPeff98'),
756 variable = self.cms.string(
'pt')
759 category = self.cms.uint32(13),
760 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_EC_WPeff98'),
761 variable = self.cms.string(
'pt')
764 category = self.cms.uint32(15),
765 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_EC_WPeff98'),
766 variable = self.cms.string(
'pt')
771 self.process.patTauDiscriminationByLooseElectronRejectionMVA62018 = self.process.patTauDiscriminationByVLooseElectronRejectionMVA62018.clone(
772 mapping = self.cms.VPSet(
774 category = self.cms.uint32(0),
775 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_BL_WPeff90'),
776 variable = self.cms.string(
'pt')
779 category = self.cms.uint32(2),
780 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_BL_WPeff90'),
781 variable = self.cms.string(
'pt')
784 category = self.cms.uint32(5),
785 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_BL_WPeff90'),
786 variable = self.cms.string(
'pt')
789 category = self.cms.uint32(7),
790 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_BL_WPeff90'),
791 variable = self.cms.string(
'pt')
794 category = self.cms.uint32(8),
795 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_EC_WPeff90'),
796 variable = self.cms.string(
'pt')
799 category = self.cms.uint32(10),
800 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_EC_WPeff90'),
801 variable = self.cms.string(
'pt')
804 category = self.cms.uint32(13),
805 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_EC_WPeff90'),
806 variable = self.cms.string(
'pt')
809 category = self.cms.uint32(15),
810 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_EC_WPeff90'),
811 variable = self.cms.string(
'pt')
816 self.process.patTauDiscriminationByMediumElectronRejectionMVA62018 = self.process.patTauDiscriminationByVLooseElectronRejectionMVA62018.clone(
817 mapping = self.cms.VPSet(
819 category = self.cms.uint32(0),
820 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_BL_WPeff80'),
821 variable = self.cms.string(
'pt')
824 category = self.cms.uint32(2),
825 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_BL_WPeff80'),
826 variable = self.cms.string(
'pt')
829 category = self.cms.uint32(5),
830 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_BL_WPeff80'),
831 variable = self.cms.string(
'pt')
834 category = self.cms.uint32(7),
835 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_BL_WPeff80'),
836 variable = self.cms.string(
'pt')
839 category = self.cms.uint32(8),
840 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_EC_WPeff80'),
841 variable = self.cms.string(
'pt')
844 category = self.cms.uint32(10),
845 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_EC_WPeff80'),
846 variable = self.cms.string(
'pt')
849 category = self.cms.uint32(13),
850 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_EC_WPeff80'),
851 variable = self.cms.string(
'pt')
854 category = self.cms.uint32(15),
855 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_EC_WPeff80'),
856 variable = self.cms.string(
'pt')
861 self.process.patTauDiscriminationByTightElectronRejectionMVA62018 = self.process.patTauDiscriminationByVLooseElectronRejectionMVA62018.clone(
862 mapping = self.cms.VPSet(
864 category = self.cms.uint32(0),
865 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_BL_WPeff70'),
866 variable = self.cms.string(
'pt')
869 category = self.cms.uint32(2),
870 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_BL_WPeff70'),
871 variable = self.cms.string(
'pt')
874 category = self.cms.uint32(5),
875 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_BL_WPeff70'),
876 variable = self.cms.string(
'pt')
879 category = self.cms.uint32(7),
880 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_BL_WPeff70'),
881 variable = self.cms.string(
'pt')
884 category = self.cms.uint32(8),
885 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_EC_WPeff70'),
886 variable = self.cms.string(
'pt')
889 category = self.cms.uint32(10),
890 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_EC_WPeff70'),
891 variable = self.cms.string(
'pt')
894 category = self.cms.uint32(13),
895 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_EC_WPeff70'),
896 variable = self.cms.string(
'pt')
899 category = self.cms.uint32(15),
900 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_EC_WPeff70'),
901 variable = self.cms.string(
'pt')
906 self.process.patTauDiscriminationByVTightElectronRejectionMVA62018 = self.process.patTauDiscriminationByVLooseElectronRejectionMVA62018.clone(
907 mapping = self.cms.VPSet(
909 category = self.cms.uint32(0),
910 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_BL_WPeff60'),
911 variable = self.cms.string(
'pt')
914 category = self.cms.uint32(2),
915 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_BL_WPeff60'),
916 variable = self.cms.string(
'pt')
919 category = self.cms.uint32(5),
920 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_BL_WPeff60'),
921 variable = self.cms.string(
'pt')
924 category = self.cms.uint32(7),
925 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_BL_WPeff60'),
926 variable = self.cms.string(
'pt')
929 category = self.cms.uint32(8),
930 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_EC_WPeff60'),
931 variable = self.cms.string(
'pt')
934 category = self.cms.uint32(10),
935 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_EC_WPeff60'),
936 variable = self.cms.string(
'pt')
939 category = self.cms.uint32(13),
940 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_EC_WPeff60'),
941 variable = self.cms.string(
'pt')
944 category = self.cms.uint32(15),
945 cut = self.cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_EC_WPeff60'),
946 variable = self.cms.string(
'pt')
951 self.process.patTauDiscriminationByElectronRejectionMVA62018Task = self.cms.Task(
952 self.process.patTauDiscriminationByElectronRejectionMVA62018Raw,
953 self.process.patTauDiscriminationByVLooseElectronRejectionMVA62018,
954 self.process.patTauDiscriminationByLooseElectronRejectionMVA62018,
955 self.process.patTauDiscriminationByMediumElectronRejectionMVA62018,
956 self.process.patTauDiscriminationByTightElectronRejectionMVA62018,
957 self.process.patTauDiscriminationByVTightElectronRejectionMVA62018
959 self.process.patTauDiscriminationByElectronRejectionMVA62018Seq = self.cms.Sequence(self.process.patTauDiscriminationByElectronRejectionMVA62018Task)
960 self.process.rerunMvaIsolationTask.add(self.process.patTauDiscriminationByElectronRejectionMVA62018Task)
961 self.process.rerunMvaIsolationSequence += self.process.patTauDiscriminationByElectronRejectionMVA62018Seq
963 _againstElectronTauIDSources = self.cms.PSet(
964 againstElectronMVA6Raw2018 = self.cms.InputTag(
"patTauDiscriminationByElectronRejectionMVA62018Raw"),
965 againstElectronMVA6category2018 = self.cms.InputTag(
"patTauDiscriminationByElectronRejectionMVA62018Raw",
"category"),
966 againstElectronVLooseMVA62018 = self.cms.InputTag(
"patTauDiscriminationByVLooseElectronRejectionMVA62018"),
967 againstElectronLooseMVA62018 = self.cms.InputTag(
"patTauDiscriminationByLooseElectronRejectionMVA62018"),
968 againstElectronMediumMVA62018 = self.cms.InputTag(
"patTauDiscriminationByMediumElectronRejectionMVA62018"),
969 againstElectronTightMVA62018 = self.cms.InputTag(
"patTauDiscriminationByTightElectronRejectionMVA62018"),
970 againstElectronVTightMVA62018 = self.cms.InputTag(
"patTauDiscriminationByVTightElectronRejectionMVA62018")
972 _tauIDSourcesWithAgainistEle = self.cms.PSet(
973 tauIDSources.clone(),
974 _againstElectronTauIDSources
976 tauIDSources =_tauIDSourcesWithAgainistEle.clone()
980 embedID = self.cms.EDProducer(
"PATTauIDEmbedder",
981 src = self.cms.InputTag(
'slimmedTaus'),
982 tauIDSources = tauIDSources
tauIdDiscrMVA_2017_version
def is_above_cmssw_version(klass, release=9, subversion=4, patch=0, debug=False)
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