1 import FWCore.ParameterSet.Config
as cms
14 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw = patDiscriminationByIsolationMVArun2v1raw.clone(
15 PATTauProducer = cms.InputTag(
'slimmedTaus'),
16 Prediscriminants = noPrediscriminants,
17 loadMVAfromDB = cms.bool(
True),
18 mvaName = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT"),
19 mvaOpt = cms.string(
"DBoldDMwLTwGJ"),
20 verbosity = cms.int32(0)
23 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT = patDiscriminationByIsolationMVArun2v1.clone(
24 PATTauProducer = cms.InputTag(
'slimmedTaus'),
25 Prediscriminants = noPrediscriminants,
26 toMultiplex = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw'),
27 loadMVAfromDB = cms.bool(
True),
28 mvaOutput_normalization = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT_mvaOutput_normalization"),
31 category = cms.uint32(0),
32 cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT"),
33 variable = cms.string(
"pt"),
36 workingPoints = cms.vstring(
47 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTTask = cms.Task(
48 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw,
49 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT
53 patTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw = patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw.clone(
54 mvaName = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT"),
55 mvaOpt = cms.string(
"DBnewDMwLTwGJ")
58 patTauDiscriminationByIsolationMVArun2v1DBnewDMwLT = patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT.clone(
59 toMultiplex = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw'),
60 mvaOutput_normalization = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT_mvaOutput_normalization"),
63 category = cms.uint32(0),
64 cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT"),
65 variable = cms.string(
"pt"),
70 patTauDiscriminationByIsolationMVArun2v1DBnewDMwLTTask = cms.Task(
71 patTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw,
72 patTauDiscriminationByIsolationMVArun2v1DBnewDMwLT
76 patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLTraw = patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw.clone(
77 mvaName = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT"),
78 mvaOpt = cms.string(
"DBoldDMwLTwGJ"),
79 srcChargedIsoPtSum = cms.string(
'chargedIsoPtSumdR03'),
80 srcFootprintCorrection = cms.string(
'footprintCorrectiondR03'),
81 srcNeutralIsoPtSum = cms.string(
'neutralIsoPtSumdR03'),
82 srcPUcorrPtSum = cms.string(
'puCorrPtSum'),
83 srcPhotonPtSumOutsideSignalCone = cms.string(
'photonPtSumOutsideSignalConedR03')
86 patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLT = patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT.clone(
87 toMultiplex = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLTraw'),
88 mvaOutput_normalization = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT_mvaOutput_normalization"),
91 category = cms.uint32(0),
92 cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT"),
93 variable = cms.string(
"pt"),
98 patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLTTask = cms.Task(
99 patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLTraw,
100 patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLT
105 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2017v1 = patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw.clone(
106 mvaName = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1"),
107 mvaOpt = cms.string(
"DBoldDMwLTwGJ")
110 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2017v1 = patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT.clone(
111 toMultiplex = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2017v1'),
112 mvaOutput_normalization = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_mvaOutput_normalization"),
115 category = cms.uint32(0),
116 cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1"),
117 variable = cms.string(
"pt"),
120 workingPoints = cms.vstring(
131 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2017v1Task = cms.Task(
132 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2017v1,
133 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2017v1
138 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2015 = patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw.clone(
139 mvaName = cms.string(
"RecoTauTag_tauIdMVADBoldDMwLTv1"),
140 mvaOpt = cms.string(
"DBoldDMwLT")
143 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2015 = patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT.clone(
144 toMultiplex = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2015'),
145 mvaOutput_normalization = cms.string(
"RecoTauTag_tauIdMVADBoldDMwLTv1_mvaOutput_normalization"),
148 category = cms.uint32(0),
149 cut = cms.string(
"RecoTauTag_tauIdMVADBoldDMwLTv1"),
150 variable = cms.string(
"pt"),
153 workingPoints = cms.vstring(
163 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2015Task = cms.Task(
164 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2015,
165 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2015
170 antiElectronDiscrMVA6_version =
"MVA"
173 patTauDiscriminationByElectronRejectionMVA62018Raw = patTauDiscriminationAgainstElectronMVA6.clone(
174 PATTauProducer =
'slimmedTaus',
175 Prediscriminants = noPrediscriminants,
176 srcElectrons =
'slimmedElectrons',
177 vetoEcalCracks =
False,
178 mvaName_NoEleMatch_wGwoGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_NoEleMatch_wGwoGSF_BL',
179 mvaName_NoEleMatch_wGwoGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_NoEleMatch_wGwoGSF_EC',
180 mvaName_NoEleMatch_woGwoGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_NoEleMatch_woGwoGSF_BL',
181 mvaName_NoEleMatch_woGwoGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_NoEleMatch_woGwoGSF_EC',
182 mvaName_wGwGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_wGwGSF_BL',
183 mvaName_wGwGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_wGwGSF_EC',
184 mvaName_woGwGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_woGwGSF_BL',
185 mvaName_woGwGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_woGwGSF_EC'
190 patTauDiscriminationByElectronRejectionMVA62018 = patTauDiscriminantCutMultiplexer.clone(
191 PATTauProducer = patTauDiscriminationByElectronRejectionMVA62018Raw.PATTauProducer,
192 Prediscriminants = patTauDiscriminationByElectronRejectionMVA62018Raw.Prediscriminants,
193 toMultiplex = cms.InputTag(
"patTauDiscriminationByElectronRejectionMVA62018Raw"),
196 category = cms.uint32(0),
197 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_NoEleMatch_woGwoGSF_BL'),
198 variable = cms.string(
'pt')
201 category = cms.uint32(2),
202 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_NoEleMatch_wGwoGSF_BL'),
203 variable = cms.string(
'pt')
206 category = cms.uint32(5),
207 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_woGwGSF_BL'),
208 variable = cms.string(
'pt')
211 category = cms.uint32(7),
212 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_wGwGSF_BL'),
213 variable = cms.string(
'pt')
216 category = cms.uint32(8),
217 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_NoEleMatch_woGwoGSF_EC'),
218 variable = cms.string(
'pt')
221 category = cms.uint32(10),
222 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_NoEleMatch_wGwoGSF_EC'),
223 variable = cms.string(
'pt')
226 category = cms.uint32(13),
227 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_woGwGSF_EC'),
228 variable = cms.string(
'pt')
231 category = cms.uint32(15),
232 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_wGwGSF_EC'),
233 variable = cms.string(
'pt')
236 rawValues = cms.vstring(
240 workingPoints = cms.vstring(
249 antiElectronDiscrMVA6v1_version =
"MVA6v1"
251 patTauDiscriminationByElectronRejectionMVA62015Raw = patTauDiscriminationAgainstElectronMVA6.clone(
252 PATTauProducer =
'slimmedTaus',
253 Prediscriminants = noPrediscriminants,
254 srcElectrons =
'slimmedElectrons',
255 vetoEcalCracks =
True,
256 mvaName_NoEleMatch_wGwoGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6v1_version+
'_gbr_NoEleMatch_wGwoGSF_BL',
257 mvaName_NoEleMatch_wGwoGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6v1_version+
'_gbr_NoEleMatch_wGwoGSF_EC',
258 mvaName_NoEleMatch_woGwoGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6v1_version+
'_gbr_NoEleMatch_woGwoGSF_BL',
259 mvaName_NoEleMatch_woGwoGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6v1_version+
'_gbr_NoEleMatch_woGwoGSF_EC',
260 mvaName_wGwGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6v1_version+
'_gbr_wGwGSF_BL',
261 mvaName_wGwGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6v1_version+
'_gbr_wGwGSF_EC',
262 mvaName_woGwGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6v1_version+
'_gbr_woGwGSF_BL',
263 mvaName_woGwGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6v1_version+
'_gbr_woGwGSF_EC'
266 patTauDiscriminationByElectronRejectionMVA62015 = patTauDiscriminationByElectronRejectionMVA62018.clone(
267 PATTauProducer = patTauDiscriminationByElectronRejectionMVA62015Raw.PATTauProducer,
268 Prediscriminants = patTauDiscriminationByElectronRejectionMVA62015Raw.Prediscriminants,
269 toMultiplex = cms.InputTag(
"patTauDiscriminationByElectronRejectionMVA62015Raw"),
270 rawValues = cms.vstring(
274 workingPoints = cms.vstring(
282 for m
in patTauDiscriminationByElectronRejectionMVA62015.mapping:
283 m.cut = m.cut.value().
replace(antiElectronDiscrMVA6_version, antiElectronDiscrMVA6v1_version +
"_gbr")
285 _patTauDiscriminationByElectronRejection2018Task = cms.Task(
286 patTauDiscriminationByElectronRejectionMVA62018Raw,
287 patTauDiscriminationByElectronRejectionMVA62018
289 _patTauDiscriminationByElectronRejection2015Task = cms.Task(
290 patTauDiscriminationByElectronRejectionMVA62015Raw,
291 patTauDiscriminationByElectronRejectionMVA62015
293 patTauDiscriminationByElectronRejectionTask = _patTauDiscriminationByElectronRejection2015Task.copy()
294 for era
in [run2_nanoAOD_92X,run2_nanoAOD_94XMiniAODv1,run2_nanoAOD_94XMiniAODv2,\
295 run2_nanoAOD_94X2016,run2_nanoAOD_102Xv1,run2_nanoAOD_106Xv1]:
296 era.toReplaceWith(patTauDiscriminationByElectronRejectionTask,
297 _patTauDiscriminationByElectronRejection2018Task)
301 _patTauMVAIDsTask2017v2 = cms.Task(
302 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTTask,
303 patTauDiscriminationByIsolationMVArun2v1DBnewDMwLTTask,
304 patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLTTask,
305 patTauDiscriminationByElectronRejectionTask
307 patTauMVAIDsTask = _patTauMVAIDsTask2017v2.copy()
308 patTauMVAIDsTask.add(patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2015Task)
310 _patTauMVAIDsTaskWith2017v1 = _patTauMVAIDsTask2017v2.copy()
311 _patTauMVAIDsTaskWith2017v1.add(patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2017v1Task)
312 for era
in [run2_nanoAOD_94XMiniAODv1,]:
313 era.toReplaceWith(patTauMVAIDsTask,_patTauMVAIDsTaskWith2017v1)
317 return cms.PSet(inputTag = cms.InputTag(module), workingPointIndex = cms.int32(-1
if wp==
"raw" else -2
if wp==
"category" else globals()[module].workingPoints.index(wp)))
318 slimmedTausUpdated = cms.EDProducer(
"PATTauIDEmbedder",
319 src = cms.InputTag(
'slimmedTaus'),
320 tauIDSources = cms.PSet()
322 _tauIDSources2017v2 = cms.PSet(
324 byIsolationMVArun2v1DBoldDMwLTraw2017v2 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT",
"raw"),
325 byVVLooseIsolationMVArun2v1DBoldDMwLT2017v2 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT",
"_VVLoose"),
326 byVLooseIsolationMVArun2v1DBoldDMwLT2017v2 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT",
"_VLoose"),
327 byLooseIsolationMVArun2v1DBoldDMwLT2017v2 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT",
"_Loose"),
328 byMediumIsolationMVArun2v1DBoldDMwLT2017v2 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT",
"_Medium"),
329 byTightIsolationMVArun2v1DBoldDMwLT2017v2 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT",
"_Tight"),
330 byVTightIsolationMVArun2v1DBoldDMwLT2017v2 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT",
"_VTight"),
331 byVVTightIsolationMVArun2v1DBoldDMwLT2017v2 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT",
"_VVTight"),
333 byIsolationMVArun2v1DBnewDMwLTraw2017v2 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBnewDMwLT",
"raw"),
334 byVVLooseIsolationMVArun2v1DBnewDMwLT2017v2 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBnewDMwLT",
"_VVLoose"),
335 byVLooseIsolationMVArun2v1DBnewDMwLT2017v2 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBnewDMwLT",
"_VLoose"),
336 byLooseIsolationMVArun2v1DBnewDMwLT2017v2 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBnewDMwLT",
"_Loose"),
337 byMediumIsolationMVArun2v1DBnewDMwLT2017v2 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBnewDMwLT",
"_Medium"),
338 byTightIsolationMVArun2v1DBnewDMwLT2017v2 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBnewDMwLT",
"_Tight"),
339 byVTightIsolationMVArun2v1DBnewDMwLT2017v2 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBnewDMwLT",
"_VTight"),
340 byVVTightIsolationMVArun2v1DBnewDMwLT2017v2 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBnewDMwLT",
"_VVTight"),
342 byIsolationMVArun2v1DBdR03oldDMwLTraw2017v2 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLT",
"raw"),
343 byVVLooseIsolationMVArun2v1DBdR03oldDMwLT2017v2 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLT",
"_VVLoose"),
344 byVLooseIsolationMVArun2v1DBdR03oldDMwLT2017v2 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLT",
"_VLoose"),
345 byLooseIsolationMVArun2v1DBdR03oldDMwLT2017v2 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLT",
"_Loose"),
346 byMediumIsolationMVArun2v1DBdR03oldDMwLT2017v2 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLT",
"_Medium"),
347 byTightIsolationMVArun2v1DBdR03oldDMwLT2017v2 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLT",
"_Tight"),
348 byVTightIsolationMVArun2v1DBdR03oldDMwLT2017v2 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLT",
"_VTight"),
349 byVVTightIsolationMVArun2v1DBdR03oldDMwLT2017v2 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLT",
"_VVTight")
351 _tauIDSources2017v1 = cms.PSet(
352 byIsolationMVArun2v1DBoldDMwLTraw2017v1 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2017v1",
"raw"),
353 byVVLooseIsolationMVArun2v1DBoldDMwLT2017v1 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2017v1",
"_WPEff95"),
354 byVLooseIsolationMVArun2v1DBoldDMwLT2017v1 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2017v1",
"_WPEff90"),
355 byLooseIsolationMVArun2v1DBoldDMwLT2017v1 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2017v1",
"_WPEff80"),
356 byMediumIsolationMVArun2v1DBoldDMwLT2017v1 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2017v1",
"_WPEff70"),
357 byTightIsolationMVArun2v1DBoldDMwLT2017v1 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2017v1",
"_WPEff60"),
358 byVTightIsolationMVArun2v1DBoldDMwLT2017v1 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2017v1",
"_WPEff50"),
359 byVVTightIsolationMVArun2v1DBoldDMwLT2017v1 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2017v1",
"_WPEff40")
361 _tauIDSourcesWith2017v1 = cms.PSet(
362 _tauIDSources2017v2.clone(),
365 _tauIDSources2015 = cms.PSet(
366 byIsolationMVArun2v1DBoldDMwLTraw2015 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2015",
"raw"),
367 byVLooseIsolationMVArun2v1DBoldDMwLT2015 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2015",
"_WPEff90"),
368 byLooseIsolationMVArun2v1DBoldDMwLT2015 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2015",
"_WPEff80"),
369 byMediumIsolationMVArun2v1DBoldDMwLT2015 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2015",
"_WPEff70"),
370 byTightIsolationMVArun2v1DBoldDMwLT2015 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2015",
"_WPEff60"),
371 byVTightIsolationMVArun2v1DBoldDMwLT2015 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2015",
"_WPEff50"),
372 byVVTightIsolationMVArun2v1DBoldDMwLT2015 =
tauIDMVAinputs(
"patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2015",
"_WPEff40")
374 _tauIDSourcesWith2015 = cms.PSet(
375 _tauIDSources2017v2.clone(),
378 slimmedTausUpdated.tauIDSources=_tauIDSourcesWith2015
380 for era
in [run2_nanoAOD_94XMiniAODv1,]:
381 era.toModify(slimmedTausUpdated,
382 tauIDSources = _tauIDSourcesWith2017v1
385 _antiETauIDSources2018 = cms.PSet(
386 againstElectronMVA6Raw2018 =
tauIDMVAinputs(
"patTauDiscriminationByElectronRejectionMVA62018",
"raw"),
387 againstElectronMVA6category2018 =
tauIDMVAinputs(
"patTauDiscriminationByElectronRejectionMVA62018",
"category"),
388 againstElectronVLooseMVA62018 =
tauIDMVAinputs(
"patTauDiscriminationByElectronRejectionMVA62018",
"_VLoose"),
389 againstElectronLooseMVA62018 =
tauIDMVAinputs(
"patTauDiscriminationByElectronRejectionMVA62018",
"_Loose"),
390 againstElectronMediumMVA62018 =
tauIDMVAinputs(
"patTauDiscriminationByElectronRejectionMVA62018",
"_Medium"),
391 againstElectronTightMVA62018 =
tauIDMVAinputs(
"patTauDiscriminationByElectronRejectionMVA62018",
"_Tight"),
392 againstElectronVTightMVA62018 =
tauIDMVAinputs(
"patTauDiscriminationByElectronRejectionMVA62018",
"_VTight")
394 _tauIDSourcesWithAntiE2018 = cms.PSet(
395 slimmedTausUpdated.tauIDSources.clone(),
396 _antiETauIDSources2018
398 _antiETauIDSources2015 = cms.PSet(
399 againstElectronMVA6Raw2015 =
tauIDMVAinputs(
"patTauDiscriminationByElectronRejectionMVA62015",
"raw"),
400 againstElectronMVA6category2015 =
tauIDMVAinputs(
"patTauDiscriminationByElectronRejectionMVA62015",
"category"),
401 againstElectronVLooseMVA62015 =
tauIDMVAinputs(
"patTauDiscriminationByElectronRejectionMVA62015",
"_WPEff99"),
402 againstElectronLooseMVA62015 =
tauIDMVAinputs(
"patTauDiscriminationByElectronRejectionMVA62015",
"_WPEff96"),
403 againstElectronMediumMVA62015 =
tauIDMVAinputs(
"patTauDiscriminationByElectronRejectionMVA62015",
"_WPEff91"),
404 againstElectronTightMVA62015 =
tauIDMVAinputs(
"patTauDiscriminationByElectronRejectionMVA62015",
"_WPEff85"),
405 againstElectronVTightMVA62015 =
tauIDMVAinputs(
"patTauDiscriminationByElectronRejectionMVA62015",
"_WPEff79")
407 _tauIDSourcesWithAntiE2015 = cms.PSet(
408 slimmedTausUpdated.tauIDSources.clone(),
409 _antiETauIDSources2015
411 slimmedTausUpdated.tauIDSources=_tauIDSourcesWithAntiE2015
412 for era
in [run2_nanoAOD_92X,run2_nanoAOD_94XMiniAODv1,run2_nanoAOD_94XMiniAODv2,\
413 run2_nanoAOD_94X2016,run2_nanoAOD_102Xv1,run2_nanoAOD_106Xv1]:
414 era.toModify(slimmedTausUpdated,
415 tauIDSources = _tauIDSourcesWithAntiE2018
419 from RecoTauTag.RecoTau.patTauDiscriminationAgainstElectronDeadECAL_cfi
import patTauDiscriminationAgainstElectronDeadECAL
420 patTauDiscriminationAgainstElectronDeadECALForNano = patTauDiscriminationAgainstElectronDeadECAL.clone(
421 PATTauProducer =
'slimmedTaus',
422 Prediscriminants = noPrediscriminants
424 _patTauMVAIDsTaskWithAntiEdeadECal = patTauMVAIDsTask.copy()
425 _patTauMVAIDsTaskWithAntiEdeadECal.add(patTauDiscriminationAgainstElectronDeadECALForNano)
426 _tauIDSourcesWithAntiEdeadECal = cms.PSet(
427 slimmedTausUpdated.tauIDSources.clone(),
428 againstElectronDeadECALForNano = cms.PSet(
429 inputTag = cms.InputTag(
"patTauDiscriminationAgainstElectronDeadECALForNano"),
430 workingPointIndex = cms.int32(-99)
433 for era
in [run2_miniAOD_80XLegacy,run2_nanoAOD_92X,run2_nanoAOD_94XMiniAODv1,\
434 run2_nanoAOD_94XMiniAODv2,run2_nanoAOD_94X2016,run2_nanoAOD_102Xv1,\
435 run2_nanoAOD_106Xv1]:
436 era.toReplaceWith(patTauMVAIDsTask,_patTauMVAIDsTaskWithAntiEdeadECal)
437 era.toModify(slimmedTausUpdated,
438 tauIDSources = _tauIDSourcesWithAntiEdeadECal
441 patTauMVAIDsTask.add(slimmedTausUpdated)