1 import FWCore.ParameterSet.Config
as cms
5 from Configuration.StandardSequences.Eras
import eras
12 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw = patDiscriminationByIsolationMVArun2v1raw.clone(
13 PATTauProducer = cms.InputTag(
'slimmedTaus'),
14 Prediscriminants = noPrediscriminants,
15 loadMVAfromDB = cms.bool(
True),
16 mvaName = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2"),
17 mvaOpt = cms.string(
"DBoldDMwLTwGJ"),
18 requireDecayMode = cms.bool(
True),
19 verbosity = cms.int32(0)
22 patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT = patDiscriminationByIsolationMVArun2v1VLoose.clone(
23 PATTauProducer = cms.InputTag(
'slimmedTaus'),
24 Prediscriminants = noPrediscriminants,
25 toMultiplex = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw'),
26 key = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw',
'category'),
27 loadMVAfromDB = cms.bool(
True),
28 mvaOutput_normalization = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_mvaOutput_normalization"),
31 category = cms.uint32(0),
32 cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff95"),
33 variable = cms.string(
"pt"),
38 patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT.clone()
39 patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff90")
41 patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT.clone()
42 patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff80")
44 patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT.clone()
45 patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff70")
47 patTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT.clone()
48 patTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff60")
50 patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT.clone()
51 patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff50")
53 patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT.clone()
54 patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff40")
56 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTSeq = cms.Sequence(
57 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw
58 + patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT
59 + patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT
60 + patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT
61 + patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT
62 + patTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT
63 + patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT
64 + patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT
68 patTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw = patDiscriminationByIsolationMVArun2v1raw.clone(
69 PATTauProducer = cms.InputTag(
'slimmedTaus'),
70 Prediscriminants = noPrediscriminants,
71 loadMVAfromDB = cms.bool(
True),
72 mvaName = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2"),
73 mvaOpt = cms.string(
"DBnewDMwLTwGJ"),
74 requireDecayMode = cms.bool(
True),
75 verbosity = cms.int32(0)
78 patTauDiscriminationByVVLooseIsolationMVArun2v1DBnewDMwLT = patDiscriminationByIsolationMVArun2v1VLoose.clone(
79 PATTauProducer = cms.InputTag(
'slimmedTaus'),
80 Prediscriminants = noPrediscriminants,
81 toMultiplex = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw'),
82 key = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw',
'category'),
83 loadMVAfromDB = cms.bool(
True),
84 mvaOutput_normalization = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_mvaOutput_normalization"),
87 category = cms.uint32(0),
88 cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff95"),
89 variable = cms.string(
"pt"),
94 patTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBnewDMwLT.clone()
95 patTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff90")
97 patTauDiscriminationByLooseIsolationMVArun2v1DBnewDMwLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBnewDMwLT.clone()
98 patTauDiscriminationByLooseIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff80")
100 patTauDiscriminationByMediumIsolationMVArun2v1DBnewDMwLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBnewDMwLT.clone()
101 patTauDiscriminationByMediumIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff70")
103 patTauDiscriminationByTightIsolationMVArun2v1DBnewDMwLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBnewDMwLT.clone()
104 patTauDiscriminationByTightIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff60")
106 patTauDiscriminationByVTightIsolationMVArun2v1DBnewDMwLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBnewDMwLT.clone()
107 patTauDiscriminationByVTightIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff50")
109 patTauDiscriminationByVVTightIsolationMVArun2v1DBnewDMwLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBnewDMwLT.clone()
110 patTauDiscriminationByVVTightIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff40")
112 patTauDiscriminationByIsolationMVArun2v1DBnewDMwLTSeq = cms.Sequence(
113 patTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw
114 + patTauDiscriminationByVVLooseIsolationMVArun2v1DBnewDMwLT
115 + patTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT
116 + patTauDiscriminationByLooseIsolationMVArun2v1DBnewDMwLT
117 + patTauDiscriminationByMediumIsolationMVArun2v1DBnewDMwLT
118 + patTauDiscriminationByTightIsolationMVArun2v1DBnewDMwLT
119 + patTauDiscriminationByVTightIsolationMVArun2v1DBnewDMwLT
120 + patTauDiscriminationByVVTightIsolationMVArun2v1DBnewDMwLT
124 patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLTraw = patDiscriminationByIsolationMVArun2v1raw.clone(
125 PATTauProducer = cms.InputTag(
'slimmedTaus'),
126 Prediscriminants = noPrediscriminants,
127 loadMVAfromDB = cms.bool(
True),
128 mvaName = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2"),
129 mvaOpt = cms.string(
"DBoldDMwLTwGJ"),
130 requireDecayMode = cms.bool(
True),
131 srcChargedIsoPtSum = cms.string(
'chargedIsoPtSumdR03'),
132 srcFootprintCorrection = cms.string(
'footprintCorrectiondR03'),
133 srcNeutralIsoPtSum = cms.string(
'neutralIsoPtSumdR03'),
134 srcPUcorrPtSum = cms.string(
'puCorrPtSum'),
135 srcPhotonPtSumOutsideSignalCone = cms.string(
'photonPtSumOutsideSignalConedR03'),
136 verbosity = cms.int32(0)
139 patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMdR0p3wLT = patDiscriminationByIsolationMVArun2v1VLoose.clone(
140 PATTauProducer = cms.InputTag(
'slimmedTaus'),
141 Prediscriminants = noPrediscriminants,
142 toMultiplex = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLTraw'),
143 key = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLTraw',
'category'),
144 loadMVAfromDB = cms.bool(
True),
145 mvaOutput_normalization = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_mvaOutput_normalization"),
148 category = cms.uint32(0),
149 cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff95"),
150 variable = cms.string(
"pt"),
155 patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMdR0p3wLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMdR0p3wLT.clone()
156 patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMdR0p3wLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff90")
158 patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMdR0p3wLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMdR0p3wLT.clone()
159 patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMdR0p3wLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff80")
161 patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMdR0p3wLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMdR0p3wLT.clone()
162 patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMdR0p3wLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff70")
164 patTauDiscriminationByTightIsolationMVArun2v1DBoldDMdR0p3wLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMdR0p3wLT.clone()
165 patTauDiscriminationByTightIsolationMVArun2v1DBoldDMdR0p3wLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff60")
167 patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMdR0p3wLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMdR0p3wLT.clone()
168 patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMdR0p3wLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff50")
170 patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMdR0p3wLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMdR0p3wLT.clone()
171 patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMdR0p3wLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff40")
173 patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLTSeq = cms.Sequence(
174 patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLTraw
175 + patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMdR0p3wLT
176 + patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMdR0p3wLT
177 + patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMdR0p3wLT
178 + patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMdR0p3wLT
179 + patTauDiscriminationByTightIsolationMVArun2v1DBoldDMdR0p3wLT
180 + patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMdR0p3wLT
181 + patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMdR0p3wLT
186 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2017v1 = patDiscriminationByIsolationMVArun2v1raw.clone(
187 PATTauProducer = cms.InputTag(
'slimmedTaus'),
188 Prediscriminants = noPrediscriminants,
189 loadMVAfromDB = cms.bool(
True),
190 mvaName = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1"),
191 mvaOpt = cms.string(
"DBoldDMwLTwGJ"),
192 requireDecayMode = cms.bool(
True),
193 verbosity = cms.int32(0)
196 patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT2017v1 = patDiscriminationByIsolationMVArun2v1VLoose.clone(
197 PATTauProducer = cms.InputTag(
'slimmedTaus'),
198 Prediscriminants = noPrediscriminants,
199 toMultiplex = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2017v1'),
200 key = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2017v1',
'category'),
201 loadMVAfromDB = cms.bool(
True),
202 mvaOutput_normalization = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_mvaOutput_normalization"),
205 category = cms.uint32(0),
206 cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff95"),
207 variable = cms.string(
"pt"),
212 patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT2017v1 = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT2017v1.clone()
213 patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT2017v1.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff90")
215 patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT2017v1 = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT2017v1.clone()
216 patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT2017v1.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff80")
218 patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT2017v1 = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT2017v1.clone()
219 patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT2017v1.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff70")
221 patTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT2017v1 = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT2017v1.clone()
222 patTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT2017v1.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff60")
224 patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT2017v1 = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT2017v1.clone()
225 patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT2017v1.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff50")
227 patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT2017v1 = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT2017v1.clone()
228 patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT2017v1.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff40")
230 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2017v1Seq = cms.Sequence(
231 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2017v1
232 + patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT2017v1
233 + patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT2017v1
234 + patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT2017v1
235 + patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT2017v1
236 + patTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT2017v1
237 + patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT2017v1
238 + patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT2017v1
243 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2015 = patDiscriminationByIsolationMVArun2v1raw.clone(
244 PATTauProducer = cms.InputTag(
'slimmedTaus'),
245 Prediscriminants = noPrediscriminants,
246 loadMVAfromDB = cms.bool(
True),
247 mvaName = cms.string(
"RecoTauTag_tauIdMVADBoldDMwLTv1"),
248 mvaOpt = cms.string(
"DBoldDMwLT"),
249 requireDecayMode = cms.bool(
True),
250 verbosity = cms.int32(0)
253 patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT2015 = patDiscriminationByIsolationMVArun2v1VLoose.clone(
254 PATTauProducer = cms.InputTag(
'slimmedTaus'),
255 Prediscriminants = noPrediscriminants,
256 toMultiplex = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2015'),
257 key = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2015',
'category'),
258 loadMVAfromDB = cms.bool(
True),
259 mvaOutput_normalization = cms.string(
"RecoTauTag_tauIdMVADBoldDMwLTv1_mvaOutput_normalization"),
262 category = cms.uint32(0),
263 cut = cms.string(
"RecoTauTag_tauIdMVADBoldDMwLTv1_WPEff90"),
264 variable = cms.string(
"pt"),
269 patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT2015 = patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT2015.clone()
270 patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT2015.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVADBoldDMwLTv1_WPEff80")
272 patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT2015 = patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT2015.clone()
273 patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT2015.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVADBoldDMwLTv1_WPEff70")
275 patTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT2015 = patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT2015.clone()
276 patTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT2015.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVADBoldDMwLTv1_WPEff60")
278 patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT2015 = patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT2015.clone()
279 patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT2015.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVADBoldDMwLTv1_WPEff50")
281 patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT2015 = patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT2015.clone()
282 patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT2015.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVADBoldDMwLTv1_WPEff40")
284 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2015Seq = cms.Sequence(
285 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2015
286 + patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT2015
287 + patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT2015
288 + patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT2015
289 + patTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT2015
290 + patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT2015
291 + patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT2015
296 antiElectronDiscrMVA6_version =
"MVA6v3_noeveto" 298 from RecoTauTag.RecoTau.PATTauDiscriminationAgainstElectronMVA6_cfi
import patTauDiscriminationAgainstElectronMVA6
300 patTauDiscriminationByElectronRejectionMVA62018Raw = patTauDiscriminationAgainstElectronMVA6.clone(
301 Prediscriminants = noPrediscriminants,
302 vetoEcalCracks =
False,
303 mvaName_NoEleMatch_wGwoGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_BL',
304 mvaName_NoEleMatch_wGwoGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_EC',
305 mvaName_NoEleMatch_woGwoGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_BL',
306 mvaName_NoEleMatch_woGwoGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_EC',
307 mvaName_wGwGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_BL',
308 mvaName_wGwGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_EC',
309 mvaName_woGwGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_BL',
310 mvaName_woGwGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_EC' 315 patTauDiscriminationByVLooseElectronRejectionMVA62018 = patTauDiscriminantCutMultiplexer.clone(
316 PATTauProducer = patTauDiscriminationByElectronRejectionMVA62018Raw.PATTauProducer,
317 Prediscriminants = patTauDiscriminationByElectronRejectionMVA62018Raw.Prediscriminants,
318 toMultiplex = cms.InputTag(
"patTauDiscriminationByElectronRejectionMVA62018Raw"),
319 key = cms.InputTag(
"patTauDiscriminationByElectronRejectionMVA62018Raw",
"category"),
322 category = cms.uint32(0),
323 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_BL_WPeff98'),
324 variable = cms.string(
'pt')
327 category = cms.uint32(2),
328 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_BL_WPeff98'),
329 variable = cms.string(
'pt')
332 category = cms.uint32(5),
333 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_BL_WPeff98'),
334 variable = cms.string(
'pt')
337 category = cms.uint32(7),
338 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_BL_WPeff98'),
339 variable = cms.string(
'pt')
342 category = cms.uint32(8),
343 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_EC_WPeff98'),
344 variable = cms.string(
'pt')
347 category = cms.uint32(10),
348 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_EC_WPeff98'),
349 variable = cms.string(
'pt')
352 category = cms.uint32(13),
353 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_EC_WPeff98'),
354 variable = cms.string(
'pt')
357 category = cms.uint32(15),
358 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_EC_WPeff98'),
359 variable = cms.string(
'pt')
364 patTauDiscriminationByLooseElectronRejectionMVA62018 = patTauDiscriminationByVLooseElectronRejectionMVA62018.clone(
367 category = cms.uint32(0),
368 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_BL_WPeff90'),
369 variable = cms.string(
'pt')
372 category = cms.uint32(2),
373 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_BL_WPeff90'),
374 variable = cms.string(
'pt')
377 category = cms.uint32(5),
378 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_BL_WPeff90'),
379 variable = cms.string(
'pt')
382 category = cms.uint32(7),
383 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_BL_WPeff90'),
384 variable = cms.string(
'pt')
387 category = cms.uint32(8),
388 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_EC_WPeff90'),
389 variable = cms.string(
'pt')
392 category = cms.uint32(10),
393 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_EC_WPeff90'),
394 variable = cms.string(
'pt')
397 category = cms.uint32(13),
398 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_EC_WPeff90'),
399 variable = cms.string(
'pt')
402 category = cms.uint32(15),
403 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_EC_WPeff90'),
404 variable = cms.string(
'pt')
409 patTauDiscriminationByMediumElectronRejectionMVA62018 = patTauDiscriminationByVLooseElectronRejectionMVA62018.clone(
412 category = cms.uint32(0),
413 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_BL_WPeff80'),
414 variable = cms.string(
'pt')
417 category = cms.uint32(2),
418 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_BL_WPeff80'),
419 variable = cms.string(
'pt')
422 category = cms.uint32(5),
423 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_BL_WPeff80'),
424 variable = cms.string(
'pt')
427 category = cms.uint32(7),
428 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_BL_WPeff80'),
429 variable = cms.string(
'pt')
432 category = cms.uint32(8),
433 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_EC_WPeff80'),
434 variable = cms.string(
'pt')
437 category = cms.uint32(10),
438 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_EC_WPeff80'),
439 variable = cms.string(
'pt')
442 category = cms.uint32(13),
443 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_EC_WPeff80'),
444 variable = cms.string(
'pt')
447 category = cms.uint32(15),
448 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_EC_WPeff80'),
449 variable = cms.string(
'pt')
454 patTauDiscriminationByTightElectronRejectionMVA62018 = patTauDiscriminationByVLooseElectronRejectionMVA62018.clone(
457 category = cms.uint32(0),
458 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_BL_WPeff70'),
459 variable = cms.string(
'pt')
462 category = cms.uint32(2),
463 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_BL_WPeff70'),
464 variable = cms.string(
'pt')
467 category = cms.uint32(5),
468 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_BL_WPeff70'),
469 variable = cms.string(
'pt')
472 category = cms.uint32(7),
473 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_BL_WPeff70'),
474 variable = cms.string(
'pt')
477 category = cms.uint32(8),
478 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_EC_WPeff70'),
479 variable = cms.string(
'pt')
482 category = cms.uint32(10),
483 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_EC_WPeff70'),
484 variable = cms.string(
'pt')
487 category = cms.uint32(13),
488 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_EC_WPeff70'),
489 variable = cms.string(
'pt')
492 category = cms.uint32(15),
493 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_EC_WPeff70'),
494 variable = cms.string(
'pt')
499 patTauDiscriminationByVTightElectronRejectionMVA62018 = patTauDiscriminationByVLooseElectronRejectionMVA62018.clone(
502 category = cms.uint32(0),
503 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_BL_WPeff60'),
504 variable = cms.string(
'pt')
507 category = cms.uint32(2),
508 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_BL_WPeff60'),
509 variable = cms.string(
'pt')
512 category = cms.uint32(5),
513 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_BL_WPeff60'),
514 variable = cms.string(
'pt')
517 category = cms.uint32(7),
518 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_BL_WPeff60'),
519 variable = cms.string(
'pt')
522 category = cms.uint32(8),
523 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_EC_WPeff60'),
524 variable = cms.string(
'pt')
527 category = cms.uint32(10),
528 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_EC_WPeff60'),
529 variable = cms.string(
'pt')
532 category = cms.uint32(13),
533 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_EC_WPeff60'),
534 variable = cms.string(
'pt')
537 category = cms.uint32(15),
538 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_EC_WPeff60'),
539 variable = cms.string(
'pt')
544 patTauDiscriminationByElectronRejectionSeq = cms.Sequence(
545 patTauDiscriminationByElectronRejectionMVA62018Raw
546 +patTauDiscriminationByVLooseElectronRejectionMVA62018
547 +patTauDiscriminationByLooseElectronRejectionMVA62018
548 +patTauDiscriminationByMediumElectronRejectionMVA62018
549 +patTauDiscriminationByTightElectronRejectionMVA62018
550 +patTauDiscriminationByVTightElectronRejectionMVA62018
554 _patTauMVAIDsSeq2017v2 = cms.Sequence(
555 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTSeq
556 +patTauDiscriminationByIsolationMVArun2v1DBnewDMwLTSeq
557 +patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLTSeq
558 +patTauDiscriminationByElectronRejectionSeq
560 patTauMVAIDsSeq = _patTauMVAIDsSeq2017v2.copy()
561 patTauMVAIDsSeq += patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2015Seq
563 _patTauMVAIDsSeqWith2017v1 = _patTauMVAIDsSeq2017v2.copy()
564 _patTauMVAIDsSeqWith2017v1 += patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2017v1Seq
565 for era
in [eras.run2_nanoAOD_94XMiniAODv1,]:
566 era.toReplaceWith(patTauMVAIDsSeq,_patTauMVAIDsSeqWith2017v1)
569 slimmedTausUpdated = cms.EDProducer(
"PATTauIDEmbedder",
570 src = cms.InputTag(
'slimmedTaus'),
571 tauIDSources = cms.PSet()
573 _tauIDSources2017v2 = cms.PSet(
575 byIsolationMVArun2v1DBoldDMwLTraw2017v2 = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw'),
576 byVVLooseIsolationMVArun2v1DBoldDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT'),
577 byVLooseIsolationMVArun2v1DBoldDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT'),
578 byLooseIsolationMVArun2v1DBoldDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT'),
579 byMediumIsolationMVArun2v1DBoldDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT'),
580 byTightIsolationMVArun2v1DBoldDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT'),
581 byVTightIsolationMVArun2v1DBoldDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT'),
582 byVVTightIsolationMVArun2v1DBoldDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT'),
584 byIsolationMVArun2v1DBnewDMwLTraw2017v2 = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw'),
585 byVVLooseIsolationMVArun2v1DBnewDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByVVLooseIsolationMVArun2v1DBnewDMwLT'),
586 byVLooseIsolationMVArun2v1DBnewDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT'),
587 byLooseIsolationMVArun2v1DBnewDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByLooseIsolationMVArun2v1DBnewDMwLT'),
588 byMediumIsolationMVArun2v1DBnewDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByMediumIsolationMVArun2v1DBnewDMwLT'),
589 byTightIsolationMVArun2v1DBnewDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByTightIsolationMVArun2v1DBnewDMwLT'),
590 byVTightIsolationMVArun2v1DBnewDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByVTightIsolationMVArun2v1DBnewDMwLT'),
591 byVVTightIsolationMVArun2v1DBnewDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByVVTightIsolationMVArun2v1DBnewDMwLT'),
593 byIsolationMVArun2v1DBdR03oldDMwLTraw2017v2 = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLTraw'),
594 byVVLooseIsolationMVArun2v1DBdR03oldDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMdR0p3wLT'),
595 byVLooseIsolationMVArun2v1DBdR03oldDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMdR0p3wLT'),
596 byLooseIsolationMVArun2v1DBdR03oldDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMdR0p3wLT'),
597 byMediumIsolationMVArun2v1DBdR03oldDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMdR0p3wLT'),
598 byTightIsolationMVArun2v1DBdR03oldDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByTightIsolationMVArun2v1DBoldDMdR0p3wLT'),
599 byVTightIsolationMVArun2v1DBdR03oldDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMdR0p3wLT'),
600 byVVTightIsolationMVArun2v1DBdR03oldDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMdR0p3wLT'),
602 _tauIDSources2017v1 = cms.PSet(
603 byIsolationMVArun2v1DBoldDMwLTraw2017v1 = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2017v1'),
604 byVVLooseIsolationMVArun2v1DBoldDMwLT2017v1 = cms.InputTag(
'patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT2017v1'),
605 byVLooseIsolationMVArun2v1DBoldDMwLT2017v1 = cms.InputTag(
'patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT2017v1'),
606 byLooseIsolationMVArun2v1DBoldDMwLT2017v1 = cms.InputTag(
'patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT2017v1'),
607 byMediumIsolationMVArun2v1DBoldDMwLT2017v1 = cms.InputTag(
'patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT2017v1'),
608 byTightIsolationMVArun2v1DBoldDMwLT2017v1 = cms.InputTag(
'patTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT2017v1'),
609 byVTightIsolationMVArun2v1DBoldDMwLT2017v1 = cms.InputTag(
'patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT2017v1'),
610 byVVTightIsolationMVArun2v1DBoldDMwLT2017v1 = cms.InputTag(
'patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT2017v1')
612 _tauIDSourcesWith2017v1 = cms.PSet(
613 _tauIDSources2017v2.clone(),
616 _tauIDSources2015 = cms.PSet(
617 byIsolationMVArun2v1DBoldDMwLTraw2015 = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2015'),
618 byVLooseIsolationMVArun2v1DBoldDMwLT2015 = cms.InputTag(
'patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT2015'),
619 byLooseIsolationMVArun2v1DBoldDMwLT2015 = cms.InputTag(
'patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT2015'),
620 byMediumIsolationMVArun2v1DBoldDMwLT2015 = cms.InputTag(
'patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT2015'),
621 byTightIsolationMVArun2v1DBoldDMwLT2015 = cms.InputTag(
'patTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT2015'),
622 byVTightIsolationMVArun2v1DBoldDMwLT2015 = cms.InputTag(
'patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT2015'),
623 byVVTightIsolationMVArun2v1DBoldDMwLT2015 = cms.InputTag(
'patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT2015')
625 _tauIDSourcesWith2015 = cms.PSet(
626 _tauIDSources2017v2.clone(),
629 slimmedTausUpdated.tauIDSources=_tauIDSourcesWith2015
631 for era
in [eras.run2_nanoAOD_94XMiniAODv1,]:
632 era.toModify(slimmedTausUpdated,
633 tauIDSources = _tauIDSourcesWith2017v1
636 _antiETauIDSources = cms.PSet(
637 againstElectronMVA6Raw2018 = cms.InputTag(
"patTauDiscriminationByElectronRejectionMVA62018Raw"),
638 againstElectronMVA6category2018 = cms.InputTag(
"patTauDiscriminationByElectronRejectionMVA62018Raw",
"category"),
639 againstElectronVLooseMVA62018 = cms.InputTag(
"patTauDiscriminationByVLooseElectronRejectionMVA62018"),
640 againstElectronLooseMVA62018 = cms.InputTag(
"patTauDiscriminationByLooseElectronRejectionMVA62018"),
641 againstElectronMediumMVA62018 = cms.InputTag(
"patTauDiscriminationByMediumElectronRejectionMVA62018"),
642 againstElectronTightMVA62018 = cms.InputTag(
"patTauDiscriminationByTightElectronRejectionMVA62018"),
643 againstElectronVTightMVA62018 = cms.InputTag(
"patTauDiscriminationByVTightElectronRejectionMVA62018")
645 _tauIDSourcesWithAntiE = cms.PSet(
646 slimmedTausUpdated.tauIDSources.clone(),
649 slimmedTausUpdated.tauIDSources=_tauIDSourcesWithAntiE
653 patTauMVAIDsSeq += slimmedTausUpdated