CMS 3D CMS Logo

taus_updatedMVAIds_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 ##################### Updated tau collection with MVA-based tau-Ids rerun #######
4 # Used only in some eras
5 from Configuration.StandardSequences.Eras import eras
8 
9 ### MVAIso 2017v2
10 ## DBoldDM
11 # Raw
12 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw = patDiscriminationByIsolationMVArun2v1raw.clone(
13  PATTauProducer = cms.InputTag('slimmedTaus'),
14  Prediscriminants = noPrediscriminants,
15  loadMVAfromDB = cms.bool(True),
16  mvaName = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2"), # name of the training you want to use
17  mvaOpt = cms.string("DBoldDMwLTwGJ"), # option you want to use for your training (i.e., which variables are used to compute the BDT score)
18  requireDecayMode = cms.bool(True),
19  verbosity = cms.int32(0)
20 )
21 # VVLoose WP
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"), # normalization fo the training you want to use
29  mapping = cms.VPSet(
30  cms.PSet(
31  category = cms.uint32(0),
32  cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff95"), # this is the name of the working point you want to use
33  variable = cms.string("pt"),
34  )
35  )
36 )
37 # VLoose WP
38 patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT.clone()
39 patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff90")
40 # Loose WP
41 patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT.clone()
42 patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff80")
43 # Medium WP
44 patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT.clone()
45 patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff70")
46 # Tight WP
47 patTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT.clone()
48 patTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff60")
49 # VTight WP
50 patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT.clone()
51 patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff50")
52 # VVTights WP
53 patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT.clone()
54 patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff40")
55 # MVAIso DBoldDM Seqeunce
56 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTSeq = cms.Sequence(
57  patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw
58  + patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT
59  + patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT
60  + patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT
61  + patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT
62  + patTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT
63  + patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT
64  + patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT
65 )
66 ## DBnewDM
67 # Raw
68 patTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw = patDiscriminationByIsolationMVArun2v1raw.clone(
69  PATTauProducer = cms.InputTag('slimmedTaus'),
70  Prediscriminants = noPrediscriminants,
71  loadMVAfromDB = cms.bool(True),
72  mvaName = cms.string("RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2"), # name of the training you want to use
73  mvaOpt = cms.string("DBnewDMwLTwGJ"), # option you want to use for your training (i.e., which variables are used to compute the BDT score)
74  requireDecayMode = cms.bool(True),
75  verbosity = cms.int32(0)
76 )
77 # VVLoose WP
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"), # normalization fo the training you want to use
85  mapping = cms.VPSet(
86  cms.PSet(
87  category = cms.uint32(0),
88  cut = cms.string("RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff95"), # this is the name of the working point you want to use
89  variable = cms.string("pt"),
90  )
91  )
92 )
93 # VLoose WP
94 patTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBnewDMwLT.clone()
95 patTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff90")
96 # Loose WP
97 patTauDiscriminationByLooseIsolationMVArun2v1DBnewDMwLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBnewDMwLT.clone()
98 patTauDiscriminationByLooseIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff80")
99 # Medium WP
100 patTauDiscriminationByMediumIsolationMVArun2v1DBnewDMwLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBnewDMwLT.clone()
101 patTauDiscriminationByMediumIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff70")
102 # Tight WP
103 patTauDiscriminationByTightIsolationMVArun2v1DBnewDMwLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBnewDMwLT.clone()
104 patTauDiscriminationByTightIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff60")
105 # VTight WP
106 patTauDiscriminationByVTightIsolationMVArun2v1DBnewDMwLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBnewDMwLT.clone()
107 patTauDiscriminationByVTightIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff50")
108 # VVTights WP
109 patTauDiscriminationByVVTightIsolationMVArun2v1DBnewDMwLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBnewDMwLT.clone()
110 patTauDiscriminationByVVTightIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff40")
111 # MVAIso DBnewDM Seqeunce
112 patTauDiscriminationByIsolationMVArun2v1DBnewDMwLTSeq = cms.Sequence(
113  patTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw
114  + patTauDiscriminationByVVLooseIsolationMVArun2v1DBnewDMwLT
115  + patTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT
116  + patTauDiscriminationByLooseIsolationMVArun2v1DBnewDMwLT
117  + patTauDiscriminationByMediumIsolationMVArun2v1DBnewDMwLT
118  + patTauDiscriminationByTightIsolationMVArun2v1DBnewDMwLT
119  + patTauDiscriminationByVTightIsolationMVArun2v1DBnewDMwLT
120  + patTauDiscriminationByVVTightIsolationMVArun2v1DBnewDMwLT
121 )
122 ## DBoldDMdR0p3
123 # Raw
124 patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLTraw = patDiscriminationByIsolationMVArun2v1raw.clone(
125  PATTauProducer = cms.InputTag('slimmedTaus'),
126  Prediscriminants = noPrediscriminants,
127  loadMVAfromDB = cms.bool(True),
128  mvaName = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2"), # name of the training you want to use
129  mvaOpt = cms.string("DBoldDMwLTwGJ"), # option you want to use for your training (i.e., which variables are used to compute the BDT score)
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)
137 )
138 # VVLoose WP
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"), # normalization fo the training you want to use
146  mapping = cms.VPSet(
147  cms.PSet(
148  category = cms.uint32(0),
149  cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff95"), # this is the name of the working point you want to use
150  variable = cms.string("pt"),
151  )
152  )
153 )
154 # VLoose WP
155 patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMdR0p3wLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMdR0p3wLT.clone()
156 patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMdR0p3wLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff90")
157 # Loose WP
158 patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMdR0p3wLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMdR0p3wLT.clone()
159 patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMdR0p3wLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff80")
160 # Medium WP
161 patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMdR0p3wLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMdR0p3wLT.clone()
162 patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMdR0p3wLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff70")
163 # Tight WP
164 patTauDiscriminationByTightIsolationMVArun2v1DBoldDMdR0p3wLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMdR0p3wLT.clone()
165 patTauDiscriminationByTightIsolationMVArun2v1DBoldDMdR0p3wLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff60")
166 # VTight WP
167 patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMdR0p3wLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMdR0p3wLT.clone()
168 patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMdR0p3wLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff50")
169 # VVTights WP
170 patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMdR0p3wLT = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMdR0p3wLT.clone()
171 patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMdR0p3wLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff40")
172 # MVAIso DBoldDMdR0p3 Seqeunce
173 patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLTSeq = cms.Sequence(
174  patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLTraw
175  + patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMdR0p3wLT
176  + patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMdR0p3wLT
177  + patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMdR0p3wLT
178  + patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMdR0p3wLT
179  + patTauDiscriminationByTightIsolationMVArun2v1DBoldDMdR0p3wLT
180  + patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMdR0p3wLT
181  + patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMdR0p3wLT
182 )
183 ### MVAIso 2017v1 for Nano on top of MiniAODv1
184 ## DBoldDM
185 # Raw
186 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2017v1 = patDiscriminationByIsolationMVArun2v1raw.clone(
187  PATTauProducer = cms.InputTag('slimmedTaus'),
188  Prediscriminants = noPrediscriminants,
189  loadMVAfromDB = cms.bool(True),
190  mvaName = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1"), # name of the training you want to use
191  mvaOpt = cms.string("DBoldDMwLTwGJ"), # option you want to use for your training (i.e., which variables are used to compute the BDT score)
192  requireDecayMode = cms.bool(True),
193  verbosity = cms.int32(0)
194 )
195 # VVLoose WP
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"), # normalization fo the training you want to use
203  mapping = cms.VPSet(
204  cms.PSet(
205  category = cms.uint32(0),
206  cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff95"), # this is the name of the working point you want to use
207  variable = cms.string("pt"),
208  )
209  )
210 )
211 # VLoose WP
212 patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT2017v1 = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT2017v1.clone()
213 patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT2017v1.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff90")
214 # Loose WP
215 patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT2017v1 = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT2017v1.clone()
216 patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT2017v1.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff80")
217 # Medium WP
218 patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT2017v1 = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT2017v1.clone()
219 patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT2017v1.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff70")
220 # Tight WP
221 patTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT2017v1 = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT2017v1.clone()
222 patTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT2017v1.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff60")
223 # VTight WP
224 patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT2017v1 = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT2017v1.clone()
225 patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT2017v1.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff50")
226 # VVTights WP
227 patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT2017v1 = patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT2017v1.clone()
228 patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT2017v1.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff40")
229 # MVAIso DBoldDM Seqeunce
230 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2017v1Seq = cms.Sequence(
231  patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2017v1
232  + patTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT2017v1
233  + patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT2017v1
234  + patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT2017v1
235  + patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT2017v1
236  + patTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT2017v1
237  + patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT2017v1
238  + patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT2017v1
239 )
240 ### MVAIso 2015 for Nano on top of MiniAODv2
241 ## DBoldDM
242 # Raw
243 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2015 = patDiscriminationByIsolationMVArun2v1raw.clone(
244  PATTauProducer = cms.InputTag('slimmedTaus'),
245  Prediscriminants = noPrediscriminants,
246  loadMVAfromDB = cms.bool(True),
247  mvaName = cms.string("RecoTauTag_tauIdMVADBoldDMwLTv1"), # name of the training you want to use
248  mvaOpt = cms.string("DBoldDMwLT"), # option you want to use for your training (i.e., which variables are used to compute the BDT score)
249  requireDecayMode = cms.bool(True),
250  verbosity = cms.int32(0)
251 )
252 # VLoose WP
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"), # normalization fo the training you want to use
260  mapping = cms.VPSet(
261  cms.PSet(
262  category = cms.uint32(0),
263  cut = cms.string("RecoTauTag_tauIdMVADBoldDMwLTv1_WPEff90"), # this is the name of the working point you want to use
264  variable = cms.string("pt"),
265  )
266  )
267 )
268 # Loose WP
269 patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT2015 = patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT2015.clone()
270 patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT2015.mapping[0].cut = cms.string("RecoTauTag_tauIdMVADBoldDMwLTv1_WPEff80")
271 # Medium WP
272 patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT2015 = patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT2015.clone()
273 patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT2015.mapping[0].cut = cms.string("RecoTauTag_tauIdMVADBoldDMwLTv1_WPEff70")
274 # Tight WP
275 patTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT2015 = patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT2015.clone()
276 patTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT2015.mapping[0].cut = cms.string("RecoTauTag_tauIdMVADBoldDMwLTv1_WPEff60")
277 # VTight WP
278 patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT2015 = patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT2015.clone()
279 patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT2015.mapping[0].cut = cms.string("RecoTauTag_tauIdMVADBoldDMwLTv1_WPEff50")
280 # VVTights WP
281 patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT2015 = patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT2015.clone()
282 patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT2015.mapping[0].cut = cms.string("RecoTauTag_tauIdMVADBoldDMwLTv1_WPEff40")
283 # MVAIso DBoldDM Seqeunce
284 patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2015Seq = cms.Sequence(
285  patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw2015
286  + patTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT2015
287  + patTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT2015
288  + patTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT2015
289  + patTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT2015
290  + patTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT2015
291  + patTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT2015
292 )
293 
294 
295 ### Define new anit-e discriminants
296 antiElectronDiscrMVA6_version = "MVA6v3_noeveto"
297 ## Raw
298 from RecoTauTag.RecoTau.PATTauDiscriminationAgainstElectronMVA6_cfi import patTauDiscriminationAgainstElectronMVA6
299 from RecoTauTag.RecoTau.TauDiscriminatorTools import noPrediscriminants
300 patTauDiscriminationByElectronRejectionMVA62018Raw = patTauDiscriminationAgainstElectronMVA6.clone(
301  Prediscriminants = noPrediscriminants, #already selected for MiniAOD
302  vetoEcalCracks = False, #keep tau candidates in EB-EE cracks
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'
311 )
312 ## anti-e 2018 WPs
313 from RecoTauTag.RecoTau.PATTauDiscriminantCutMultiplexer_cfi import patTauDiscriminantCutMultiplexer
314 # VLoose
315 patTauDiscriminationByVLooseElectronRejectionMVA62018 = patTauDiscriminantCutMultiplexer.clone(
316  PATTauProducer = patTauDiscriminationByElectronRejectionMVA62018Raw.PATTauProducer,
317  Prediscriminants = patTauDiscriminationByElectronRejectionMVA62018Raw.Prediscriminants,
318  toMultiplex = cms.InputTag("patTauDiscriminationByElectronRejectionMVA62018Raw"),
319  key = cms.InputTag("patTauDiscriminationByElectronRejectionMVA62018Raw","category"),
320  mapping = cms.VPSet(
321  cms.PSet(
322  category = cms.uint32(0),
323  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_NoEleMatch_woGwoGSF_BL_WPeff98'),
324  variable = cms.string('pt')
325  ),
326  cms.PSet(
327  category = cms.uint32(2),
328  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_NoEleMatch_wGwoGSF_BL_WPeff98'),
329  variable = cms.string('pt')
330  ),
331  cms.PSet(
332  category = cms.uint32(5),
333  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_woGwGSF_BL_WPeff98'),
334  variable = cms.string('pt')
335  ),
336  cms.PSet(
337  category = cms.uint32(7),
338  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_wGwGSF_BL_WPeff98'),
339  variable = cms.string('pt')
340  ),
341  cms.PSet(
342  category = cms.uint32(8),
343  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_NoEleMatch_woGwoGSF_EC_WPeff98'),
344  variable = cms.string('pt')
345  ),
346  cms.PSet(
347  category = cms.uint32(10),
348  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_NoEleMatch_wGwoGSF_EC_WPeff98'),
349  variable = cms.string('pt')
350  ),
351  cms.PSet(
352  category = cms.uint32(13),
353  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_woGwGSF_EC_WPeff98'),
354  variable = cms.string('pt')
355  ),
356  cms.PSet(
357  category = cms.uint32(15),
358  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_wGwGSF_EC_WPeff98'),
359  variable = cms.string('pt')
360  )
361  )
362 )
363 # Loose
364 patTauDiscriminationByLooseElectronRejectionMVA62018 = patTauDiscriminationByVLooseElectronRejectionMVA62018.clone(
365  mapping = cms.VPSet(
366  cms.PSet(
367  category = cms.uint32(0),
368  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_NoEleMatch_woGwoGSF_BL_WPeff90'),
369  variable = cms.string('pt')
370  ),
371  cms.PSet(
372  category = cms.uint32(2),
373  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_NoEleMatch_wGwoGSF_BL_WPeff90'),
374  variable = cms.string('pt')
375  ),
376  cms.PSet(
377  category = cms.uint32(5),
378  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_woGwGSF_BL_WPeff90'),
379  variable = cms.string('pt')
380  ),
381  cms.PSet(
382  category = cms.uint32(7),
383  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_wGwGSF_BL_WPeff90'),
384  variable = cms.string('pt')
385  ),
386  cms.PSet(
387  category = cms.uint32(8),
388  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_NoEleMatch_woGwoGSF_EC_WPeff90'),
389  variable = cms.string('pt')
390  ),
391  cms.PSet(
392  category = cms.uint32(10),
393  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_NoEleMatch_wGwoGSF_EC_WPeff90'),
394  variable = cms.string('pt')
395  ),
396  cms.PSet(
397  category = cms.uint32(13),
398  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_woGwGSF_EC_WPeff90'),
399  variable = cms.string('pt')
400  ),
401  cms.PSet(
402  category = cms.uint32(15),
403  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_wGwGSF_EC_WPeff90'),
404  variable = cms.string('pt')
405  )
406  )
407 )
408 # Medium
409 patTauDiscriminationByMediumElectronRejectionMVA62018 = patTauDiscriminationByVLooseElectronRejectionMVA62018.clone(
410  mapping = cms.VPSet(
411  cms.PSet(
412  category = cms.uint32(0),
413  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_NoEleMatch_woGwoGSF_BL_WPeff80'),
414  variable = cms.string('pt')
415  ),
416  cms.PSet(
417  category = cms.uint32(2),
418  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_NoEleMatch_wGwoGSF_BL_WPeff80'),
419  variable = cms.string('pt')
420  ),
421  cms.PSet(
422  category = cms.uint32(5),
423  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_woGwGSF_BL_WPeff80'),
424  variable = cms.string('pt')
425  ),
426  cms.PSet(
427  category = cms.uint32(7),
428  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_wGwGSF_BL_WPeff80'),
429  variable = cms.string('pt')
430  ),
431  cms.PSet(
432  category = cms.uint32(8),
433  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_NoEleMatch_woGwoGSF_EC_WPeff80'),
434  variable = cms.string('pt')
435  ),
436  cms.PSet(
437  category = cms.uint32(10),
438  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_NoEleMatch_wGwoGSF_EC_WPeff80'),
439  variable = cms.string('pt')
440  ),
441  cms.PSet(
442  category = cms.uint32(13),
443  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_woGwGSF_EC_WPeff80'),
444  variable = cms.string('pt')
445  ),
446  cms.PSet(
447  category = cms.uint32(15),
448  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_wGwGSF_EC_WPeff80'),
449  variable = cms.string('pt')
450  )
451  )
452 )
453 # Tight
454 patTauDiscriminationByTightElectronRejectionMVA62018 = patTauDiscriminationByVLooseElectronRejectionMVA62018.clone(
455  mapping = cms.VPSet(
456  cms.PSet(
457  category = cms.uint32(0),
458  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_NoEleMatch_woGwoGSF_BL_WPeff70'),
459  variable = cms.string('pt')
460  ),
461  cms.PSet(
462  category = cms.uint32(2),
463  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_NoEleMatch_wGwoGSF_BL_WPeff70'),
464  variable = cms.string('pt')
465  ),
466  cms.PSet(
467  category = cms.uint32(5),
468  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_woGwGSF_BL_WPeff70'),
469  variable = cms.string('pt')
470  ),
471  cms.PSet(
472  category = cms.uint32(7),
473  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_wGwGSF_BL_WPeff70'),
474  variable = cms.string('pt')
475  ),
476  cms.PSet(
477  category = cms.uint32(8),
478  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_NoEleMatch_woGwoGSF_EC_WPeff70'),
479  variable = cms.string('pt')
480  ),
481  cms.PSet(
482  category = cms.uint32(10),
483  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_NoEleMatch_wGwoGSF_EC_WPeff70'),
484  variable = cms.string('pt')
485  ),
486  cms.PSet(
487  category = cms.uint32(13),
488  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_woGwGSF_EC_WPeff70'),
489  variable = cms.string('pt')
490  ),
491  cms.PSet(
492  category = cms.uint32(15),
493  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_wGwGSF_EC_WPeff70'),
494  variable = cms.string('pt')
495  )
496  )
497 )
498 # VTight
499 patTauDiscriminationByVTightElectronRejectionMVA62018 = patTauDiscriminationByVLooseElectronRejectionMVA62018.clone(
500  mapping = cms.VPSet(
501  cms.PSet(
502  category = cms.uint32(0),
503  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_NoEleMatch_woGwoGSF_BL_WPeff60'),
504  variable = cms.string('pt')
505  ),
506  cms.PSet(
507  category = cms.uint32(2),
508  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_NoEleMatch_wGwoGSF_BL_WPeff60'),
509  variable = cms.string('pt')
510  ),
511  cms.PSet(
512  category = cms.uint32(5),
513  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_woGwGSF_BL_WPeff60'),
514  variable = cms.string('pt')
515  ),
516  cms.PSet(
517  category = cms.uint32(7),
518  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_wGwGSF_BL_WPeff60'),
519  variable = cms.string('pt')
520  ),
521  cms.PSet(
522  category = cms.uint32(8),
523  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_NoEleMatch_woGwoGSF_EC_WPeff60'),
524  variable = cms.string('pt')
525  ),
526  cms.PSet(
527  category = cms.uint32(10),
528  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_NoEleMatch_wGwoGSF_EC_WPeff60'),
529  variable = cms.string('pt')
530  ),
531  cms.PSet(
532  category = cms.uint32(13),
533  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_woGwGSF_EC_WPeff60'),
534  variable = cms.string('pt')
535  ),
536  cms.PSet(
537  category = cms.uint32(15),
538  cut = cms.string('RecoTauTag_antiElectron'+antiElectronDiscrMVA6_version+'_gbr_wGwGSF_EC_WPeff60'),
539  variable = cms.string('pt')
540  )
541  )
542 )
543 ### Put all anti-e tau-IDs into a sequence
544 patTauDiscriminationByElectronRejectionSeq = cms.Sequence(
545  patTauDiscriminationByElectronRejectionMVA62018Raw
546  +patTauDiscriminationByVLooseElectronRejectionMVA62018
547  +patTauDiscriminationByLooseElectronRejectionMVA62018
548  +patTauDiscriminationByMediumElectronRejectionMVA62018
549  +patTauDiscriminationByTightElectronRejectionMVA62018
550  +patTauDiscriminationByVTightElectronRejectionMVA62018
551 )
552 
553 ### put all new MVA tau-Id stuff to one Sequence
554 _patTauMVAIDsSeq2017v2 = cms.Sequence(
555  patTauDiscriminationByIsolationMVArun2v1DBoldDMwLTSeq
556  +patTauDiscriminationByIsolationMVArun2v1DBnewDMwLTSeq
557  +patTauDiscriminationByIsolationMVArun2v1DBoldDMdR0p3wLTSeq
558  +patTauDiscriminationByElectronRejectionSeq
559 )
560 patTauMVAIDsSeq = _patTauMVAIDsSeq2017v2.copy()
561 patTauMVAIDsSeq += patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2015Seq
562 
563 _patTauMVAIDsSeqWith2017v1 = _patTauMVAIDsSeq2017v2.copy()
564 _patTauMVAIDsSeqWith2017v1 += patTauDiscriminationByIsolationMVArun2v1DBoldDMwLT2017v1Seq
565 for era in [eras.run2_nanoAOD_94XMiniAODv1,]:
566  era.toReplaceWith(patTauMVAIDsSeq,_patTauMVAIDsSeqWith2017v1)
567 
568 # embed new MVA tau-Ids into new tau collection
569 slimmedTausUpdated = cms.EDProducer("PATTauIDEmbedder",
570  src = cms.InputTag('slimmedTaus'),
571  tauIDSources = cms.PSet() # PSet defined below in era dependent way
572 )
573 _tauIDSources2017v2 = cms.PSet(
574  #oldDM
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'),
583  #newDM
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'),
592  #oldDMdR0p3
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'),
601 )
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')
611 )
612 _tauIDSourcesWith2017v1 = cms.PSet(
613  _tauIDSources2017v2.clone(),
614  _tauIDSources2017v1
615 )
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')
624 )
625 _tauIDSourcesWith2015 = cms.PSet(
626  _tauIDSources2017v2.clone(),
627  _tauIDSources2015
628 )
629 slimmedTausUpdated.tauIDSources=_tauIDSourcesWith2015
630 
631 for era in [eras.run2_nanoAOD_94XMiniAODv1,]:
632  era.toModify(slimmedTausUpdated,
633  tauIDSources = _tauIDSourcesWith2017v1
634  )
635 
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")
644 )
645 _tauIDSourcesWithAntiE = cms.PSet(
646  slimmedTausUpdated.tauIDSources.clone(),
647  _antiETauIDSources
648 )
649 slimmedTausUpdated.tauIDSources=_tauIDSourcesWithAntiE
650 
651 
652 
653 patTauMVAIDsSeq += slimmedTausUpdated
654