1 import FWCore.ParameterSet.Config
as cms
12 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw = patDiscriminationByIsolationMVArun2v1raw.clone(
13 PATTauProducer = cms.InputTag(
'slimmedTaus'),
14 Prediscriminants = noPrediscriminants,
15 loadMVAfromDB = cms.bool(
True),
16 mvaName = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT"),
17 mvaOpt = cms.string(
"DBoldDMwLTwGJ"),
18 verbosity = cms.int32(0)
21 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT = patDiscriminationByIsolationMVArun2v1.clone(
22 PATTauProducer = cms.InputTag(
'slimmedTaus'),
23 Prediscriminants = noPrediscriminants,
24 toMultiplex = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw'),
25 loadMVAfromDB = cms.bool(
True),
26 mvaOutput_normalization = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT_mvaOutput_normalization"),
29 category = cms.uint32(0),
30 cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT"),
31 variable = cms.string(
"pt"),
34 workingPoints = cms.vstring(
45 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTTask = cms.Task(
46 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw,
47 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT
51 patTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw = patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw.clone(
52 mvaName = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT"),
53 mvaOpt = cms.string(
"DBnewDMwLTwGJ")
56 patTauDiscriminationByIsolationMVArun2v1DBnewDMwLT = patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT.clone(
57 toMultiplex = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw'),
58 mvaOutput_normalization = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT_mvaOutput_normalization"),
61 category = cms.uint32(0),
62 cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT"),
63 variable = cms.string(
"pt"),
68 patTauDiscriminationByIsolationMVArun2v1DBnewDMwLTTask = cms.Task(
69 patTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw,
70 patTauDiscriminationByIsolationMVArun2v1DBnewDMwLT
74 patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLTraw = patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw.clone(
75 mvaName = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT"),
76 mvaOpt = cms.string(
"DBoldDMwLTwGJ"),
77 srcChargedIsoPtSum = cms.string(
'chargedIsoPtSumdR03'),
78 srcFootprintCorrection = cms.string(
'footprintCorrectiondR03'),
79 srcNeutralIsoPtSum = cms.string(
'neutralIsoPtSumdR03'),
80 srcPUcorrPtSum = cms.string(
'puCorrPtSum'),
81 srcPhotonPtSumOutsideSignalCone = cms.string(
'photonPtSumOutsideSignalConedR03')
84 patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLT = patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT.clone(
85 toMultiplex = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLTraw'),
86 mvaOutput_normalization = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT_mvaOutput_normalization"),
89 category = cms.uint32(0),
90 cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT"),
91 variable = cms.string(
"pt"),
96 patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLTTask = cms.Task(
97 patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLTraw,
98 patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLT
103 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2017v1 = patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw.clone(
104 mvaName = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1"),
105 mvaOpt = cms.string(
"DBoldDMwLTwGJ")
108 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2017v1 = patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT.clone(
109 toMultiplex = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2017v1'),
110 mvaOutput_normalization = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_mvaOutput_normalization"),
113 category = cms.uint32(0),
114 cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1"),
115 variable = cms.string(
"pt"),
118 workingPoints = cms.vstring(
129 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2017v1Task = cms.Task(
130 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2017v1,
131 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2017v1
136 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2015 = patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw.clone(
137 mvaName = cms.string(
"RecoTauTag_tauIdMVADBoldDMwLTv1"),
138 mvaOpt = cms.string(
"DBoldDMwLT")
141 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2015 = patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT.clone(
142 toMultiplex = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2015'),
143 mvaOutput_normalization = cms.string(
"RecoTauTag_tauIdMVADBoldDMwLTv1_mvaOutput_normalization"),
146 category = cms.uint32(0),
147 cut = cms.string(
"RecoTauTag_tauIdMVADBoldDMwLTv1"),
148 variable = cms.string(
"pt"),
151 workingPoints = cms.vstring(
161 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2015Task = cms.Task(
162 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2015,
163 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2015
168 antiElectronDiscrMVA6_version =
"MVA" 171 patTauDiscriminationByElectronRejectionMVA62018Raw = patTauDiscriminationAgainstElectronMVA6.clone(
172 PATTauProducer =
'slimmedTaus',
173 Prediscriminants = noPrediscriminants,
174 srcElectrons =
'slimmedElectrons',
175 vetoEcalCracks =
False,
176 mvaName_NoEleMatch_wGwoGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_NoEleMatch_wGwoGSF_BL',
177 mvaName_NoEleMatch_wGwoGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_NoEleMatch_wGwoGSF_EC',
178 mvaName_NoEleMatch_woGwoGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_NoEleMatch_woGwoGSF_BL',
179 mvaName_NoEleMatch_woGwoGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_NoEleMatch_woGwoGSF_EC',
180 mvaName_wGwGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_wGwGSF_BL',
181 mvaName_wGwGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_wGwGSF_EC',
182 mvaName_woGwGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_woGwGSF_BL',
183 mvaName_woGwGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_woGwGSF_EC' 188 patTauDiscriminationByElectronRejectionMVA62018 = patTauDiscriminantCutMultiplexer.clone(
189 PATTauProducer = patTauDiscriminationByElectronRejectionMVA62018Raw.PATTauProducer,
190 Prediscriminants = patTauDiscriminationByElectronRejectionMVA62018Raw.Prediscriminants,
191 toMultiplex = cms.InputTag(
"patTauDiscriminationByElectronRejectionMVA62018Raw"),
194 category = cms.uint32(0),
195 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_NoEleMatch_woGwoGSF_BL'),
196 variable = cms.string(
'pt')
199 category = cms.uint32(2),
200 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_NoEleMatch_wGwoGSF_BL'),
201 variable = cms.string(
'pt')
204 category = cms.uint32(5),
205 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_woGwGSF_BL'),
206 variable = cms.string(
'pt')
209 category = cms.uint32(7),
210 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_wGwGSF_BL'),
211 variable = cms.string(
'pt')
214 category = cms.uint32(8),
215 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_NoEleMatch_woGwoGSF_EC'),
216 variable = cms.string(
'pt')
219 category = cms.uint32(10),
220 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_NoEleMatch_wGwoGSF_EC'),
221 variable = cms.string(
'pt')
224 category = cms.uint32(13),
225 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_woGwGSF_EC'),
226 variable = cms.string(
'pt')
229 category = cms.uint32(15),
230 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_wGwGSF_EC'),
231 variable = cms.string(
'pt')
234 rawValues = cms.vstring(
238 workingPoints = cms.vstring(
247 antiElectronDiscrMVA6v1_version =
"MVA6v1" 249 patTauDiscriminationByElectronRejectionMVA62015Raw = patTauDiscriminationAgainstElectronMVA6.clone(
250 PATTauProducer =
'slimmedTaus',
251 Prediscriminants = noPrediscriminants,
252 srcElectrons =
'slimmedElectrons',
253 vetoEcalCracks =
True,
254 mvaName_NoEleMatch_wGwoGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6v1_version+
'_gbr_NoEleMatch_wGwoGSF_BL',
255 mvaName_NoEleMatch_wGwoGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6v1_version+
'_gbr_NoEleMatch_wGwoGSF_EC',
256 mvaName_NoEleMatch_woGwoGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6v1_version+
'_gbr_NoEleMatch_woGwoGSF_BL',
257 mvaName_NoEleMatch_woGwoGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6v1_version+
'_gbr_NoEleMatch_woGwoGSF_EC',
258 mvaName_wGwGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6v1_version+
'_gbr_wGwGSF_BL',
259 mvaName_wGwGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6v1_version+
'_gbr_wGwGSF_EC',
260 mvaName_woGwGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6v1_version+
'_gbr_woGwGSF_BL',
261 mvaName_woGwGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6v1_version+
'_gbr_woGwGSF_EC' 264 patTauDiscriminationByElectronRejectionMVA62015 = patTauDiscriminationByElectronRejectionMVA62018.clone(
265 PATTauProducer = patTauDiscriminationByElectronRejectionMVA62015Raw.PATTauProducer,
266 Prediscriminants = patTauDiscriminationByElectronRejectionMVA62015Raw.Prediscriminants,
267 toMultiplex = cms.InputTag(
"patTauDiscriminationByElectronRejectionMVA62015Raw"),
268 rawValues = cms.vstring(
272 workingPoints = cms.vstring(
280 for m
in patTauDiscriminationByElectronRejectionMVA62015.mapping:
281 m.cut = m.cut.value().
replace(antiElectronDiscrMVA6_version, antiElectronDiscrMVA6v1_version +
"_gbr")
283 patTauDiscriminationByElectronRejectionTask = cms.Task(
284 patTauDiscriminationByElectronRejectionMVA62015Raw,
285 patTauDiscriminationByElectronRejectionMVA62015
290 patTauMVAIDsTask = cms.Task(
291 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTTask,
292 patTauDiscriminationByIsolationMVArun2v1DBnewDMwLTTask,
293 patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLTTask,
294 patTauDiscriminationByElectronRejectionTask,
295 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2015Task
298 slimmedTausUpdated = cms.EDProducer(
"PATTauIDEmbedder",
299 src = cms.InputTag(
'slimmedTaus'),
300 tauIDSources = cms.PSet()
303 patTauMVAIDsTask.add(slimmedTausUpdated)
def replace(string, replacements)
Updated tau collection with MVA-based tau-Ids rerun ####### Used only in some eras.