1 import FWCore.ParameterSet.Config
as cms
13 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw = patDiscriminationByIsolationMVArun2v1raw.clone(
14 PATTauProducer = cms.InputTag(
'slimmedTaus'),
15 Prediscriminants = noPrediscriminants,
16 loadMVAfromDB = cms.bool(
True),
17 mvaName = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2"),
18 mvaOpt = cms.string(
"DBoldDMwLTwGJ"),
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 verbosity = cms.int32(0)
77 patTauDiscriminationByVVLooseIsolationMVArun2v1DBnewDMwLT = patDiscriminationByIsolationMVArun2v1VLoose.clone(
78 PATTauProducer = cms.InputTag(
'slimmedTaus'),
79 Prediscriminants = noPrediscriminants,
80 toMultiplex = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw'),
81 key = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw',
'category'),
82 loadMVAfromDB = cms.bool(
True),
83 mvaOutput_normalization = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_mvaOutput_normalization"),
86 category = cms.uint32(0),
87 cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff95"),
88 variable = cms.string(
"pt"),
93 patTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBnewDMwLT.clone()
94 patTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff90")
96 patTauDiscriminationByLooseIsolationMVArun2v1DBnewDMwLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBnewDMwLT.clone()
97 patTauDiscriminationByLooseIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff80")
99 patTauDiscriminationByMediumIsolationMVArun2v1DBnewDMwLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBnewDMwLT.clone()
100 patTauDiscriminationByMediumIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff70")
102 patTauDiscriminationByTightIsolationMVArun2v1DBnewDMwLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBnewDMwLT.clone()
103 patTauDiscriminationByTightIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff60")
105 patTauDiscriminationByVTightIsolationMVArun2v1DBnewDMwLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBnewDMwLT.clone()
106 patTauDiscriminationByVTightIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff50")
108 patTauDiscriminationByVVTightIsolationMVArun2v1DBnewDMwLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBnewDMwLT.clone()
109 patTauDiscriminationByVVTightIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff40")
111 patTauDiscriminationByIsolationMVArun2v1DBnewDMwLTSeq = cms.Sequence(
112 patTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw
113 + patTauDiscriminationByVVLooseIsolationMVArun2v1DBnewDMwLT
114 + patTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT
115 + patTauDiscriminationByLooseIsolationMVArun2v1DBnewDMwLT
116 + patTauDiscriminationByMediumIsolationMVArun2v1DBnewDMwLT
117 + patTauDiscriminationByTightIsolationMVArun2v1DBnewDMwLT
118 + patTauDiscriminationByVTightIsolationMVArun2v1DBnewDMwLT
119 + patTauDiscriminationByVVTightIsolationMVArun2v1DBnewDMwLT
123 patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLTraw = patDiscriminationByIsolationMVArun2v1raw.clone(
124 PATTauProducer = cms.InputTag(
'slimmedTaus'),
125 Prediscriminants = noPrediscriminants,
126 loadMVAfromDB = cms.bool(
True),
127 mvaName = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2"),
128 mvaOpt = cms.string(
"DBoldDMwLTwGJ"),
129 srcChargedIsoPtSum = cms.string(
'chargedIsoPtSumdR03'),
130 srcFootprintCorrection = cms.string(
'footprintCorrectiondR03'),
131 srcNeutralIsoPtSum = cms.string(
'neutralIsoPtSumdR03'),
132 srcPUcorrPtSum = cms.string(
'puCorrPtSum'),
133 srcPhotonPtSumOutsideSignalCone = cms.string(
'photonPtSumOutsideSignalConedR03'),
134 verbosity = cms.int32(0)
137 patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMdR0p3wLT = patDiscriminationByIsolationMVArun2v1VLoose.clone(
138 PATTauProducer = cms.InputTag(
'slimmedTaus'),
139 Prediscriminants = noPrediscriminants,
140 toMultiplex = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLTraw'),
141 key = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLTraw',
'category'),
142 loadMVAfromDB = cms.bool(
True),
143 mvaOutput_normalization = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_mvaOutput_normalization"),
146 category = cms.uint32(0),
147 cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff95"),
148 variable = cms.string(
"pt"),
153 patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMdR0p3wLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMdR0p3wLT.clone()
154 patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMdR0p3wLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff90")
156 patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMdR0p3wLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMdR0p3wLT.clone()
157 patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMdR0p3wLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff80")
159 patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMdR0p3wLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMdR0p3wLT.clone()
160 patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMdR0p3wLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff70")
162 patTauDiscriminationByTightIsolationMVArun2v1DBoldDMdR0p3wLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMdR0p3wLT.clone()
163 patTauDiscriminationByTightIsolationMVArun2v1DBoldDMdR0p3wLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff60")
165 patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMdR0p3wLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMdR0p3wLT.clone()
166 patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMdR0p3wLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff50")
168 patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMdR0p3wLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMdR0p3wLT.clone()
169 patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMdR0p3wLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff40")
171 patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLTSeq = cms.Sequence(
172 patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLTraw
173 + patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMdR0p3wLT
174 + patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMdR0p3wLT
175 + patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMdR0p3wLT
176 + patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMdR0p3wLT
177 + patTauDiscriminationByTightIsolationMVArun2v1DBoldDMdR0p3wLT
178 + patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMdR0p3wLT
179 + patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMdR0p3wLT
184 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2017v1 = patDiscriminationByIsolationMVArun2v1raw.clone(
185 PATTauProducer = cms.InputTag(
'slimmedTaus'),
186 Prediscriminants = noPrediscriminants,
187 loadMVAfromDB = cms.bool(
True),
188 mvaName = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1"),
189 mvaOpt = cms.string(
"DBoldDMwLTwGJ"),
190 verbosity = cms.int32(0)
193 patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT2017v1 = patDiscriminationByIsolationMVArun2v1VLoose.clone(
194 PATTauProducer = cms.InputTag(
'slimmedTaus'),
195 Prediscriminants = noPrediscriminants,
196 toMultiplex = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2017v1'),
197 key = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2017v1',
'category'),
198 loadMVAfromDB = cms.bool(
True),
199 mvaOutput_normalization = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_mvaOutput_normalization"),
202 category = cms.uint32(0),
203 cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff95"),
204 variable = cms.string(
"pt"),
209 patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT2017v1 = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT2017v1.clone()
210 patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT2017v1.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff90")
212 patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT2017v1 = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT2017v1.clone()
213 patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT2017v1.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff80")
215 patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT2017v1 = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT2017v1.clone()
216 patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT2017v1.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff70")
218 patTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT2017v1 = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT2017v1.clone()
219 patTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT2017v1.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff60")
221 patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT2017v1 = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT2017v1.clone()
222 patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT2017v1.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff50")
224 patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT2017v1 = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT2017v1.clone()
225 patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT2017v1.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff40")
227 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2017v1Seq = cms.Sequence(
228 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2017v1
229 + patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT2017v1
230 + patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT2017v1
231 + patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT2017v1
232 + patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT2017v1
233 + patTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT2017v1
234 + patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT2017v1
235 + patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT2017v1
240 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2015 = patDiscriminationByIsolationMVArun2v1raw.clone(
241 PATTauProducer = cms.InputTag(
'slimmedTaus'),
242 Prediscriminants = noPrediscriminants,
243 loadMVAfromDB = cms.bool(
True),
244 mvaName = cms.string(
"RecoTauTag_tauIdMVADBoldDMwLTv1"),
245 mvaOpt = cms.string(
"DBoldDMwLT"),
246 verbosity = cms.int32(0)
249 patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT2015 = patDiscriminationByIsolationMVArun2v1VLoose.clone(
250 PATTauProducer = cms.InputTag(
'slimmedTaus'),
251 Prediscriminants = noPrediscriminants,
252 toMultiplex = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2015'),
253 key = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2015',
'category'),
254 loadMVAfromDB = cms.bool(
True),
255 mvaOutput_normalization = cms.string(
"RecoTauTag_tauIdMVADBoldDMwLTv1_mvaOutput_normalization"),
258 category = cms.uint32(0),
259 cut = cms.string(
"RecoTauTag_tauIdMVADBoldDMwLTv1_WPEff90"),
260 variable = cms.string(
"pt"),
265 patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT2015 = patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT2015.clone()
266 patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT2015.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVADBoldDMwLTv1_WPEff80")
268 patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT2015 = patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT2015.clone()
269 patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT2015.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVADBoldDMwLTv1_WPEff70")
271 patTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT2015 = patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT2015.clone()
272 patTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT2015.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVADBoldDMwLTv1_WPEff60")
274 patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT2015 = patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT2015.clone()
275 patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT2015.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVADBoldDMwLTv1_WPEff50")
277 patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT2015 = patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT2015.clone()
278 patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT2015.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVADBoldDMwLTv1_WPEff40")
280 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2015Seq = cms.Sequence(
281 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2015
282 + patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT2015
283 + patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT2015
284 + patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT2015
285 + patTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT2015
286 + patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT2015
287 + patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT2015
292 antiElectronDiscrMVA6_version =
"MVA6v3_noeveto" 294 from RecoTauTag.RecoTau.PATTauDiscriminationAgainstElectronMVA6_cfi
import patTauDiscriminationAgainstElectronMVA6
296 patTauDiscriminationByElectronRejectionMVA62018Raw = patTauDiscriminationAgainstElectronMVA6.clone(
297 Prediscriminants = noPrediscriminants,
298 vetoEcalCracks =
False,
299 mvaName_NoEleMatch_wGwoGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_BL',
300 mvaName_NoEleMatch_wGwoGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_EC',
301 mvaName_NoEleMatch_woGwoGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_BL',
302 mvaName_NoEleMatch_woGwoGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_EC',
303 mvaName_wGwGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_BL',
304 mvaName_wGwGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_EC',
305 mvaName_woGwGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_BL',
306 mvaName_woGwGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_EC' 311 patTauDiscriminationByVLooseElectronRejectionMVA62018 = patTauDiscriminantCutMultiplexer.clone(
312 PATTauProducer = patTauDiscriminationByElectronRejectionMVA62018Raw.PATTauProducer,
313 Prediscriminants = patTauDiscriminationByElectronRejectionMVA62018Raw.Prediscriminants,
314 toMultiplex = cms.InputTag(
"patTauDiscriminationByElectronRejectionMVA62018Raw"),
315 key = cms.InputTag(
"patTauDiscriminationByElectronRejectionMVA62018Raw",
"category"),
318 category = cms.uint32(0),
319 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_BL_WPeff98'),
320 variable = cms.string(
'pt')
323 category = cms.uint32(2),
324 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_BL_WPeff98'),
325 variable = cms.string(
'pt')
328 category = cms.uint32(5),
329 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_BL_WPeff98'),
330 variable = cms.string(
'pt')
333 category = cms.uint32(7),
334 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_BL_WPeff98'),
335 variable = cms.string(
'pt')
338 category = cms.uint32(8),
339 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_woGwoGSF_EC_WPeff98'),
340 variable = cms.string(
'pt')
343 category = cms.uint32(10),
344 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_NoEleMatch_wGwoGSF_EC_WPeff98'),
345 variable = cms.string(
'pt')
348 category = cms.uint32(13),
349 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_woGwGSF_EC_WPeff98'),
350 variable = cms.string(
'pt')
353 category = cms.uint32(15),
354 cut = cms.string(
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+
'_gbr_wGwGSF_EC_WPeff98'),
355 variable = cms.string(
'pt')
360 patTauDiscriminationByLooseElectronRejectionMVA62018 = patTauDiscriminationByVLooseElectronRejectionMVA62018.clone()
361 for m
in patTauDiscriminationByLooseElectronRejectionMVA62018.mapping:
362 m.cut = m.cut.value().
replace(
"WPeff98",
"WPeff90")
364 patTauDiscriminationByMediumElectronRejectionMVA62018 = patTauDiscriminationByVLooseElectronRejectionMVA62018.clone()
365 for m
in patTauDiscriminationByMediumElectronRejectionMVA62018.mapping:
366 m.cut = m.cut.value().
replace(
"WPeff98",
"WPeff80")
368 patTauDiscriminationByTightElectronRejectionMVA62018 = patTauDiscriminationByVLooseElectronRejectionMVA62018.clone()
369 for m
in patTauDiscriminationByTightElectronRejectionMVA62018.mapping:
370 m.cut = m.cut.value().
replace(
"WPeff98",
"WPeff70")
372 patTauDiscriminationByVTightElectronRejectionMVA62018 = patTauDiscriminationByVLooseElectronRejectionMVA62018.clone()
373 for m
in patTauDiscriminationByVTightElectronRejectionMVA62018.mapping:
374 m.cut = m.cut.value().
replace(
"WPeff98",
"WPeff60")
376 antiElectronDiscrMVA6v1_version =
"MVA6v1" 378 patTauDiscriminationByElectronRejectionMVA62015Raw = patTauDiscriminationAgainstElectronMVA6.clone(
379 Prediscriminants = noPrediscriminants,
380 vetoEcalCracks =
True,
381 mvaName_NoEleMatch_wGwoGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6v1_version+
'_gbr_NoEleMatch_wGwoGSF_BL',
382 mvaName_NoEleMatch_wGwoGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6v1_version+
'_gbr_NoEleMatch_wGwoGSF_EC',
383 mvaName_NoEleMatch_woGwoGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6v1_version+
'_gbr_NoEleMatch_woGwoGSF_BL',
384 mvaName_NoEleMatch_woGwoGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6v1_version+
'_gbr_NoEleMatch_woGwoGSF_EC',
385 mvaName_wGwGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6v1_version+
'_gbr_wGwGSF_BL',
386 mvaName_wGwGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6v1_version+
'_gbr_wGwGSF_EC',
387 mvaName_woGwGSF_BL =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6v1_version+
'_gbr_woGwGSF_BL',
388 mvaName_woGwGSF_EC =
'RecoTauTag_antiElectron'+antiElectronDiscrMVA6v1_version+
'_gbr_woGwGSF_EC' 392 patTauDiscriminationByVLooseElectronRejectionMVA62015 = patTauDiscriminationByVLooseElectronRejectionMVA62018.clone(
393 PATTauProducer = patTauDiscriminationByElectronRejectionMVA62015Raw.PATTauProducer,
394 Prediscriminants = patTauDiscriminationByElectronRejectionMVA62015Raw.Prediscriminants,
395 toMultiplex = cms.InputTag(
"patTauDiscriminationByElectronRejectionMVA62015Raw"),
396 key = cms.InputTag(
"patTauDiscriminationByElectronRejectionMVA62015Raw",
"category")
398 for m
in patTauDiscriminationByVLooseElectronRejectionMVA62015.mapping:
399 m.cut = m.cut.value().
replace(antiElectronDiscrMVA6_version, antiElectronDiscrMVA6v1_version).
replace(
"WPeff98",
"WPEff99")
401 patTauDiscriminationByLooseElectronRejectionMVA62015 = patTauDiscriminationByVLooseElectronRejectionMVA62015.clone()
402 for m
in patTauDiscriminationByLooseElectronRejectionMVA62015.mapping:
403 m.cut = m.cut.value().
replace(
"WPEff99",
"WPEff96")
405 patTauDiscriminationByMediumElectronRejectionMVA62015 = patTauDiscriminationByVLooseElectronRejectionMVA62015.clone()
406 for m
in patTauDiscriminationByMediumElectronRejectionMVA62015.mapping:
407 m.cut = m.cut.value().
replace(
"WPEff99",
"WPEff91")
409 patTauDiscriminationByTightElectronRejectionMVA62015 = patTauDiscriminationByVLooseElectronRejectionMVA62015.clone()
410 for m
in patTauDiscriminationByTightElectronRejectionMVA62015.mapping:
411 m.cut = m.cut.value().
replace(
"WPEff99",
"WPEff85")
413 patTauDiscriminationByVTightElectronRejectionMVA62015 = patTauDiscriminationByVLooseElectronRejectionMVA62015.clone()
414 for m
in patTauDiscriminationByVTightElectronRejectionMVA62015.mapping:
415 m.cut = m.cut.value().
replace(
"WPEff99",
"WPEff79")
417 _patTauDiscriminationByElectronRejection2018Seq = cms.Sequence(
418 patTauDiscriminationByElectronRejectionMVA62018Raw
419 +patTauDiscriminationByVLooseElectronRejectionMVA62018
420 +patTauDiscriminationByLooseElectronRejectionMVA62018
421 +patTauDiscriminationByMediumElectronRejectionMVA62018
422 +patTauDiscriminationByTightElectronRejectionMVA62018
423 +patTauDiscriminationByVTightElectronRejectionMVA62018
425 _patTauDiscriminationByElectronRejection2015Seq = cms.Sequence(
426 patTauDiscriminationByElectronRejectionMVA62015Raw
427 +patTauDiscriminationByVLooseElectronRejectionMVA62015
428 +patTauDiscriminationByLooseElectronRejectionMVA62015
429 +patTauDiscriminationByMediumElectronRejectionMVA62015
430 +patTauDiscriminationByTightElectronRejectionMVA62015
431 +patTauDiscriminationByVTightElectronRejectionMVA62015
433 patTauDiscriminationByElectronRejectionSeq = _patTauDiscriminationByElectronRejection2018Seq.copy()
434 (run2_nanoAOD_106Xv2 | run2_miniAOD_devel).toReplaceWith(patTauDiscriminationByElectronRejectionSeq,
435 _patTauDiscriminationByElectronRejection2015Seq)
439 _patTauMVAIDsSeq2017v2 = cms.Sequence(
440 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTSeq
441 +patTauDiscriminationByIsolationMVArun2v1DBnewDMwLTSeq
442 +patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLTSeq
443 +patTauDiscriminationByElectronRejectionSeq
445 patTauMVAIDsSeq = _patTauMVAIDsSeq2017v2.copy()
446 patTauMVAIDsSeq += patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2015Seq
448 _patTauMVAIDsSeqWith2017v1 = _patTauMVAIDsSeq2017v2.copy()
449 _patTauMVAIDsSeqWith2017v1 += patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2017v1Seq
450 for era
in [run2_nanoAOD_94XMiniAODv1,]:
451 era.toReplaceWith(patTauMVAIDsSeq,_patTauMVAIDsSeqWith2017v1)
454 slimmedTausUpdated = cms.EDProducer(
"PATTauIDEmbedder",
455 src = cms.InputTag(
'slimmedTaus'),
456 tauIDSources = cms.PSet()
458 _tauIDSources2017v2 = cms.PSet(
460 byIsolationMVArun2v1DBoldDMwLTraw2017v2 = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw'),
461 byVVLooseIsolationMVArun2v1DBoldDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT'),
462 byVLooseIsolationMVArun2v1DBoldDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT'),
463 byLooseIsolationMVArun2v1DBoldDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT'),
464 byMediumIsolationMVArun2v1DBoldDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT'),
465 byTightIsolationMVArun2v1DBoldDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT'),
466 byVTightIsolationMVArun2v1DBoldDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT'),
467 byVVTightIsolationMVArun2v1DBoldDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT'),
469 byIsolationMVArun2v1DBnewDMwLTraw2017v2 = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw'),
470 byVVLooseIsolationMVArun2v1DBnewDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByVVLooseIsolationMVArun2v1DBnewDMwLT'),
471 byVLooseIsolationMVArun2v1DBnewDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT'),
472 byLooseIsolationMVArun2v1DBnewDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByLooseIsolationMVArun2v1DBnewDMwLT'),
473 byMediumIsolationMVArun2v1DBnewDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByMediumIsolationMVArun2v1DBnewDMwLT'),
474 byTightIsolationMVArun2v1DBnewDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByTightIsolationMVArun2v1DBnewDMwLT'),
475 byVTightIsolationMVArun2v1DBnewDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByVTightIsolationMVArun2v1DBnewDMwLT'),
476 byVVTightIsolationMVArun2v1DBnewDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByVVTightIsolationMVArun2v1DBnewDMwLT'),
478 byIsolationMVArun2v1DBdR03oldDMwLTraw2017v2 = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLTraw'),
479 byVVLooseIsolationMVArun2v1DBdR03oldDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMdR0p3wLT'),
480 byVLooseIsolationMVArun2v1DBdR03oldDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMdR0p3wLT'),
481 byLooseIsolationMVArun2v1DBdR03oldDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMdR0p3wLT'),
482 byMediumIsolationMVArun2v1DBdR03oldDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMdR0p3wLT'),
483 byTightIsolationMVArun2v1DBdR03oldDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByTightIsolationMVArun2v1DBoldDMdR0p3wLT'),
484 byVTightIsolationMVArun2v1DBdR03oldDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMdR0p3wLT'),
485 byVVTightIsolationMVArun2v1DBdR03oldDMwLT2017v2 = cms.InputTag(
'patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMdR0p3wLT'),
487 _tauIDSources2017v1 = cms.PSet(
488 byIsolationMVArun2v1DBoldDMwLTraw2017v1 = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2017v1'),
489 byVVLooseIsolationMVArun2v1DBoldDMwLT2017v1 = cms.InputTag(
'patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT2017v1'),
490 byVLooseIsolationMVArun2v1DBoldDMwLT2017v1 = cms.InputTag(
'patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT2017v1'),
491 byLooseIsolationMVArun2v1DBoldDMwLT2017v1 = cms.InputTag(
'patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT2017v1'),
492 byMediumIsolationMVArun2v1DBoldDMwLT2017v1 = cms.InputTag(
'patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT2017v1'),
493 byTightIsolationMVArun2v1DBoldDMwLT2017v1 = cms.InputTag(
'patTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT2017v1'),
494 byVTightIsolationMVArun2v1DBoldDMwLT2017v1 = cms.InputTag(
'patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT2017v1'),
495 byVVTightIsolationMVArun2v1DBoldDMwLT2017v1 = cms.InputTag(
'patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT2017v1')
497 _tauIDSourcesWith2017v1 = cms.PSet(
498 _tauIDSources2017v2.clone(),
501 _tauIDSources2015 = cms.PSet(
502 byIsolationMVArun2v1DBoldDMwLTraw2015 = cms.InputTag(
'patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2015'),
503 byVLooseIsolationMVArun2v1DBoldDMwLT2015 = cms.InputTag(
'patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT2015'),
504 byLooseIsolationMVArun2v1DBoldDMwLT2015 = cms.InputTag(
'patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT2015'),
505 byMediumIsolationMVArun2v1DBoldDMwLT2015 = cms.InputTag(
'patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT2015'),
506 byTightIsolationMVArun2v1DBoldDMwLT2015 = cms.InputTag(
'patTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT2015'),
507 byVTightIsolationMVArun2v1DBoldDMwLT2015 = cms.InputTag(
'patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT2015'),
508 byVVTightIsolationMVArun2v1DBoldDMwLT2015 = cms.InputTag(
'patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT2015')
510 _tauIDSourcesWith2015 = cms.PSet(
511 _tauIDSources2017v2.clone(),
514 slimmedTausUpdated.tauIDSources = _tauIDSourcesWith2015
516 for era
in [run2_nanoAOD_94XMiniAODv1,]:
517 era.toModify(slimmedTausUpdated,
518 tauIDSources = _tauIDSourcesWith2017v1
521 _antiETauIDSources2018 = cms.PSet(
522 againstElectronMVA6Raw2018 = cms.InputTag(
"patTauDiscriminationByElectronRejectionMVA62018Raw"),
523 againstElectronMVA6category2018 = cms.InputTag(
"patTauDiscriminationByElectronRejectionMVA62018Raw",
"category"),
524 againstElectronVLooseMVA62018 = cms.InputTag(
"patTauDiscriminationByVLooseElectronRejectionMVA62018"),
525 againstElectronLooseMVA62018 = cms.InputTag(
"patTauDiscriminationByLooseElectronRejectionMVA62018"),
526 againstElectronMediumMVA62018 = cms.InputTag(
"patTauDiscriminationByMediumElectronRejectionMVA62018"),
527 againstElectronTightMVA62018 = cms.InputTag(
"patTauDiscriminationByTightElectronRejectionMVA62018"),
528 againstElectronVTightMVA62018 = cms.InputTag(
"patTauDiscriminationByVTightElectronRejectionMVA62018")
530 _tauIDSourcesWithAntiE2018 = cms.PSet(
531 slimmedTausUpdated.tauIDSources.clone(),
532 _antiETauIDSources2018
534 _antiETauIDSources2015 = cms.PSet(
535 againstElectronMVA6Raw2015 = cms.InputTag(
"patTauDiscriminationByElectronRejectionMVA62015Raw"),
536 againstElectronMVA6category2015 = cms.InputTag(
"patTauDiscriminationByElectronRejectionMVA62015Raw",
"category"),
537 againstElectronVLooseMVA62015 = cms.InputTag(
"patTauDiscriminationByVLooseElectronRejectionMVA62015"),
538 againstElectronLooseMVA62015 = cms.InputTag(
"patTauDiscriminationByLooseElectronRejectionMVA62015"),
539 againstElectronMediumMVA62015 = cms.InputTag(
"patTauDiscriminationByMediumElectronRejectionMVA62015"),
540 againstElectronTightMVA62015 = cms.InputTag(
"patTauDiscriminationByTightElectronRejectionMVA62015"),
541 againstElectronVTightMVA62015 = cms.InputTag(
"patTauDiscriminationByVTightElectronRejectionMVA62015")
543 _tauIDSourcesWithAntiE2015 = cms.PSet(
544 slimmedTausUpdated.tauIDSources.clone(),
545 _antiETauIDSources2015
547 slimmedTausUpdated.tauIDSources = _tauIDSourcesWithAntiE2018
548 (run2_nanoAOD_106Xv2 | run2_miniAOD_devel).toModify(slimmedTausUpdated,
549 tauIDSources = _tauIDSourcesWithAntiE2015)
552 from RecoTauTag.RecoTau.patTauDiscriminationAgainstElectronDeadECAL_cfi
import patTauDiscriminationAgainstElectronDeadECAL
553 patTauDiscriminationAgainstElectronDeadECALForNano = patTauDiscriminationAgainstElectronDeadECAL.clone(
554 PATTauProducer =
'slimmedTaus',
555 Prediscriminants = noPrediscriminants
557 _patTauMVAIDsSeqWithAntiEdeadECal = patTauMVAIDsSeq.copy()
558 _patTauMVAIDsSeqWithAntiEdeadECal += patTauDiscriminationAgainstElectronDeadECALForNano
559 _tauIDSourcesWithAntiEdeadECal = cms.PSet(
560 slimmedTausUpdated.tauIDSources.clone(),
561 againstElectronDeadECALForNano = cms.InputTag(
"patTauDiscriminationAgainstElectronDeadECALForNano")
563 (~(run2_nanoAOD_106Xv2 | run2_miniAOD_devel)).toReplaceWith(patTauMVAIDsSeq,_patTauMVAIDsSeqWithAntiEdeadECal)
564 (~(run2_nanoAOD_106Xv2 | run2_miniAOD_devel)).toModify(slimmedTausUpdated,
565 tauIDSources = _tauIDSourcesWithAntiEdeadECal)
568 patTauMVAIDsSeq += slimmedTausUpdated
def replace(string, replacements)
Updated tau collection with MVA-based tau-Ids rerun ####### Used only in some eras.