CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HPSPFTaus_reminiAOD_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 import copy
3 
4 '''
5 
6 Sequences for HPS taus
7 
8 '''
9 
10 # Define the discriminators for this tau
20 
22 
23 # Load helper functions to change the source of the discriminants
25 
26 # Load PFjet input parameters
27 from RecoTauTag.RecoTau.PFRecoTauPFJetInputs_cfi import PFRecoTauPFJetInputs
28 
29 # deltaBeta correction factor
30 ak4dBetaCorrection = 0.20
31 
32 # Load MVAs from SQLlite file/prep. DB
34 
35 # Select those taus that pass the HPS selections
36 # - pt > 15, mass cuts, tauCone cut
37 from RecoTauTag.RecoTau.PFRecoTauDiscriminationByHPSSelection_cfi import hpsSelectionDiscriminator, decayMode_1Prong0Pi0, decayMode_1Prong1Pi0, decayMode_1Prong2Pi0, decayMode_2Prong0Pi0, decayMode_2Prong1Pi0, decayMode_3Prong0Pi0
38 hpsSelectionDiscriminator76xReMiniAOD = hpsSelectionDiscriminator.clone()
39 
40 hpsPFTauDiscriminationByDecayModeFindingNewDMs76xReMiniAOD = hpsSelectionDiscriminator76xReMiniAOD.clone(
41  PFTauProducer = cms.InputTag('hpsPFTauProducer76xReMiniAOD'),
42  #----------------------------------------------------------------------------
43  # CV: disable 3Prong1Pi0 decay mode
44  decayModes = cms.VPSet(
45  decayMode_1Prong0Pi0,
46  decayMode_1Prong1Pi0,
47  decayMode_1Prong2Pi0,
48  decayMode_2Prong0Pi0,
49  decayMode_2Prong1Pi0,
50  decayMode_3Prong0Pi0
51  )
52  #----------------------------------------------------------------------------
53 )
54 hpsPFTauDiscriminationByDecayModeFindingOldDMs76xReMiniAOD = hpsSelectionDiscriminator76xReMiniAOD.clone(
55  PFTauProducer = cms.InputTag('hpsPFTauProducer76xReMiniAOD'),
56  decayModes = cms.VPSet(
57  decayMode_1Prong0Pi0,
58  decayMode_1Prong1Pi0,
59  decayMode_1Prong2Pi0,
60  decayMode_3Prong0Pi0
61  ),
62  requireTauChargedHadronsToBeChargedPFCands = cms.bool(True)
63 )
64 hpsPFTauDiscriminationByDecayModeFinding76xReMiniAOD = hpsPFTauDiscriminationByDecayModeFindingOldDMs76xReMiniAOD.clone() # CV: kept for backwards compatibility
65 
66 # Define decay mode prediscriminant
67 requireDecayMode76xReMiniAOD = cms.PSet(
68  BooleanOperator = cms.string("and"),
69  decayMode = cms.PSet(
70  Producer = cms.InputTag('hpsPFTauDiscriminationByDecayModeFindingNewDMs76xReMiniAOD'),
71  cut = cms.double(0.5)
72  )
73 )
74 
75 #Building the prototype for the Discriminator by Isolation
76 hpsPFTauDiscriminationByLooseIsolation76xReMiniAOD = pfRecoTauDiscriminationByIsolation.clone(
77  PFTauProducer = cms.InputTag("hpsPFTauProducer76xReMiniAOD"),
78  Prediscriminants = requireDecayMode76xReMiniAOD.clone(),
79  ApplyDiscriminationByTrackerIsolation = False,
80  ApplyDiscriminationByECALIsolation = True,
81  applyOccupancyCut = True
82 )
83 hpsPFTauDiscriminationByLooseIsolation76xReMiniAOD.Prediscriminants.preIso = cms.PSet(
84  Producer = cms.InputTag("hpsPFTauDiscriminationByLooseChargedIsolation76xReMiniAOD"),
85  cut = cms.double(0.5))
86 
87 # Make an even looser discriminator
88 hpsPFTauDiscriminationByVLooseIsolation76xReMiniAOD = hpsPFTauDiscriminationByLooseIsolation76xReMiniAOD.clone(
89  customOuterCone = cms.double(0.3),
90  isoConeSizeForDeltaBeta = cms.double(0.3),
91 )
92 hpsPFTauDiscriminationByVLooseIsolation76xReMiniAOD.qualityCuts.isolationQualityCuts.minTrackPt = 1.5
93 hpsPFTauDiscriminationByVLooseIsolation76xReMiniAOD.qualityCuts.isolationQualityCuts.minGammaEt = 2.0
94 hpsPFTauDiscriminationByVLooseIsolation76xReMiniAOD.Prediscriminants.preIso.Producer = cms.InputTag("hpsPFTauDiscriminationByVLooseChargedIsolation76xReMiniAOD")
95 
96 hpsPFTauDiscriminationByMediumIsolation76xReMiniAOD = hpsPFTauDiscriminationByLooseIsolation76xReMiniAOD.clone()
97 hpsPFTauDiscriminationByMediumIsolation76xReMiniAOD.qualityCuts.isolationQualityCuts.minTrackPt = 0.8
98 hpsPFTauDiscriminationByMediumIsolation76xReMiniAOD.qualityCuts.isolationQualityCuts.minGammaEt = 0.8
99 hpsPFTauDiscriminationByMediumIsolation76xReMiniAOD.Prediscriminants.preIso.Producer = cms.InputTag("hpsPFTauDiscriminationByMediumChargedIsolation76xReMiniAOD")
100 
101 hpsPFTauDiscriminationByTightIsolation76xReMiniAOD = hpsPFTauDiscriminationByLooseIsolation76xReMiniAOD.clone()
102 hpsPFTauDiscriminationByTightIsolation76xReMiniAOD.qualityCuts.isolationQualityCuts.minTrackPt = 0.5
103 hpsPFTauDiscriminationByTightIsolation76xReMiniAOD.qualityCuts.isolationQualityCuts.minGammaEt = 0.5
104 hpsPFTauDiscriminationByTightIsolation76xReMiniAOD.Prediscriminants.preIso.Producer = cms.InputTag("hpsPFTauDiscriminationByTightChargedIsolation76xReMiniAOD")
105 
106 hpsPFTauDiscriminationByIsolationSeq76xReMiniAOD = cms.Sequence(
107  hpsPFTauDiscriminationByVLooseIsolation76xReMiniAOD*
108  hpsPFTauDiscriminationByLooseIsolation76xReMiniAOD*
109  hpsPFTauDiscriminationByMediumIsolation76xReMiniAOD*
110  hpsPFTauDiscriminationByTightIsolation76xReMiniAOD
111 )
112 
113 _isolation_types = ['VLoose', 'Loose', 'Medium', 'Tight']
114 # Now build the sequences that apply PU corrections
115 
116 # Make Delta Beta corrections (on SumPt quantity)
117 hpsPFTauDiscriminationByVLooseIsolationDBSumPtCorr76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolation76xReMiniAOD.clone(
118  deltaBetaPUTrackPtCutOverride = cms.double(0.5),
119  applyDeltaBetaCorrection = True,
120  isoConeSizeForDeltaBeta = 0.8,
121  deltaBetaFactor = "%0.4f"%(0.0123/0.1687),
122  applyOccupancyCut = False,
123  applySumPtCut = True,
124 )
125 hpsPFTauDiscriminationByVLooseIsolationDBSumPtCorr76xReMiniAOD.maximumSumPtCut = hpsPFTauDiscriminationByVLooseIsolationDBSumPtCorr76xReMiniAOD.qualityCuts.isolationQualityCuts.minGammaEt
126 
127 hpsPFTauDiscriminationByLooseIsolationDBSumPtCorr76xReMiniAOD = hpsPFTauDiscriminationByLooseIsolation76xReMiniAOD.clone(
128  deltaBetaPUTrackPtCutOverride = cms.double(0.5),
129  applyDeltaBetaCorrection = True,
130  isoConeSizeForDeltaBeta = 0.8,
131  deltaBetaFactor = "%0.4f"%(0.0123/0.1687),
132  applyOccupancyCut = False,
133  applySumPtCut = True,
134 )
135 hpsPFTauDiscriminationByLooseIsolationDBSumPtCorr76xReMiniAOD.maximumSumPtCut = hpsPFTauDiscriminationByLooseIsolationDBSumPtCorr76xReMiniAOD.qualityCuts.isolationQualityCuts.minGammaEt
136 
137 hpsPFTauDiscriminationByMediumIsolationDBSumPtCorr76xReMiniAOD = hpsPFTauDiscriminationByMediumIsolation76xReMiniAOD.clone(
138  deltaBetaPUTrackPtCutOverride = cms.double(0.5),
139  applyDeltaBetaCorrection = True,
140  isoConeSizeForDeltaBeta = 0.8,
141  deltaBetaFactor = "%0.4f"%(0.0462/0.1687),
142  applyOccupancyCut = False,
143  applySumPtCut = True,
144 )
145 hpsPFTauDiscriminationByMediumIsolationDBSumPtCorr76xReMiniAOD.maximumSumPtCut = hpsPFTauDiscriminationByMediumIsolationDBSumPtCorr76xReMiniAOD.qualityCuts.isolationQualityCuts.minGammaEt
146 
147 hpsPFTauDiscriminationByTightIsolationDBSumPtCorr76xReMiniAOD = hpsPFTauDiscriminationByTightIsolation76xReMiniAOD.clone(
148  deltaBetaPUTrackPtCutOverride = cms.double(0.5),
149  applyDeltaBetaCorrection = True,
150  isoConeSizeForDeltaBeta = 0.8,
151  deltaBetaFactor = "%0.4f"%(ak4dBetaCorrection),
152  applyOccupancyCut = False,
153  applySumPtCut = True,
154 )
155 hpsPFTauDiscriminationByTightIsolationDBSumPtCorr76xReMiniAOD.maximumSumPtCut = hpsPFTauDiscriminationByTightIsolationDBSumPtCorr76xReMiniAOD.qualityCuts.isolationQualityCuts.minGammaEt
156 
157 hpsPFTauDiscriminationByIsolationSeqDBSumPtCorr76xReMiniAOD = cms.Sequence(
158  hpsPFTauDiscriminationByVLooseIsolationDBSumPtCorr76xReMiniAOD*
159  hpsPFTauDiscriminationByLooseIsolationDBSumPtCorr76xReMiniAOD*
160  hpsPFTauDiscriminationByMediumIsolationDBSumPtCorr76xReMiniAOD*
161  hpsPFTauDiscriminationByTightIsolationDBSumPtCorr76xReMiniAOD
162 )
163 
164 hpsPFTauDiscriminationByVLooseCombinedIsolationDBSumPtCorr76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationDBSumPtCorr76xReMiniAOD.clone(
165  ApplyDiscriminationByTrackerIsolation = True,
166  ApplyDiscriminationByECALIsolation = True,
167  deltaBetaFactor = "%0.4f"%((0.09/0.25)*(ak4dBetaCorrection)),
168  applyOccupancyCut = False,
169  applySumPtCut = True,
170  maximumSumPtCut = 3.5,
171  Prediscriminants = requireDecayMode76xReMiniAOD.clone()
172 )
173 hpsPFTauDiscriminationByVLooseCombinedIsolationDBSumPtCorr76xReMiniAOD.qualityCuts.isolationQualityCuts.minTrackPt = 0.5
174 hpsPFTauDiscriminationByVLooseCombinedIsolationDBSumPtCorr76xReMiniAOD.qualityCuts.isolationQualityCuts.minGammaEt = 0.5
175 
176 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr76xReMiniAOD = hpsPFTauDiscriminationByLooseIsolationDBSumPtCorr76xReMiniAOD.clone(
177  ApplyDiscriminationByTrackerIsolation = True,
178  ApplyDiscriminationByECALIsolation = True,
179  deltaBetaFactor = "%0.4f"%(ak4dBetaCorrection),
180  applyOccupancyCut = False,
181  applySumPtCut = True,
182  maximumSumPtCut = 2.5,
183  Prediscriminants = requireDecayMode76xReMiniAOD.clone()
184 )
185 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr76xReMiniAOD.qualityCuts.isolationQualityCuts.minTrackPt = 0.5
186 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr76xReMiniAOD.qualityCuts.isolationQualityCuts.minGammaEt = 0.5
187 
188 hpsPFTauDiscriminationByRawCombinedIsolationDBSumPtCorr76xReMiniAOD = hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr76xReMiniAOD.clone(
189  applySumPtCut = False,
190  storeRawSumPt = cms.bool(True)
191 )
192 
193 hpsPFTauDiscriminationByRawChargedIsolationDBSumPtCorr76xReMiniAOD = hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr76xReMiniAOD.clone(
194  applySumPtCut = False,
195  ApplyDiscriminationByECALIsolation = False,
196  storeRawSumPt = cms.bool(True)
197 )
198 
199 hpsPFTauDiscriminationByRawGammaIsolationDBSumPtCorr76xReMiniAOD = hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr76xReMiniAOD.clone(
200  applySumPtCut = False,
201  ApplyDiscriminationByTrackerIsolation = False,
202  storeRawSumPt = cms.bool(True)
203 )
204 
205 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr76xReMiniAOD = hpsPFTauDiscriminationByMediumIsolationDBSumPtCorr76xReMiniAOD.clone(
206  ApplyDiscriminationByTrackerIsolation = True,
207  ApplyDiscriminationByECALIsolation = True,
208  deltaBetaFactor = "%0.4f"%(ak4dBetaCorrection),
209  applyOccupancyCut = False,
210  applySumPtCut = True,
211  maximumSumPtCut = 1.5,
212  Prediscriminants = requireDecayMode76xReMiniAOD.clone()
213 )
214 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr76xReMiniAOD.qualityCuts.isolationQualityCuts.minTrackPt = 0.5
215 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr76xReMiniAOD.qualityCuts.isolationQualityCuts.minGammaEt = 0.5
216 
217 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr76xReMiniAOD = hpsPFTauDiscriminationByTightIsolationDBSumPtCorr76xReMiniAOD.clone(
218  ApplyDiscriminationByTrackerIsolation = True,
219  ApplyDiscriminationByECALIsolation = True,
220  deltaBetaFactor = "%0.4f"%(ak4dBetaCorrection),
221  applyOccupancyCut = False,
222  applySumPtCut = True,
223  maximumSumPtCut = 0.8,
224  Prediscriminants = requireDecayMode76xReMiniAOD.clone()
225 )
226 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr76xReMiniAOD.qualityCuts.isolationQualityCuts.minTrackPt = 0.5
227 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr76xReMiniAOD.qualityCuts.isolationQualityCuts.minGammaEt = 0.5
228 
229 hpsPFTauDiscriminationByCombinedIsolationSeqDBSumPtCorr76xReMiniAOD = cms.Sequence(
230  hpsPFTauDiscriminationByVLooseCombinedIsolationDBSumPtCorr76xReMiniAOD*
231  hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr76xReMiniAOD*
232  hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr76xReMiniAOD*
233  hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr76xReMiniAOD
234 )
235 
236 #Charge isolation based on combined isolation
237 hpsPFTauDiscriminationByVLooseChargedIsolation76xReMiniAOD = hpsPFTauDiscriminationByVLooseCombinedIsolationDBSumPtCorr76xReMiniAOD.clone(
238  ApplyDiscriminationByECALIsolation = False
239 )
240 
241 hpsPFTauDiscriminationByLooseChargedIsolation76xReMiniAOD = hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr76xReMiniAOD.clone(
242  ApplyDiscriminationByECALIsolation = False
243 )
244 
245 hpsPFTauDiscriminationByMediumChargedIsolation76xReMiniAOD = hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr76xReMiniAOD.clone(
246  ApplyDiscriminationByECALIsolation = False
247 )
248 hpsPFTauDiscriminationByTightChargedIsolation76xReMiniAOD = hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr76xReMiniAOD.clone(
249  ApplyDiscriminationByECALIsolation = False
250 )
251 
252 hpsPFTauDiscriminationByChargedIsolationSeq76xReMiniAOD = cms.Sequence(
253  hpsPFTauDiscriminationByVLooseChargedIsolation76xReMiniAOD*
254  hpsPFTauDiscriminationByLooseChargedIsolation76xReMiniAOD*
255  hpsPFTauDiscriminationByMediumChargedIsolation76xReMiniAOD*
256  hpsPFTauDiscriminationByTightChargedIsolation76xReMiniAOD
257 )
258 
259 #copying discriminator against electrons and muons
260 hpsPFTauDiscriminationByLooseElectronRejection76xReMiniAOD = pfRecoTauDiscriminationAgainstElectron.clone(
261  PFTauProducer = cms.InputTag('hpsPFTauProducer76xReMiniAOD'),
262  Prediscriminants = noPrediscriminants,
263  PFElectronMVA_maxValue = cms.double(0.6)
264 )
265 hpsPFTauDiscriminationByMediumElectronRejection76xReMiniAOD = pfRecoTauDiscriminationAgainstElectron.clone(
266  PFTauProducer = cms.InputTag('hpsPFTauProducer76xReMiniAOD'),
267  Prediscriminants = noPrediscriminants,
268  ApplyCut_EcalCrackCut = cms.bool(True)
269 )
270 hpsPFTauDiscriminationByTightElectronRejection76xReMiniAOD = pfRecoTauDiscriminationAgainstElectron.clone(
271  PFTauProducer = cms.InputTag('hpsPFTauProducer76xReMiniAOD'),
272  Prediscriminants = noPrediscriminants,
273  ApplyCut_EcalCrackCut = cms.bool(True),
274  ApplyCut_BremCombined = cms.bool(True)
275 )
276 
277 hpsPFTauDiscriminationByLooseMuonRejection76xReMiniAOD = pfRecoTauDiscriminationAgainstMuon.clone(
278  PFTauProducer = cms.InputTag('hpsPFTauProducer76xReMiniAOD'),
279  Prediscriminants = noPrediscriminants
280 )
281 hpsPFTauDiscriminationByMediumMuonRejection76xReMiniAOD = pfRecoTauDiscriminationAgainstMuon.clone(
282  PFTauProducer = cms.InputTag('hpsPFTauProducer76xReMiniAOD'),
283  Prediscriminants = noPrediscriminants,
284  discriminatorOption = cms.string('noAllArbitrated')
285 )
286 hpsPFTauDiscriminationByTightMuonRejection76xReMiniAOD = pfRecoTauDiscriminationAgainstMuon.clone(
287  PFTauProducer = cms.InputTag('hpsPFTauProducer76xReMiniAOD'),
288  Prediscriminants = noPrediscriminants,
289  discriminatorOption = cms.string('noAllArbitratedWithHOP')
290 )
291 
292 hpsPFTauDiscriminationByLooseMuonRejection276xReMiniAOD = pfRecoTauDiscriminationAgainstMuon2.clone(
293  PFTauProducer = cms.InputTag('hpsPFTauProducer76xReMiniAOD'),
294  Prediscriminants = noPrediscriminants
295 )
296 hpsPFTauDiscriminationByMediumMuonRejection276xReMiniAOD = pfRecoTauDiscriminationAgainstMuon2.clone(
297  PFTauProducer = cms.InputTag('hpsPFTauProducer76xReMiniAOD'),
298  Prediscriminants = noPrediscriminants,
299  discriminatorOption = cms.string('medium')
300 )
301 hpsPFTauDiscriminationByTightMuonRejection276xReMiniAOD = pfRecoTauDiscriminationAgainstMuon2.clone(
302  PFTauProducer = cms.InputTag('hpsPFTauProducer76xReMiniAOD'),
303  Prediscriminants = noPrediscriminants,
304  discriminatorOption = cms.string('tight')
305 )
306 
307 hpsPFTauDiscriminationByLooseMuonRejection376xReMiniAOD = pfRecoTauDiscriminationAgainstMuon2.clone(
308  PFTauProducer = cms.InputTag('hpsPFTauProducer76xReMiniAOD'),
309  Prediscriminants = noPrediscriminants,
310  discriminatorOption = cms.string('custom'),
311  maxNumberOfMatches = cms.int32(1),
312  doCaloMuonVeto = cms.bool(True),
313  maxNumberOfHitsLast2Stations = cms.int32(-1)
314 )
315 hpsPFTauDiscriminationByTightMuonRejection376xReMiniAOD = hpsPFTauDiscriminationByLooseMuonRejection376xReMiniAOD.clone(
316  maxNumberOfHitsLast2Stations = cms.int32(0)
317 )
318 
319 hpsPFTauDiscriminationByMVArawMuonRejection76xReMiniAOD = pfRecoTauDiscriminationAgainstMuonMVA.clone(
320  PFTauProducer = cms.InputTag('hpsPFTauProducer76xReMiniAOD'),
321  Prediscriminants = requireDecayMode76xReMiniAOD.clone(),
322  loadMVAfromDB = cms.bool(True),
323  returnMVA = cms.bool(True),
324  mvaName = cms.string("RecoTauTag_againstMuonMVAv1")
325 )
326 ##hpsPFTauDiscriminationByMVALooseMuonRejection76xReMiniAOD = hpsPFTauDiscriminationByMVArawMuonRejection76xReMiniAOD.clone(
327 ## returnMVA = cms.bool(False),
328 ## mvaMin = cms.double(0.75)
329 ##)
330 ##hpsPFTauDiscriminationByMVAMediumMuonRejection76xReMiniAOD = hpsPFTauDiscriminationByMVALooseMuonRejection76xReMiniAOD.clone(
331 ## mvaMin = cms.double(0.950)
332 ##)
333 ##hpsPFTauDiscriminationByMVATightMuonRejection76xReMiniAOD = hpsPFTauDiscriminationByMVALooseMuonRejection76xReMiniAOD.clone(
334 ## mvaMin = cms.double(0.975)
335 ##)
336 hpsPFTauDiscriminationByMVALooseMuonRejection76xReMiniAOD = recoTauDiscriminantCutMultiplexer.clone(
337  PFTauProducer = cms.InputTag('hpsPFTauProducer76xReMiniAOD'),
338  Prediscriminants = requireDecayMode76xReMiniAOD.clone(),
339  toMultiplex = cms.InputTag('hpsPFTauDiscriminationByMVArawMuonRejection76xReMiniAOD'),
340  key = cms.InputTag('hpsPFTauDiscriminationByMVArawMuonRejection76xReMiniAOD:category'),
341  loadMVAfromDB = cms.bool(True),
342  mvaOutput_normalization = cms.string("RecoTauTag_againstMuonMVAv1_mvaOutput_normalization"),
343  mapping = cms.VPSet(
344  cms.PSet(
345  category = cms.uint32(0),
346  cut = cms.string("RecoTauTag_againstMuonMVAv1_WPeff99_5"),
347  variable = cms.string("pt")
348  )
349  )
350 )
351 hpsPFTauDiscriminationByMVAMediumMuonRejection76xReMiniAOD = hpsPFTauDiscriminationByMVALooseMuonRejection76xReMiniAOD.clone()
352 hpsPFTauDiscriminationByMVAMediumMuonRejection76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_againstMuonMVAv1_WPeff99_0")
353 hpsPFTauDiscriminationByMVATightMuonRejection76xReMiniAOD = hpsPFTauDiscriminationByMVALooseMuonRejection76xReMiniAOD.clone()
354 hpsPFTauDiscriminationByMVATightMuonRejection76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_againstMuonMVAv1_WPeff98_0")
355 
356 hpsPFTauDiscriminationByMVA5rawElectronRejection76xReMiniAOD = pfRecoTauDiscriminationAgainstElectronMVA5.clone(
357  PFTauProducer = cms.InputTag('hpsPFTauProducer76xReMiniAOD'),
358  Prediscriminants = requireDecayMode76xReMiniAOD.clone(),
359  loadMVAfromDB = cms.bool(True),
360  mvaName_NoEleMatch_woGwoGSF_BL = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_woGwoGSF_BL"),
361  mvaName_NoEleMatch_woGwGSF_BL = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_woGwGSF_BL"),
362  mvaName_NoEleMatch_wGwoGSF_BL = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_wGwoGSF_BL"),
363  mvaName_NoEleMatch_wGwGSF_BL = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_wGwGSF_BL"),
364  mvaName_woGwoGSF_BL = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_woGwoGSF_BL"),
365  mvaName_woGwGSF_BL = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_woGwGSF_BL"),
366  mvaName_wGwoGSF_BL = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_wGwoGSF_BL"),
367  mvaName_wGwGSF_BL = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_wGwGSF_BL"),
368  mvaName_NoEleMatch_woGwoGSF_EC = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_woGwoGSF_EC"),
369  mvaName_NoEleMatch_woGwGSF_EC = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_woGwGSF_EC"),
370  mvaName_NoEleMatch_wGwoGSF_EC = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_wGwoGSF_EC"),
371  mvaName_NoEleMatch_wGwGSF_EC = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_wGwGSF_EC"),
372  mvaName_woGwoGSF_EC = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_woGwoGSF_EC"),
373  mvaName_woGwGSF_EC = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_woGwGSF_EC"),
374  mvaName_wGwoGSF_EC = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_wGwoGSF_EC"),
375  mvaName_wGwGSF_EC = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_wGwGSF_EC")
376 )
377 
378 hpsPFTauDiscriminationByMVA5VLooseElectronRejection76xReMiniAOD = recoTauDiscriminantCutMultiplexer.clone(
379  PFTauProducer = cms.InputTag('hpsPFTauProducer76xReMiniAOD'),
380  Prediscriminants = requireDecayMode76xReMiniAOD.clone(),
381  toMultiplex = cms.InputTag('hpsPFTauDiscriminationByMVA5rawElectronRejection76xReMiniAOD'),
382  key = cms.InputTag('hpsPFTauDiscriminationByMVA5rawElectronRejection76xReMiniAOD:category'),
383  loadMVAfromDB = cms.bool(True),
384  mapping = cms.VPSet(
385  cms.PSet(
386  category = cms.uint32(0), # minMVANoEleMatchWOgWOgsfBL
387  cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_woGwoGSF_BL_WPeff99"),
388  variable = cms.string("pt")
389  ),
390  cms.PSet(
391  category = cms.uint32(1), # minMVANoEleMatchWOgWgsfBL
392  cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_woGwGSF_BL_WPeff99"),
393  variable = cms.string("pt")
394  ),
395  cms.PSet(
396  category = cms.uint32(2), # minMVANoEleMatchWgWOgsfBL
397  cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_wGwoGSF_BL_WPeff99"),
398  variable = cms.string("pt")
399  ),
400  cms.PSet(
401  category = cms.uint32(3), # minMVANoEleMatchWgWgsfBL
402  cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_wGwGSF_BL_WPeff99"),
403  variable = cms.string("pt")
404  ),
405  cms.PSet(
406  category = cms.uint32(4), # minMVAWOgWOgsfBL
407  cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_woGwoGSF_BL_WPeff99"),
408  variable = cms.string("pt")
409  ),
410  cms.PSet(
411  category = cms.uint32(5), # minMVAWOgWgsfBL
412  cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_woGwGSF_BL_WPeff99"),
413  variable = cms.string("pt")
414  ),
415  cms.PSet(
416  category = cms.uint32(6), # minMVAWgWOgsfBL
417  cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_wGwoGSF_BL_WPeff99"),
418  variable = cms.string("pt")
419  ),
420  cms.PSet(
421  category = cms.uint32(7), # minMVAWgWgsfBL
422  cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_wGwGSF_BL_WPeff99"),
423  variable = cms.string("pt")
424  ),
425  cms.PSet(
426  category = cms.uint32(8), # minMVANoEleMatchWOgWOgsfEC
427  cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_woGwoGSF_EC_WPeff99"),
428  variable = cms.string("pt")
429  ),
430  cms.PSet(
431  category = cms.uint32(9), # minMVANoEleMatchWOgWgsfEC
432  cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_woGwGSF_EC_WPeff99"),
433  variable = cms.string("pt")
434  ),
435  cms.PSet(
436  category = cms.uint32(10), # minMVANoEleMatchWgWOgsfEC
437  cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_wGwoGSF_EC_WPeff99"),
438  variable = cms.string("pt")
439  ),
440  cms.PSet(
441  category = cms.uint32(11), # minMVANoEleMatchWgWgsfEC
442  cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_wGwGSF_EC_WPeff99"),
443  variable = cms.string("pt")
444  ),
445  cms.PSet(
446  category = cms.uint32(12), # minMVAWOgWOgsfEC
447  cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_woGwoGSF_EC_WPeff99"),
448  variable = cms.string("pt")
449  ),
450  cms.PSet(
451  category = cms.uint32(13), # minMVAWOgWgsfEC
452  cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_woGwGSF_EC_WPeff99"),
453  variable = cms.string("pt")
454  ),
455  cms.PSet(
456  category = cms.uint32(14), # minMVAWgWOgsfEC
457  cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_wGwoGSF_EC_WPeff99"),
458  variable = cms.string("pt")
459  ),
460  cms.PSet(
461  category = cms.uint32(15), # minMVAWgWgsfEC
462  cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_wGwGSF_EC_WPeff99"),
463  variable = cms.string("pt")
464  )
465  )
466 )
467 
468 hpsPFTauDiscriminationByMVA5LooseElectronRejection76xReMiniAOD = copy.deepcopy(hpsPFTauDiscriminationByMVA5VLooseElectronRejection76xReMiniAOD)
469 hpsPFTauDiscriminationByMVA5LooseElectronRejection76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_woGwoGSF_BL_WPeff96")
470 hpsPFTauDiscriminationByMVA5LooseElectronRejection76xReMiniAOD.mapping[1].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_woGwGSF_BL_WPeff96")
471 hpsPFTauDiscriminationByMVA5LooseElectronRejection76xReMiniAOD.mapping[2].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_wGwoGSF_BL_WPeff96")
472 hpsPFTauDiscriminationByMVA5LooseElectronRejection76xReMiniAOD.mapping[3].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_wGwGSF_BL_WPeff96")
473 hpsPFTauDiscriminationByMVA5LooseElectronRejection76xReMiniAOD.mapping[4].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_woGwoGSF_BL_WPeff96")
474 hpsPFTauDiscriminationByMVA5LooseElectronRejection76xReMiniAOD.mapping[5].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_woGwGSF_BL_WPeff96")
475 hpsPFTauDiscriminationByMVA5LooseElectronRejection76xReMiniAOD.mapping[6].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_wGwoGSF_BL_WPeff96")
476 hpsPFTauDiscriminationByMVA5LooseElectronRejection76xReMiniAOD.mapping[7].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_wGwGSF_BL_WPeff96")
477 hpsPFTauDiscriminationByMVA5LooseElectronRejection76xReMiniAOD.mapping[8].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_woGwoGSF_EC_WPeff96")
478 hpsPFTauDiscriminationByMVA5LooseElectronRejection76xReMiniAOD.mapping[9].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_woGwGSF_EC_WPeff96")
479 hpsPFTauDiscriminationByMVA5LooseElectronRejection76xReMiniAOD.mapping[10].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_wGwoGSF_EC_WPeff96")
480 hpsPFTauDiscriminationByMVA5LooseElectronRejection76xReMiniAOD.mapping[11].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_wGwGSF_EC_WPeff96")
481 hpsPFTauDiscriminationByMVA5LooseElectronRejection76xReMiniAOD.mapping[12].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_woGwoGSF_EC_WPeff96")
482 hpsPFTauDiscriminationByMVA5LooseElectronRejection76xReMiniAOD.mapping[13].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_woGwGSF_EC_WPeff96")
483 hpsPFTauDiscriminationByMVA5LooseElectronRejection76xReMiniAOD.mapping[14].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_wGwoGSF_EC_WPeff96")
484 hpsPFTauDiscriminationByMVA5LooseElectronRejection76xReMiniAOD.mapping[15].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_wGwGSF_EC_WPeff96")
485 
486 hpsPFTauDiscriminationByMVA5MediumElectronRejection76xReMiniAOD = copy.deepcopy(hpsPFTauDiscriminationByMVA5VLooseElectronRejection76xReMiniAOD)
487 hpsPFTauDiscriminationByMVA5MediumElectronRejection76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_woGwoGSF_BL_WPeff91")
488 hpsPFTauDiscriminationByMVA5MediumElectronRejection76xReMiniAOD.mapping[1].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_woGwGSF_BL_WPeff91")
489 hpsPFTauDiscriminationByMVA5MediumElectronRejection76xReMiniAOD.mapping[2].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_wGwoGSF_BL_WPeff91")
490 hpsPFTauDiscriminationByMVA5MediumElectronRejection76xReMiniAOD.mapping[3].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_wGwGSF_BL_WPeff91")
491 hpsPFTauDiscriminationByMVA5MediumElectronRejection76xReMiniAOD.mapping[4].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_woGwoGSF_BL_WPeff91")
492 hpsPFTauDiscriminationByMVA5MediumElectronRejection76xReMiniAOD.mapping[5].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_woGwGSF_BL_WPeff91")
493 hpsPFTauDiscriminationByMVA5MediumElectronRejection76xReMiniAOD.mapping[6].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_wGwoGSF_BL_WPeff91")
494 hpsPFTauDiscriminationByMVA5MediumElectronRejection76xReMiniAOD.mapping[7].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_wGwGSF_BL_WPeff91")
495 hpsPFTauDiscriminationByMVA5MediumElectronRejection76xReMiniAOD.mapping[8].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_woGwoGSF_EC_WPeff91")
496 hpsPFTauDiscriminationByMVA5MediumElectronRejection76xReMiniAOD.mapping[9].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_woGwGSF_EC_WPeff91")
497 hpsPFTauDiscriminationByMVA5MediumElectronRejection76xReMiniAOD.mapping[10].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_wGwoGSF_EC_WPeff91")
498 hpsPFTauDiscriminationByMVA5MediumElectronRejection76xReMiniAOD.mapping[11].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_wGwGSF_EC_WPeff91")
499 hpsPFTauDiscriminationByMVA5MediumElectronRejection76xReMiniAOD.mapping[12].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_woGwoGSF_EC_WPeff91")
500 hpsPFTauDiscriminationByMVA5MediumElectronRejection76xReMiniAOD.mapping[13].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_woGwGSF_EC_WPeff91")
501 hpsPFTauDiscriminationByMVA5MediumElectronRejection76xReMiniAOD.mapping[14].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_wGwoGSF_EC_WPeff91")
502 hpsPFTauDiscriminationByMVA5MediumElectronRejection76xReMiniAOD.mapping[15].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_wGwGSF_EC_WPeff91")
503 
504 hpsPFTauDiscriminationByMVA5TightElectronRejection76xReMiniAOD = copy.deepcopy(hpsPFTauDiscriminationByMVA5VLooseElectronRejection76xReMiniAOD)
505 hpsPFTauDiscriminationByMVA5TightElectronRejection76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_woGwoGSF_BL_WPeff85")
506 hpsPFTauDiscriminationByMVA5TightElectronRejection76xReMiniAOD.mapping[1].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_woGwGSF_BL_WPeff85")
507 hpsPFTauDiscriminationByMVA5TightElectronRejection76xReMiniAOD.mapping[2].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_wGwoGSF_BL_WPeff85")
508 hpsPFTauDiscriminationByMVA5TightElectronRejection76xReMiniAOD.mapping[3].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_wGwGSF_BL_WPeff85")
509 hpsPFTauDiscriminationByMVA5TightElectronRejection76xReMiniAOD.mapping[4].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_woGwoGSF_BL_WPeff85")
510 hpsPFTauDiscriminationByMVA5TightElectronRejection76xReMiniAOD.mapping[5].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_woGwGSF_BL_WPeff85")
511 hpsPFTauDiscriminationByMVA5TightElectronRejection76xReMiniAOD.mapping[6].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_wGwoGSF_BL_WPeff85")
512 hpsPFTauDiscriminationByMVA5TightElectronRejection76xReMiniAOD.mapping[7].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_wGwGSF_BL_WPeff85")
513 hpsPFTauDiscriminationByMVA5TightElectronRejection76xReMiniAOD.mapping[8].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_woGwoGSF_EC_WPeff85")
514 hpsPFTauDiscriminationByMVA5TightElectronRejection76xReMiniAOD.mapping[9].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_woGwGSF_EC_WPeff85")
515 hpsPFTauDiscriminationByMVA5TightElectronRejection76xReMiniAOD.mapping[10].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_wGwoGSF_EC_WPeff85")
516 hpsPFTauDiscriminationByMVA5TightElectronRejection76xReMiniAOD.mapping[11].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_wGwGSF_EC_WPeff85")
517 hpsPFTauDiscriminationByMVA5TightElectronRejection76xReMiniAOD.mapping[12].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_woGwoGSF_EC_WPeff85")
518 hpsPFTauDiscriminationByMVA5TightElectronRejection76xReMiniAOD.mapping[13].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_woGwGSF_EC_WPeff85")
519 hpsPFTauDiscriminationByMVA5TightElectronRejection76xReMiniAOD.mapping[14].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_wGwoGSF_EC_WPeff85")
520 hpsPFTauDiscriminationByMVA5TightElectronRejection76xReMiniAOD.mapping[15].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_wGwGSF_EC_WPeff85")
521 
522 hpsPFTauDiscriminationByMVA5VTightElectronRejection76xReMiniAOD = copy.deepcopy(hpsPFTauDiscriminationByMVA5VLooseElectronRejection76xReMiniAOD)
523 hpsPFTauDiscriminationByMVA5VTightElectronRejection76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_woGwoGSF_BL_WPeff79")
524 hpsPFTauDiscriminationByMVA5VTightElectronRejection76xReMiniAOD.mapping[1].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_woGwGSF_BL_WPeff79")
525 hpsPFTauDiscriminationByMVA5VTightElectronRejection76xReMiniAOD.mapping[2].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_wGwoGSF_BL_WPeff79")
526 hpsPFTauDiscriminationByMVA5VTightElectronRejection76xReMiniAOD.mapping[3].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_wGwGSF_BL_WPeff79")
527 hpsPFTauDiscriminationByMVA5VTightElectronRejection76xReMiniAOD.mapping[4].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_woGwoGSF_BL_WPeff79")
528 hpsPFTauDiscriminationByMVA5VTightElectronRejection76xReMiniAOD.mapping[5].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_woGwGSF_BL_WPeff79")
529 hpsPFTauDiscriminationByMVA5VTightElectronRejection76xReMiniAOD.mapping[6].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_wGwoGSF_BL_WPeff79")
530 hpsPFTauDiscriminationByMVA5VTightElectronRejection76xReMiniAOD.mapping[7].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_wGwGSF_BL_WPeff79")
531 hpsPFTauDiscriminationByMVA5VTightElectronRejection76xReMiniAOD.mapping[8].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_woGwoGSF_EC_WPeff79")
532 hpsPFTauDiscriminationByMVA5VTightElectronRejection76xReMiniAOD.mapping[9].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_woGwGSF_EC_WPeff79")
533 hpsPFTauDiscriminationByMVA5VTightElectronRejection76xReMiniAOD.mapping[10].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_wGwoGSF_EC_WPeff79")
534 hpsPFTauDiscriminationByMVA5VTightElectronRejection76xReMiniAOD.mapping[11].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_NoEleMatch_wGwGSF_EC_WPeff79")
535 hpsPFTauDiscriminationByMVA5VTightElectronRejection76xReMiniAOD.mapping[12].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_woGwoGSF_EC_WPeff79")
536 hpsPFTauDiscriminationByMVA5VTightElectronRejection76xReMiniAOD.mapping[13].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_woGwGSF_EC_WPeff79")
537 hpsPFTauDiscriminationByMVA5VTightElectronRejection76xReMiniAOD.mapping[14].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_wGwoGSF_EC_WPeff79")
538 hpsPFTauDiscriminationByMVA5VTightElectronRejection76xReMiniAOD.mapping[15].cut = cms.string("RecoTauTag_antiElectronMVA5v1_gbr_wGwGSF_EC_WPeff79")
539 
540 hpsPFTauDiscriminationByMVA6rawElectronRejection76xReMiniAOD = pfRecoTauDiscriminationAgainstElectronMVA6.clone(
541  PFTauProducer = cms.InputTag('hpsPFTauProducer76xReMiniAOD'),
542  Prediscriminants = requireDecayMode76xReMiniAOD.clone(),
543  loadMVAfromDB = cms.bool(True),
544  mvaName_NoEleMatch_woGwoGSF_BL = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_BL"),
545  mvaName_NoEleMatch_wGwoGSF_BL = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_BL"),
546  mvaName_woGwGSF_BL = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_BL"),
547  mvaName_wGwGSF_BL = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_BL"),
548  mvaName_NoEleMatch_woGwoGSF_EC = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_EC"),
549  mvaName_NoEleMatch_wGwoGSF_EC = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_EC"),
550  mvaName_woGwGSF_EC = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_EC"),
551  mvaName_wGwGSF_EC = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_EC")
552 )
553 
554 hpsPFTauDiscriminationByMVA6VLooseElectronRejection76xReMiniAOD = recoTauDiscriminantCutMultiplexer.clone(
555  PFTauProducer = cms.InputTag('hpsPFTauProducer76xReMiniAOD'),
556  Prediscriminants = requireDecayMode76xReMiniAOD.clone(),
557  toMultiplex = cms.InputTag('hpsPFTauDiscriminationByMVA6rawElectronRejection76xReMiniAOD'),
558  key = cms.InputTag('hpsPFTauDiscriminationByMVA6rawElectronRejection76xReMiniAOD:category'),
559  loadMVAfromDB = cms.bool(True),
560  mapping = cms.VPSet(
561  cms.PSet(
562  category = cms.uint32(0), # minMVANoEleMatchWOgWOgsfBL
563  cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_BL_WPEff99"),
564  variable = cms.string("pt")
565  ),
566  cms.PSet(
567  category = cms.uint32(2), # minMVANoEleMatchWgWOgsfBL
568  cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_BL_WPEff99"),
569  variable = cms.string("pt")
570  ),
571  cms.PSet(
572  category = cms.uint32(5), # minMVAWOgWgsfBL
573  cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_BL_WPEff99"),
574  variable = cms.string("pt")
575  ),
576  cms.PSet(
577  category = cms.uint32(7), # minMVAWgWgsfBL
578  cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_BL_WPEff99"),
579  variable = cms.string("pt")
580  ),
581  cms.PSet(
582  category = cms.uint32(8), # minMVANoEleMatchWOgWOgsfEC
583  cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_EC_WPEff99"),
584  variable = cms.string("pt")
585  ),
586  cms.PSet(
587  category = cms.uint32(10), # minMVANoEleMatchWgWOgsfEC
588  cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_EC_WPEff99"),
589  variable = cms.string("pt")
590  ),
591  cms.PSet(
592  category = cms.uint32(13), # minMVAWOgWgsfEC
593  cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_EC_WPEff99"),
594  variable = cms.string("pt")
595  ),
596  cms.PSet(
597  category = cms.uint32(15), # minMVAWgWgsfEC
598  cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_EC_WPEff99"),
599  variable = cms.string("pt")
600  )
601  )
602 )
603 
604 hpsPFTauDiscriminationByMVA6LooseElectronRejection76xReMiniAOD = copy.deepcopy(hpsPFTauDiscriminationByMVA6VLooseElectronRejection76xReMiniAOD)
605 hpsPFTauDiscriminationByMVA6LooseElectronRejection76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_BL_WPEff96")
606 hpsPFTauDiscriminationByMVA6LooseElectronRejection76xReMiniAOD.mapping[1].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_BL_WPEff96")
607 hpsPFTauDiscriminationByMVA6LooseElectronRejection76xReMiniAOD.mapping[2].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_BL_WPEff96")
608 hpsPFTauDiscriminationByMVA6LooseElectronRejection76xReMiniAOD.mapping[3].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_BL_WPEff96")
609 hpsPFTauDiscriminationByMVA6LooseElectronRejection76xReMiniAOD.mapping[4].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_EC_WPEff96")
610 hpsPFTauDiscriminationByMVA6LooseElectronRejection76xReMiniAOD.mapping[5].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_EC_WPEff96")
611 hpsPFTauDiscriminationByMVA6LooseElectronRejection76xReMiniAOD.mapping[6].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_EC_WPEff96")
612 hpsPFTauDiscriminationByMVA6LooseElectronRejection76xReMiniAOD.mapping[7].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_EC_WPEff96")
613 
614 hpsPFTauDiscriminationByMVA6MediumElectronRejection76xReMiniAOD = copy.deepcopy(hpsPFTauDiscriminationByMVA6VLooseElectronRejection76xReMiniAOD)
615 hpsPFTauDiscriminationByMVA6MediumElectronRejection76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_BL_WPEff91")
616 hpsPFTauDiscriminationByMVA6MediumElectronRejection76xReMiniAOD.mapping[1].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_BL_WPEff91")
617 hpsPFTauDiscriminationByMVA6MediumElectronRejection76xReMiniAOD.mapping[2].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_BL_WPEff91")
618 hpsPFTauDiscriminationByMVA6MediumElectronRejection76xReMiniAOD.mapping[3].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_BL_WPEff91")
619 hpsPFTauDiscriminationByMVA6MediumElectronRejection76xReMiniAOD.mapping[4].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_EC_WPEff91")
620 hpsPFTauDiscriminationByMVA6MediumElectronRejection76xReMiniAOD.mapping[5].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_EC_WPEff91")
621 hpsPFTauDiscriminationByMVA6MediumElectronRejection76xReMiniAOD.mapping[6].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_EC_WPEff91")
622 hpsPFTauDiscriminationByMVA6MediumElectronRejection76xReMiniAOD.mapping[7].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_EC_WPEff91")
623 
624 hpsPFTauDiscriminationByMVA6TightElectronRejection76xReMiniAOD = copy.deepcopy(hpsPFTauDiscriminationByMVA6VLooseElectronRejection76xReMiniAOD)
625 hpsPFTauDiscriminationByMVA6TightElectronRejection76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_BL_WPEff85")
626 hpsPFTauDiscriminationByMVA6TightElectronRejection76xReMiniAOD.mapping[1].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_BL_WPEff85")
627 hpsPFTauDiscriminationByMVA6TightElectronRejection76xReMiniAOD.mapping[2].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_BL_WPEff85")
628 hpsPFTauDiscriminationByMVA6TightElectronRejection76xReMiniAOD.mapping[3].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_BL_WPEff85")
629 hpsPFTauDiscriminationByMVA6TightElectronRejection76xReMiniAOD.mapping[4].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_EC_WPEff85")
630 hpsPFTauDiscriminationByMVA6TightElectronRejection76xReMiniAOD.mapping[5].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_EC_WPEff85")
631 hpsPFTauDiscriminationByMVA6TightElectronRejection76xReMiniAOD.mapping[6].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_EC_WPEff85")
632 hpsPFTauDiscriminationByMVA6TightElectronRejection76xReMiniAOD.mapping[7].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_EC_WPEff85")
633 
634 hpsPFTauDiscriminationByMVA6VTightElectronRejection76xReMiniAOD = copy.deepcopy(hpsPFTauDiscriminationByMVA6VLooseElectronRejection76xReMiniAOD)
635 hpsPFTauDiscriminationByMVA6VTightElectronRejection76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_BL_WPEff79")
636 hpsPFTauDiscriminationByMVA6VTightElectronRejection76xReMiniAOD.mapping[1].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_BL_WPEff79")
637 hpsPFTauDiscriminationByMVA6VTightElectronRejection76xReMiniAOD.mapping[2].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_BL_WPEff79")
638 hpsPFTauDiscriminationByMVA6VTightElectronRejection76xReMiniAOD.mapping[3].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_BL_WPEff79")
639 hpsPFTauDiscriminationByMVA6VTightElectronRejection76xReMiniAOD.mapping[4].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_EC_WPEff79")
640 hpsPFTauDiscriminationByMVA6VTightElectronRejection76xReMiniAOD.mapping[5].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_EC_WPEff79")
641 hpsPFTauDiscriminationByMVA6VTightElectronRejection76xReMiniAOD.mapping[6].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_EC_WPEff79")
642 hpsPFTauDiscriminationByMVA6VTightElectronRejection76xReMiniAOD.mapping[7].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_EC_WPEff79")
643 
644 hpsPFTauDiscriminationByDeadECALElectronRejection76xReMiniAOD = pfRecoTauDiscriminationAgainstElectronDeadECAL.clone(
645  PFTauProducer = cms.InputTag('hpsPFTauProducer76xReMiniAOD'),
646  Prediscriminants = requireDecayMode76xReMiniAOD.clone()
647 )
648 
649 #Define new sequence that is using smaller number on hits cut
650 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits76xReMiniAOD = hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr76xReMiniAOD.clone()
651 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3Hits76xReMiniAOD = hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr76xReMiniAOD.clone()
652 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3Hits76xReMiniAOD = hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr76xReMiniAOD.clone()
653 
654 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits76xReMiniAOD.qualityCuts.isolationQualityCuts.minTrackHits = cms.uint32(3)
655 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits76xReMiniAOD.applyPhotonPtSumOutsideSignalConeCut = cms.bool(True)
656 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3Hits76xReMiniAOD.qualityCuts.isolationQualityCuts.minTrackHits = cms.uint32(3)
657 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3Hits76xReMiniAOD.applyPhotonPtSumOutsideSignalConeCut = cms.bool(True)
658 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3Hits76xReMiniAOD.qualityCuts.isolationQualityCuts.minTrackHits = cms.uint32(3)
659 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3Hits76xReMiniAOD.applyPhotonPtSumOutsideSignalConeCut = cms.bool(True)
660 
661 hpsPFTauDiscriminationByRawCombinedIsolationDBSumPtCorr3Hits76xReMiniAOD = hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits76xReMiniAOD.clone(
662  applySumPtCut = False,
663  storeRawSumPt = cms.bool(True)
664 )
665 
666 hpsPFTauDiscriminationByCombinedIsolationSeqDBSumPtCorr3Hits76xReMiniAOD = cms.Sequence(
667  hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits76xReMiniAOD*
668  hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3Hits76xReMiniAOD*
669  hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3Hits76xReMiniAOD*
670  hpsPFTauDiscriminationByRawCombinedIsolationDBSumPtCorr3Hits76xReMiniAOD
671 )
672 
673 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3HitsdR0376xReMiniAOD = hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits76xReMiniAOD.clone()
674 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3HitsdR0376xReMiniAOD = hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3Hits76xReMiniAOD.clone()
675 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3HitsdR0376xReMiniAOD = hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3Hits76xReMiniAOD.clone()
676 
677 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3HitsdR0376xReMiniAOD.deltaBetaFactor = cms.string('0.0720') # 0.2*(0.3/0.5)^2
678 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3HitsdR0376xReMiniAOD.customOuterCone = cms.double(0.3)
679 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3HitsdR0376xReMiniAOD.deltaBetaFactor = cms.string('0.0720') # 0.2*(0.3/0.5)^2
680 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3HitsdR0376xReMiniAOD.customOuterCone = cms.double(0.3)
681 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3HitsdR0376xReMiniAOD.deltaBetaFactor = cms.string('0.0720') # 0.2*(0.3/0.5)^2
682 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3HitsdR0376xReMiniAOD.customOuterCone = cms.double(0.3)
683 
684 hpsPFTauDiscriminationByCombinedIsolationSeqDBSumPtCorr3HitsdR0376xReMiniAOD = cms.Sequence(
685  hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3HitsdR0376xReMiniAOD*
686  hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3HitsdR0376xReMiniAOD*
687  hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3HitsdR0376xReMiniAOD
688 )
689 
690 hpsPFTauDiscriminationByLoosePileupWeightedIsolation3Hits76xReMiniAOD = hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits76xReMiniAOD.clone(
691  ApplyDiscriminationByECALIsolation = cms.bool(False),
692  applyDeltaBetaCorrection = cms.bool(False),
693  ApplyDiscriminationByWeightedECALIsolation = cms.bool(True),
694  UseAllPFCandsForWeights = cms.bool(True),
695  applyFootprintCorrection = cms.bool(True),
696  applyPhotonPtSumOutsideSignalConeCut = cms.bool(True)
697 )
698 
699 hpsPFTauDiscriminationByMediumPileupWeightedIsolation3Hits76xReMiniAOD = hpsPFTauDiscriminationByLoosePileupWeightedIsolation3Hits76xReMiniAOD.clone(
700  maximumSumPtCut = hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3Hits76xReMiniAOD.maximumSumPtCut
701 )
702 
703 hpsPFTauDiscriminationByTightPileupWeightedIsolation3Hits76xReMiniAOD = hpsPFTauDiscriminationByLoosePileupWeightedIsolation3Hits76xReMiniAOD.clone(
704  maximumSumPtCut = hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3Hits76xReMiniAOD.maximumSumPtCut
705 )
706 
707 hpsPFTauDiscriminationByPhotonPtSumOutsideSignalCone76xReMiniAOD = hpsPFTauDiscriminationByLoosePileupWeightedIsolation3Hits76xReMiniAOD.clone(
708  applySumPtCut = cms.bool(False)
709 )
710 
711 hpsPFTauDiscriminationByRawPileupWeightedIsolation3Hits76xReMiniAOD = hpsPFTauDiscriminationByLoosePileupWeightedIsolation3Hits76xReMiniAOD.clone(
712  Prediscriminants = cms.PSet(
713  BooleanOperator = cms.string("and"),
714  decayMode = cms.PSet(
715  Producer = cms.InputTag('hpsPFTauDiscriminationByPhotonPtSumOutsideSignalCone76xReMiniAOD'),
716  cut = cms.double(0.5)
717  )
718  ),
719  applySumPtCut = cms.bool(False),
720  storeRawSumPt = cms.bool(True)
721 )
722 
723 hpsPFTauDiscriminationByPileupWeightedIsolationSeq3Hits76xReMiniAOD = cms.Sequence(
724  hpsPFTauDiscriminationByLoosePileupWeightedIsolation3Hits76xReMiniAOD*
725  hpsPFTauDiscriminationByMediumPileupWeightedIsolation3Hits76xReMiniAOD*
726  hpsPFTauDiscriminationByTightPileupWeightedIsolation3Hits76xReMiniAOD*
727  hpsPFTauDiscriminationByPhotonPtSumOutsideSignalCone76xReMiniAOD*
728  hpsPFTauDiscriminationByRawPileupWeightedIsolation3Hits76xReMiniAOD
729 )
730 
731 # Define the HPS selection discriminator used in cleaning
732 hpsSelectionDiscriminator76xReMiniAOD.PFTauProducer = cms.InputTag("combinatoricRecoTaus76xReMiniAOD")
733 #----------------------------------------------------------------------------
734 # CV: disable 3Prong1Pi0 decay mode
735 hpsSelectionDiscriminator76xReMiniAOD.decayModes = cms.VPSet(
736  decayMode_1Prong0Pi0,
737  decayMode_1Prong1Pi0,
738  decayMode_1Prong2Pi0,
739  decayMode_2Prong0Pi0,
740  decayMode_2Prong1Pi0,
741  decayMode_3Prong0Pi0
742 )
743 #----------------------------------------------------------------------------
744 
745 from RecoTauTag.RecoTau.RecoTauCleaner_cfi import RecoTauCleaner
746 hpsPFTauProducerSansRefs76xReMiniAOD = RecoTauCleaner.clone(
747  src = cms.InputTag("combinatoricRecoTaus76xReMiniAOD")
748 )
749 hpsPFTauProducerSansRefs76xReMiniAOD.cleaners[1].src = cms.InputTag("hpsSelectionDiscriminator76xReMiniAOD")
750 
751 from RecoTauTag.RecoTau.RecoTauPiZeroUnembedder_cfi import RecoTauPiZeroUnembedder
752 hpsPFTauProducer76xReMiniAOD = RecoTauPiZeroUnembedder.clone(
753  src = cms.InputTag("hpsPFTauProducerSansRefs76xReMiniAOD")
754 )
755 
759 hpsPFTauPrimaryVertexProducer76xReMiniAOD = PFTauPrimaryVertexProducer.clone(
760  PFTauTag = cms.InputTag("hpsPFTauProducer76xReMiniAOD"),
761  ElectronTag = cms.InputTag(""),
762  MuonTag = cms.InputTag(""),
763  PVTag = cms.InputTag("offlinePrimaryVertices"),
764  beamSpot = cms.InputTag("offlineBeamSpot"),
765  TrackCollectionTag = cms.InputTag("generalTracks"),
766  Algorithm = cms.int32(1),
767  useBeamSpot = cms.bool(True),
768  RemoveMuonTracks = cms.bool(False),
769  RemoveElectronTracks = cms.bool(False),
770  useSelectedTaus = cms.bool(False),
771  discriminators = cms.VPSet(
772  cms.PSet(
773  discriminator = cms.InputTag('hpsPFTauDiscriminationByDecayModeFindingNewDMs76xReMiniAOD'),
774  selectionCut = cms.double(0.5)
775  )
776  ),
777  cut = cms.string("pt > 18.0 & abs(eta) < 2.4")
778 )
779 
780 hpsPFTauSecondaryVertexProducer76xReMiniAOD = PFTauSecondaryVertexProducer.clone(
781  PFTauTag = cms.InputTag("hpsPFTauProducer76xReMiniAOD")
782 )
783 hpsPFTauTransverseImpactParameters76xReMiniAOD = PFTauTransverseImpactParameters.clone(
784  PFTauTag = cms.InputTag("hpsPFTauProducer76xReMiniAOD"),
785  PFTauPVATag = cms.InputTag("hpsPFTauPrimaryVertexProducer76xReMiniAOD"),
786  PFTauSVATag = cms.InputTag("hpsPFTauSecondaryVertexProducer76xReMiniAOD"),
787  useFullCalculation = cms.bool(True)
788 )
789 hpsPFTauVertexAndImpactParametersSeq76xReMiniAOD = cms.Sequence(
790  hpsPFTauPrimaryVertexProducer76xReMiniAOD*
791  hpsPFTauSecondaryVertexProducer76xReMiniAOD*
792  hpsPFTauTransverseImpactParameters76xReMiniAOD
793 )
794 
796 hpsPFTauChargedIsoPtSum76xReMiniAOD = hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits76xReMiniAOD.clone(
797  PFTauProducer = cms.InputTag('hpsPFTauProducer76xReMiniAOD'),
798  Prediscriminants = requireDecayMode76xReMiniAOD.clone(),
799  ApplyDiscriminationByECALIsolation = cms.bool(False),
800  ApplyDiscriminationByTrackerIsolation = cms.bool(True),
801  applySumPtCut = cms.bool(False),
802  applyDeltaBetaCorrection = cms.bool(False),
803  storeRawSumPt = cms.bool(True),
804  storeRawPUsumPt = cms.bool(False),
805  customOuterCone = PFRecoTauPFJetInputs.isolationConeSize,
806  isoConeSizeForDeltaBeta = cms.double(0.8),
807  verbosity = cms.int32(0)
808 )
809 hpsPFTauNeutralIsoPtSum76xReMiniAOD = hpsPFTauChargedIsoPtSum76xReMiniAOD.clone(
810  ApplyDiscriminationByECALIsolation = cms.bool(True),
811  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
812  verbosity = cms.int32(0)
813 )
814 hpsPFTauPUcorrPtSum76xReMiniAOD = hpsPFTauChargedIsoPtSum76xReMiniAOD.clone(
815  ApplyDiscriminationByECALIsolation = cms.bool(False),
816  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
817  applyDeltaBetaCorrection = cms.bool(True),
818  storeRawSumPt = cms.bool(False),
819  storeRawPUsumPt = cms.bool(True),
820  verbosity = cms.int32(0)
821 )
822 hpsPFTauNeutralIsoPtSumWeight76xReMiniAOD = hpsPFTauChargedIsoPtSum76xReMiniAOD.clone(
823  ApplyDiscriminationByWeightedECALIsolation = cms.bool(True),
824  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
825  UseAllPFCandsForWeights = cms.bool(True),
826  verbosity = cms.int32(0)
827 )
828 hpsPFTauFootprintCorrection76xReMiniAOD = hpsPFTauChargedIsoPtSum76xReMiniAOD.clone(
829  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
830  storeRawSumPt = cms.bool(False),
831  storeRawFootprintCorrection = cms.bool(True),
832  verbosity = cms.int32(0)
833 )
834 hpsPFTauPhotonPtSumOutsideSignalCone76xReMiniAOD = hpsPFTauChargedIsoPtSum76xReMiniAOD.clone(
835  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
836  storeRawSumPt = cms.bool(False),
837  storeRawPhotonSumPt_outsideSignalCone = cms.bool(True),
838  verbosity = cms.int32(0)
839 )
840 
841 hpsPFTauDiscriminationByIsolationMVA3oldDMwoLTraw76xReMiniAOD = discriminationByIsolationMVA2raw.clone(
842  PFTauProducer = cms.InputTag('hpsPFTauProducer76xReMiniAOD'),
843  Prediscriminants = requireDecayMode76xReMiniAOD.clone(),
844  loadMVAfromDB = cms.bool(True),
845  mvaName = cms.string("RecoTauTag_tauIdMVAoldDMwoLTv1"),
846  mvaOpt = cms.string("oldDMwoLT"),
847  srcTauTransverseImpactParameters = cms.InputTag('hpsPFTauTransverseImpactParameters76xReMiniAOD'),
848  srcChargedIsoPtSum = cms.InputTag('hpsPFTauChargedIsoPtSum76xReMiniAOD'),
849  srcNeutralIsoPtSum = cms.InputTag('hpsPFTauNeutralIsoPtSum76xReMiniAOD'),
850  srcPUcorrPtSum = cms.InputTag('hpsPFTauPUcorrPtSum76xReMiniAOD'),
851  verbosity = cms.int32(0)
852 )
853 hpsPFTauDiscriminationByVLooseIsolationMVA3oldDMwoLT76xReMiniAOD = discriminationByIsolationMVA2VLoose.clone(
854  PFTauProducer = cms.InputTag('hpsPFTauProducer76xReMiniAOD'),
855  Prediscriminants = requireDecayMode76xReMiniAOD.clone(),
856  toMultiplex = cms.InputTag('hpsPFTauDiscriminationByIsolationMVA3oldDMwoLTraw76xReMiniAOD'),
857  key = cms.InputTag('hpsPFTauDiscriminationByIsolationMVA3oldDMwoLTraw76xReMiniAOD:category'),
858  loadMVAfromDB = cms.bool(True),
859  mvaOutput_normalization = cms.string("RecoTauTag_tauIdMVAoldDMwoLTv1_mvaOutput_normalization"),
860  mapping = cms.VPSet(
861  cms.PSet(
862  category = cms.uint32(0),
863  cut = cms.string("RecoTauTag_tauIdMVAoldDMwoLTv1_WPEff90"),
864  variable = cms.string("pt")
865  )
866  )
867 )
868 hpsPFTauDiscriminationByLooseIsolationMVA3oldDMwoLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVA3oldDMwoLT76xReMiniAOD.clone()
869 hpsPFTauDiscriminationByLooseIsolationMVA3oldDMwoLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAoldDMwoLTv1_WPEff80")
870 hpsPFTauDiscriminationByMediumIsolationMVA3oldDMwoLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVA3oldDMwoLT76xReMiniAOD.clone()
871 hpsPFTauDiscriminationByMediumIsolationMVA3oldDMwoLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAoldDMwoLTv1_WPEff70")
872 hpsPFTauDiscriminationByTightIsolationMVA3oldDMwoLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVA3oldDMwoLT76xReMiniAOD.clone()
873 hpsPFTauDiscriminationByTightIsolationMVA3oldDMwoLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAoldDMwoLTv1_WPEff60")
874 hpsPFTauDiscriminationByVTightIsolationMVA3oldDMwoLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVA3oldDMwoLT76xReMiniAOD.clone()
875 hpsPFTauDiscriminationByVTightIsolationMVA3oldDMwoLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAoldDMwoLTv1_WPEff50")
876 hpsPFTauDiscriminationByVVTightIsolationMVA3oldDMwoLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVA3oldDMwoLT76xReMiniAOD.clone()
877 hpsPFTauDiscriminationByVVTightIsolationMVA3oldDMwoLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAoldDMwoLTv1_WPEff40")
878 hpsPFTauDiscriminationByIsolationMVA3oldDMwLTraw76xReMiniAOD = hpsPFTauDiscriminationByIsolationMVA3oldDMwoLTraw76xReMiniAOD.clone(
879  mvaName = cms.string("RecoTauTag_tauIdMVAoldDMwLTv1"),
880  mvaOpt = cms.string("oldDMwLT"),
881  verbosity = cms.int32(0)
882 )
883 hpsPFTauDiscriminationByVLooseIsolationMVA3oldDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVA3oldDMwoLT76xReMiniAOD.clone(
884  toMultiplex = cms.InputTag('hpsPFTauDiscriminationByIsolationMVA3oldDMwLTraw76xReMiniAOD'),
885  key = cms.InputTag('hpsPFTauDiscriminationByIsolationMVA3oldDMwLTraw76xReMiniAOD:category'),
886  mvaOutput_normalization = cms.string("RecoTauTag_tauIdMVAoldDMwLTv1_mvaOutput_normalization"),
887  mapping = cms.VPSet(
888  cms.PSet(
889  category = cms.uint32(0),
890  cut = cms.string("RecoTauTag_tauIdMVAoldDMwLTv1_WPEff90"),
891  variable = cms.string("pt")
892  )
893  )
894 )
895 hpsPFTauDiscriminationByLooseIsolationMVA3oldDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVA3oldDMwLT76xReMiniAOD.clone()
896 hpsPFTauDiscriminationByLooseIsolationMVA3oldDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAoldDMwLTv1_WPEff80")
897 hpsPFTauDiscriminationByMediumIsolationMVA3oldDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVA3oldDMwLT76xReMiniAOD.clone()
898 hpsPFTauDiscriminationByMediumIsolationMVA3oldDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAoldDMwLTv1_WPEff70")
899 hpsPFTauDiscriminationByTightIsolationMVA3oldDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVA3oldDMwLT76xReMiniAOD.clone()
900 hpsPFTauDiscriminationByTightIsolationMVA3oldDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAoldDMwLTv1_WPEff60")
901 hpsPFTauDiscriminationByVTightIsolationMVA3oldDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVA3oldDMwLT76xReMiniAOD.clone()
902 hpsPFTauDiscriminationByVTightIsolationMVA3oldDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAoldDMwLTv1_WPEff50")
903 hpsPFTauDiscriminationByVVTightIsolationMVA3oldDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVA3oldDMwLT76xReMiniAOD.clone()
904 hpsPFTauDiscriminationByVVTightIsolationMVA3oldDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAoldDMwLTv1_WPEff40")
905 hpsPFTauDiscriminationByIsolationMVA3newDMwoLTraw76xReMiniAOD = hpsPFTauDiscriminationByIsolationMVA3oldDMwoLTraw76xReMiniAOD.clone(
906  mvaName = cms.string("RecoTauTag_tauIdMVAnewDMwoLTv1"),
907  mvaOpt = cms.string("newDMwoLT"),
908  verbosity = cms.int32(0)
909 )
910 hpsPFTauDiscriminationByVLooseIsolationMVA3newDMwoLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVA3oldDMwoLT76xReMiniAOD.clone(
911  toMultiplex = cms.InputTag('hpsPFTauDiscriminationByIsolationMVA3newDMwoLTraw76xReMiniAOD'),
912  key = cms.InputTag('hpsPFTauDiscriminationByIsolationMVA3newDMwoLTraw76xReMiniAOD:category'),
913  mvaOutput_normalization = cms.string("RecoTauTag_tauIdMVAnewDMwoLTv1_mvaOutput_normalization"),
914  mapping = cms.VPSet(
915  cms.PSet(
916  category = cms.uint32(0),
917  cut = cms.string("RecoTauTag_tauIdMVAnewDMwoLTv1_WPEff90"),
918  variable = cms.string("pt")
919  )
920  ),
921  verbosity = cms.int32(0)
922 )
923 hpsPFTauDiscriminationByLooseIsolationMVA3newDMwoLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVA3newDMwoLT76xReMiniAOD.clone()
924 hpsPFTauDiscriminationByLooseIsolationMVA3newDMwoLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAnewDMwoLTv1_WPEff80")
925 hpsPFTauDiscriminationByMediumIsolationMVA3newDMwoLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVA3newDMwoLT76xReMiniAOD.clone()
926 hpsPFTauDiscriminationByMediumIsolationMVA3newDMwoLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAnewDMwoLTv1_WPEff70")
927 hpsPFTauDiscriminationByTightIsolationMVA3newDMwoLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVA3newDMwoLT76xReMiniAOD.clone()
928 hpsPFTauDiscriminationByTightIsolationMVA3newDMwoLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAnewDMwoLTv1_WPEff60")
929 hpsPFTauDiscriminationByVTightIsolationMVA3newDMwoLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVA3newDMwoLT76xReMiniAOD.clone()
930 hpsPFTauDiscriminationByVTightIsolationMVA3newDMwoLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAnewDMwoLTv1_WPEff50")
931 hpsPFTauDiscriminationByVVTightIsolationMVA3newDMwoLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVA3newDMwoLT76xReMiniAOD.clone()
932 hpsPFTauDiscriminationByVVTightIsolationMVA3newDMwoLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAnewDMwoLTv1_WPEff40")
933 hpsPFTauDiscriminationByIsolationMVA3newDMwLTraw76xReMiniAOD = hpsPFTauDiscriminationByIsolationMVA3oldDMwoLTraw76xReMiniAOD.clone(
934  mvaName = cms.string("RecoTauTag_tauIdMVAnewDMwLTv1"),
935  mvaOpt = cms.string("newDMwLT"),
936  verbosity = cms.int32(0)
937 )
938 hpsPFTauDiscriminationByVLooseIsolationMVA3newDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVA3oldDMwoLT76xReMiniAOD.clone(
939  toMultiplex = cms.InputTag('hpsPFTauDiscriminationByIsolationMVA3newDMwLTraw76xReMiniAOD'),
940  key = cms.InputTag('hpsPFTauDiscriminationByIsolationMVA3newDMwLTraw76xReMiniAOD:category'),
941  mvaOutput_normalization = cms.string("RecoTauTag_tauIdMVAnewDMwLTv1_mvaOutput_normalization"),
942  mapping = cms.VPSet(
943  cms.PSet(
944  category = cms.uint32(0),
945  cut = cms.string("RecoTauTag_tauIdMVAnewDMwLTv1_WPEff90"),
946  variable = cms.string("pt")
947  )
948  )
949 )
950 hpsPFTauDiscriminationByLooseIsolationMVA3newDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVA3newDMwLT76xReMiniAOD.clone()
951 hpsPFTauDiscriminationByLooseIsolationMVA3newDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAnewDMwLTv1_WPEff80")
952 hpsPFTauDiscriminationByMediumIsolationMVA3newDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVA3newDMwLT76xReMiniAOD.clone()
953 hpsPFTauDiscriminationByMediumIsolationMVA3newDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAnewDMwLTv1_WPEff70")
954 hpsPFTauDiscriminationByTightIsolationMVA3newDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVA3newDMwLT76xReMiniAOD.clone()
955 hpsPFTauDiscriminationByTightIsolationMVA3newDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAnewDMwLTv1_WPEff60")
956 hpsPFTauDiscriminationByVTightIsolationMVA3newDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVA3newDMwLT76xReMiniAOD.clone()
957 hpsPFTauDiscriminationByVTightIsolationMVA3newDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAnewDMwLTv1_WPEff50")
958 hpsPFTauDiscriminationByVVTightIsolationMVA3newDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVA3newDMwLT76xReMiniAOD.clone()
959 hpsPFTauDiscriminationByVVTightIsolationMVA3newDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAnewDMwLTv1_WPEff40")
960 
961 #Define new Run2 MVA isolations
963 hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw76xReMiniAOD = discriminationByIsolationMVArun2v1raw.clone(
964  PFTauProducer = cms.InputTag('hpsPFTauProducer76xReMiniAOD'),
965  Prediscriminants = requireDecayMode76xReMiniAOD.clone(),
966  loadMVAfromDB = cms.bool(True),
967  mvaName = cms.string("RecoTauTag_tauIdMVADBoldDMwLTv1"),
968  mvaOpt = cms.string("DBoldDMwLT"),
969  srcTauTransverseImpactParameters = cms.InputTag('hpsPFTauTransverseImpactParameters76xReMiniAOD'),
970  srcChargedIsoPtSum = cms.InputTag('hpsPFTauChargedIsoPtSum76xReMiniAOD'),
971  srcNeutralIsoPtSum = cms.InputTag('hpsPFTauNeutralIsoPtSum76xReMiniAOD'),
972  srcPUcorrPtSum = cms.InputTag('hpsPFTauPUcorrPtSum76xReMiniAOD'),
973  srcPhotonPtSumOutsideSignalCone = cms.InputTag('hpsPFTauPhotonPtSumOutsideSignalCone76xReMiniAOD'),
974  srcFootprintCorrection = cms.InputTag('hpsPFTauFootprintCorrection76xReMiniAOD'),
975  verbosity = cms.int32(0)
976 )
977 
978 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT76xReMiniAOD = discriminationByIsolationMVArun2v1VLoose.clone(
979  PFTauProducer = cms.InputTag('hpsPFTauProducer76xReMiniAOD'),
980  Prediscriminants = requireDecayMode76xReMiniAOD.clone(),
981  toMultiplex = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw76xReMiniAOD'),
982  key = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw76xReMiniAOD:category'),
983  loadMVAfromDB = cms.bool(True),
984  mvaOutput_normalization = cms.string("RecoTauTag_tauIdMVADBoldDMwLTv1_mvaOutput_normalization"),
985  mapping = cms.VPSet(
986  cms.PSet(
987  category = cms.uint32(0),
988  cut = cms.string("RecoTauTag_tauIdMVADBoldDMwLTv1_WPEff90"),
989  variable = cms.string("pt")
990  )
991  )
992 )
993 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT76xReMiniAOD.clone()
994 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVADBoldDMwLTv1_WPEff80")
995 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT76xReMiniAOD.clone()
996 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVADBoldDMwLTv1_WPEff70")
997 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT76xReMiniAOD.clone()
998 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVADBoldDMwLTv1_WPEff60")
999 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT76xReMiniAOD.clone()
1000 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVADBoldDMwLTv1_WPEff50")
1001 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT76xReMiniAOD.clone()
1002 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVADBoldDMwLTv1_WPEff40")
1003 
1004 hpsPFTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw76xReMiniAOD = hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw76xReMiniAOD.clone(
1005  mvaName = cms.string("RecoTauTag_tauIdMVADBnewDMwLTv1"),
1006  mvaOpt = cms.string("DBnewDMwLT"),
1007  verbosity = cms.int32(0)
1008 )
1009 
1010 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT76xReMiniAOD.clone(
1011  toMultiplex = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw76xReMiniAOD'),
1012  key = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw76xReMiniAOD:category'),
1013  loadMVAfromDB = cms.bool(True),
1014  mvaOutput_normalization = cms.string("RecoTauTag_tauIdMVADBnewDMwLTv1_mvaOutput_normalization"),
1015  mapping = cms.VPSet(
1016  cms.PSet(
1017  category = cms.uint32(0),
1018  cut = cms.string("RecoTauTag_tauIdMVADBnewDMwLTv1_WPEff90"),
1019  variable = cms.string("pt")
1020  )
1021  )
1022 )
1023 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBnewDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT76xReMiniAOD.clone()
1024 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBnewDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVADBnewDMwLTv1_WPEff80")
1025 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBnewDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT76xReMiniAOD.clone()
1026 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBnewDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVADBnewDMwLTv1_WPEff70")
1027 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBnewDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT76xReMiniAOD.clone()
1028 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBnewDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVADBnewDMwLTv1_WPEff60")
1029 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBnewDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT76xReMiniAOD.clone()
1030 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBnewDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVADBnewDMwLTv1_WPEff50")
1031 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBnewDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT76xReMiniAOD.clone()
1032 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBnewDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVADBnewDMwLTv1_WPEff40")
1033 
1034 hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTraw76xReMiniAOD = hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw76xReMiniAOD.clone(
1035  mvaName = cms.string("RecoTauTag_tauIdMVAPWoldDMwLTv1"),
1036  mvaOpt = cms.string("PWoldDMwLT"),
1037  srcPUcorrPtSum = cms.InputTag('hpsPFTauNeutralIsoPtSumWeight76xReMiniAOD'),
1038  verbosity = cms.int32(0)
1039 )
1040 
1041 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT76xReMiniAOD.clone(
1042  toMultiplex = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTraw76xReMiniAOD'),
1043  key = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTraw76xReMiniAOD:category'),
1044  loadMVAfromDB = cms.bool(True),
1045  mvaOutput_normalization = cms.string("RecoTauTag_tauIdMVAPWoldDMwLTv1_mvaOutput_normalization"),
1046  mapping = cms.VPSet(
1047  cms.PSet(
1048  category = cms.uint32(0),
1049  cut = cms.string("RecoTauTag_tauIdMVAPWoldDMwLTv1_WPEff90"),
1050  variable = cms.string("pt")
1051  )
1052  )
1053 )
1054 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWoldDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT76xReMiniAOD.clone()
1055 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWoldDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWoldDMwLTv1_WPEff80")
1056 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWoldDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT76xReMiniAOD.clone()
1057 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWoldDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWoldDMwLTv1_WPEff70")
1058 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWoldDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT76xReMiniAOD.clone()
1059 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWoldDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWoldDMwLTv1_WPEff60")
1060 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWoldDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT76xReMiniAOD.clone()
1061 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWoldDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWoldDMwLTv1_WPEff50")
1062 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWoldDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT76xReMiniAOD.clone()
1063 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWoldDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWoldDMwLTv1_WPEff40")
1064 
1065 hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLTraw76xReMiniAOD = hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTraw76xReMiniAOD.clone(
1066  mvaName = cms.string("RecoTauTag_tauIdMVAPWnewDMwLTv1"),
1067  mvaOpt = cms.string("PWnewDMwLT"),
1068  verbosity = cms.int32(0)
1069 )
1070 
1071 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT76xReMiniAOD.clone(
1072  toMultiplex = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLTraw76xReMiniAOD'),
1073  key = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLTraw76xReMiniAOD:category'),
1074  loadMVAfromDB = cms.bool(True),
1075  mvaOutput_normalization = cms.string("RecoTauTag_tauIdMVAPWnewDMwLTv1_mvaOutput_normalization"),
1076  mapping = cms.VPSet(
1077  cms.PSet(
1078  category = cms.uint32(0),
1079  cut = cms.string("RecoTauTag_tauIdMVAPWnewDMwLTv1_WPEff90"),
1080  variable = cms.string("pt")
1081  )
1082  )
1083 )
1084 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWnewDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT76xReMiniAOD.clone()
1085 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWnewDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWnewDMwLTv1_WPEff80")
1086 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWnewDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT76xReMiniAOD.clone()
1087 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWnewDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWnewDMwLTv1_WPEff70")
1088 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWnewDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT76xReMiniAOD.clone()
1089 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWnewDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWnewDMwLTv1_WPEff60")
1090 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWnewDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT76xReMiniAOD.clone()
1091 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWnewDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWnewDMwLTv1_WPEff50")
1092 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWnewDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT76xReMiniAOD.clone()
1093 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWnewDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWnewDMwLTv1_WPEff40")
1094 
1095 hpsPFTauChargedIsoPtSumdR0376xReMiniAOD = hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits76xReMiniAOD.clone(
1096  PFTauProducer = cms.InputTag('hpsPFTauProducer76xReMiniAOD'),
1097  Prediscriminants = requireDecayMode76xReMiniAOD.clone(),
1098  ApplyDiscriminationByECALIsolation = cms.bool(False),
1099  ApplyDiscriminationByTrackerIsolation = cms.bool(True),
1100  applySumPtCut = cms.bool(False),
1101  applyDeltaBetaCorrection = cms.bool(False),
1102  storeRawSumPt = cms.bool(True),
1103  storeRawPUsumPt = cms.bool(False),
1104  customOuterCone = cms.double(0.3),
1105  isoConeSizeForDeltaBeta = cms.double(0.8),
1106  verbosity = cms.int32(0)
1107 )
1108 hpsPFTauNeutralIsoPtSumdR0376xReMiniAOD = hpsPFTauChargedIsoPtSumdR0376xReMiniAOD.clone(
1109  ApplyDiscriminationByECALIsolation = cms.bool(True),
1110  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
1111  verbosity = cms.int32(0)
1112 )
1113 hpsPFTauPUcorrPtSumdR0376xReMiniAOD = hpsPFTauChargedIsoPtSumdR0376xReMiniAOD.clone(
1114  ApplyDiscriminationByECALIsolation = cms.bool(False),
1115  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
1116  applyDeltaBetaCorrection = cms.bool(True),
1117  storeRawSumPt = cms.bool(False),
1118  storeRawPUsumPt = cms.bool(True),
1119  verbosity = cms.int32(0)
1120 )
1121 hpsPFTauNeutralIsoPtSumWeightdR0376xReMiniAOD = hpsPFTauChargedIsoPtSumdR0376xReMiniAOD.clone(
1122  ApplyDiscriminationByWeightedECALIsolation = cms.bool(True),
1123  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
1124  UseAllPFCandsForWeights = cms.bool(True),
1125  verbosity = cms.int32(0)
1126 )
1127 hpsPFTauFootprintCorrectiondR0376xReMiniAOD = hpsPFTauChargedIsoPtSumdR0376xReMiniAOD.clone(
1128  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
1129  storeRawSumPt = cms.bool(False),
1130  storeRawFootprintCorrection = cms.bool(True),
1131  verbosity = cms.int32(0)
1132 )
1133 hpsPFTauPhotonPtSumOutsideSignalConedR0376xReMiniAOD = hpsPFTauChargedIsoPtSumdR0376xReMiniAOD.clone(
1134  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
1135  storeRawSumPt = cms.bool(False),
1136  storeRawPhotonSumPt_outsideSignalCone = cms.bool(True),
1137  verbosity = cms.int32(0)
1138 )
1139 
1140 hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTraw76xReMiniAOD = hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw76xReMiniAOD.clone(
1141  mvaName = cms.string("RecoTauTag_tauIdMVADBdR03oldDMwLTv1"),
1142  mvaOpt = cms.string("DBoldDMwLT"),
1143  srcChargedIsoPtSum = cms.InputTag('hpsPFTauChargedIsoPtSumdR0376xReMiniAOD'),
1144  srcNeutralIsoPtSum = cms.InputTag('hpsPFTauNeutralIsoPtSumdR0376xReMiniAOD'),
1145  srcPUcorrPtSum = cms.InputTag('hpsPFTauPUcorrPtSumdR0376xReMiniAOD'),
1146  srcPhotonPtSumOutsideSignalCone = cms.InputTag('hpsPFTauPhotonPtSumOutsideSignalConedR0376xReMiniAOD'),
1147  srcFootprintCorrection = cms.InputTag('hpsPFTauFootprintCorrectiondR0376xReMiniAOD'),
1148  verbosity = cms.int32(0)
1149 )
1150 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT76xReMiniAOD.clone(
1151  PFTauProducer = cms.InputTag('hpsPFTauProducer76xReMiniAOD'),
1152  Prediscriminants = requireDecayMode76xReMiniAOD.clone(),
1153  toMultiplex = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTraw76xReMiniAOD'),
1154  key = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTraw76xReMiniAOD:category'),
1155  loadMVAfromDB = cms.bool(True),
1156  mvaOutput_normalization = cms.string("RecoTauTag_tauIdMVADBdR03oldDMwLTv1_mvaOutput_normalization"),
1157  mapping = cms.VPSet(
1158  cms.PSet(
1159  category = cms.uint32(0),
1160  cut = cms.string("RecoTauTag_tauIdMVADBdR03oldDMwLTv1_WPEff90"),
1161  variable = cms.string("pt")
1162  )
1163  )
1164 )
1165 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBdR03oldDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT76xReMiniAOD.clone()
1166 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBdR03oldDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVADBdR03oldDMwLTv1_WPEff80")
1167 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBdR03oldDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT76xReMiniAOD.clone()
1168 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBdR03oldDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVADBdR03oldDMwLTv1_WPEff70")
1169 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBdR03oldDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT76xReMiniAOD.clone()
1170 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBdR03oldDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVADBdR03oldDMwLTv1_WPEff60")
1171 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBdR03oldDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT76xReMiniAOD.clone()
1172 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBdR03oldDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVADBdR03oldDMwLTv1_WPEff50")
1173 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBdR03oldDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT76xReMiniAOD.clone()
1174 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBdR03oldDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVADBdR03oldDMwLTv1_WPEff40")
1175 
1176 hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLTraw76xReMiniAOD = hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTraw76xReMiniAOD.clone(
1177  mvaName = cms.string("RecoTauTag_tauIdMVAPWdR03oldDMwLTv1"),
1178  mvaOpt = cms.string("PWoldDMwLT"),
1179  srcPUcorrPtSum = cms.InputTag('hpsPFTauNeutralIsoPtSumWeightdR0376xReMiniAOD'),
1180  verbosity = cms.int32(0)
1181 )
1182 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT76xReMiniAOD.clone(
1183  toMultiplex = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLTraw76xReMiniAOD'),
1184  key = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLTraw76xReMiniAOD:category'),
1185  loadMVAfromDB = cms.bool(True),
1186  mvaOutput_normalization = cms.string("RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_mvaOutput_normalization"),
1187  mapping = cms.VPSet(
1188  cms.PSet(
1189  category = cms.uint32(0),
1190  cut = cms.string("RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_WPEff90"),
1191  variable = cms.string("pt")
1192  )
1193  )
1194 )
1195 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWdR03oldDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT76xReMiniAOD.clone()
1196 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWdR03oldDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_WPEff80")
1197 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWdR03oldDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT76xReMiniAOD.clone()
1198 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWdR03oldDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_WPEff70")
1199 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWdR03oldDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT76xReMiniAOD.clone()
1200 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWdR03oldDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_WPEff60")
1201 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWdR03oldDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT76xReMiniAOD.clone()
1202 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWdR03oldDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_WPEff50")
1203 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWdR03oldDMwLT76xReMiniAOD = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT76xReMiniAOD.clone()
1204 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWdR03oldDMwLT76xReMiniAOD.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_WPEff40")
1205 
1206 hpsPFTauMVAIsolation2Seq76xReMiniAOD = cms.Sequence(
1207  hpsPFTauChargedIsoPtSum76xReMiniAOD
1208  + hpsPFTauNeutralIsoPtSum76xReMiniAOD
1209  + hpsPFTauPUcorrPtSum76xReMiniAOD
1210  + hpsPFTauNeutralIsoPtSumWeight76xReMiniAOD
1211  + hpsPFTauFootprintCorrection76xReMiniAOD
1212  + hpsPFTauPhotonPtSumOutsideSignalCone76xReMiniAOD
1213  #+ hpsPFTauDiscriminationByIsolationMVA3oldDMwoLTraw76xReMiniAOD
1214  #+ hpsPFTauDiscriminationByVLooseIsolationMVA3oldDMwoLT76xReMiniAOD
1215  #+ hpsPFTauDiscriminationByLooseIsolationMVA3oldDMwoLT76xReMiniAOD
1216  #+ hpsPFTauDiscriminationByMediumIsolationMVA3oldDMwoLT76xReMiniAOD
1217  #+ hpsPFTauDiscriminationByTightIsolationMVA3oldDMwoLT76xReMiniAOD
1218  #+ hpsPFTauDiscriminationByVTightIsolationMVA3oldDMwoLT76xReMiniAOD
1219  #+ hpsPFTauDiscriminationByVVTightIsolationMVA3oldDMwoLT76xReMiniAOD
1220  + hpsPFTauDiscriminationByIsolationMVA3oldDMwLTraw76xReMiniAOD
1221  + hpsPFTauDiscriminationByVLooseIsolationMVA3oldDMwLT76xReMiniAOD
1222  + hpsPFTauDiscriminationByLooseIsolationMVA3oldDMwLT76xReMiniAOD
1223  + hpsPFTauDiscriminationByMediumIsolationMVA3oldDMwLT76xReMiniAOD
1224  + hpsPFTauDiscriminationByTightIsolationMVA3oldDMwLT76xReMiniAOD
1225  + hpsPFTauDiscriminationByVTightIsolationMVA3oldDMwLT76xReMiniAOD
1226  + hpsPFTauDiscriminationByVVTightIsolationMVA3oldDMwLT76xReMiniAOD
1227  #+ hpsPFTauDiscriminationByIsolationMVA3newDMwoLTraw76xReMiniAOD
1228  #+ hpsPFTauDiscriminationByVLooseIsolationMVA3newDMwoLT76xReMiniAOD
1229  #+ hpsPFTauDiscriminationByLooseIsolationMVA3newDMwoLT76xReMiniAOD
1230  #+ hpsPFTauDiscriminationByMediumIsolationMVA3newDMwoLT76xReMiniAOD
1231  #+ hpsPFTauDiscriminationByTightIsolationMVA3newDMwoLT76xReMiniAOD
1232  #+ hpsPFTauDiscriminationByVTightIsolationMVA3newDMwoLT76xReMiniAOD
1233  #+ hpsPFTauDiscriminationByVVTightIsolationMVA3newDMwoLT76xReMiniAOD
1234  + hpsPFTauDiscriminationByIsolationMVA3newDMwLTraw76xReMiniAOD
1235  + hpsPFTauDiscriminationByVLooseIsolationMVA3newDMwLT76xReMiniAOD
1236  + hpsPFTauDiscriminationByLooseIsolationMVA3newDMwLT76xReMiniAOD
1237  + hpsPFTauDiscriminationByMediumIsolationMVA3newDMwLT76xReMiniAOD
1238  + hpsPFTauDiscriminationByTightIsolationMVA3newDMwLT76xReMiniAOD
1239  + hpsPFTauDiscriminationByVTightIsolationMVA3newDMwLT76xReMiniAOD
1240  + hpsPFTauDiscriminationByVVTightIsolationMVA3newDMwLT76xReMiniAOD
1241  # new MVA isolations for Run2
1242  + hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw76xReMiniAOD
1243  + hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT76xReMiniAOD
1244  + hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT76xReMiniAOD
1245  + hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT76xReMiniAOD
1246  + hpsPFTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT76xReMiniAOD
1247  + hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT76xReMiniAOD
1248  + hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT76xReMiniAOD
1249  + hpsPFTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw76xReMiniAOD
1250  + hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT76xReMiniAOD
1251  + hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBnewDMwLT76xReMiniAOD
1252  + hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBnewDMwLT76xReMiniAOD
1253  + hpsPFTauDiscriminationByTightIsolationMVArun2v1DBnewDMwLT76xReMiniAOD
1254  + hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBnewDMwLT76xReMiniAOD
1255  + hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBnewDMwLT76xReMiniAOD
1256  + hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTraw76xReMiniAOD
1257  + hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT76xReMiniAOD
1258  + hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWoldDMwLT76xReMiniAOD
1259  + hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWoldDMwLT76xReMiniAOD
1260  + hpsPFTauDiscriminationByTightIsolationMVArun2v1PWoldDMwLT76xReMiniAOD
1261  + hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWoldDMwLT76xReMiniAOD
1262  + hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWoldDMwLT76xReMiniAOD
1263  + hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLTraw76xReMiniAOD
1264  + hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT76xReMiniAOD
1265  + hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWnewDMwLT76xReMiniAOD
1266  + hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWnewDMwLT76xReMiniAOD
1267  + hpsPFTauDiscriminationByTightIsolationMVArun2v1PWnewDMwLT76xReMiniAOD
1268  + hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWnewDMwLT76xReMiniAOD
1269  + hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWnewDMwLT76xReMiniAOD
1270  + hpsPFTauChargedIsoPtSumdR0376xReMiniAOD
1271  + hpsPFTauNeutralIsoPtSumdR0376xReMiniAOD
1272  + hpsPFTauPUcorrPtSumdR0376xReMiniAOD
1273  + hpsPFTauNeutralIsoPtSumWeightdR0376xReMiniAOD
1274  + hpsPFTauFootprintCorrectiondR0376xReMiniAOD
1275  + hpsPFTauPhotonPtSumOutsideSignalConedR0376xReMiniAOD
1276  + hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTraw76xReMiniAOD
1277  + hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT76xReMiniAOD
1278  + hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBdR03oldDMwLT76xReMiniAOD
1279  + hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBdR03oldDMwLT76xReMiniAOD
1280  + hpsPFTauDiscriminationByTightIsolationMVArun2v1DBdR03oldDMwLT76xReMiniAOD
1281  + hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBdR03oldDMwLT76xReMiniAOD
1282  + hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBdR03oldDMwLT76xReMiniAOD
1283  + hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLTraw76xReMiniAOD
1284  + hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT76xReMiniAOD
1285  + hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWdR03oldDMwLT76xReMiniAOD
1286  + hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWdR03oldDMwLT76xReMiniAOD
1287  + hpsPFTauDiscriminationByTightIsolationMVArun2v1PWdR03oldDMwLT76xReMiniAOD
1288  + hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWdR03oldDMwLT76xReMiniAOD
1289  + hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWdR03oldDMwLT76xReMiniAOD
1290 )
1291 
1292 produceHPSPFTaus76xReMiniAOD = cms.Sequence(
1293  hpsSelectionDiscriminator76xReMiniAOD
1294  #*hpsTightIsolationCleaner76xReMiniAOD
1295  #*hpsMediumIsolationCleaner76xReMiniAOD
1296  #*hpsLooseIsolationCleaner76xReMiniAOD
1297  #*hpsVLooseIsolationCleaner76xReMiniAOD
1298  *hpsPFTauProducerSansRefs76xReMiniAOD
1299  *hpsPFTauProducer76xReMiniAOD
1300 )
1301 
1302 produceAndDiscriminateHPSPFTaus76xReMiniAOD = cms.Sequence(
1303  produceHPSPFTaus76xReMiniAOD*
1304  hpsPFTauDiscriminationByDecayModeFindingNewDMs76xReMiniAOD*
1305  hpsPFTauDiscriminationByDecayModeFindingOldDMs76xReMiniAOD*
1306  hpsPFTauDiscriminationByDecayModeFinding76xReMiniAOD* # CV: kept for backwards compatibility
1307  hpsPFTauDiscriminationByChargedIsolationSeq76xReMiniAOD*
1308  hpsPFTauDiscriminationByIsolationSeq76xReMiniAOD*
1309  #hpsPFTauDiscriminationByIsolationSeqRhoCorr76xReMiniAOD*
1310  #hpsPFTauDiscriminationByIsolationSeqCustomRhoCorr76xReMiniAOD*
1311  hpsPFTauDiscriminationByIsolationSeqDBSumPtCorr76xReMiniAOD*
1312 
1313  hpsPFTauDiscriminationByRawCombinedIsolationDBSumPtCorr76xReMiniAOD*
1314  hpsPFTauDiscriminationByRawChargedIsolationDBSumPtCorr76xReMiniAOD*
1315  hpsPFTauDiscriminationByRawGammaIsolationDBSumPtCorr76xReMiniAOD*
1316 
1317  hpsPFTauDiscriminationByCombinedIsolationSeqDBSumPtCorr76xReMiniAOD*
1318  hpsPFTauDiscriminationByCombinedIsolationSeqDBSumPtCorr3Hits76xReMiniAOD*
1319  hpsPFTauDiscriminationByCombinedIsolationSeqDBSumPtCorr3HitsdR0376xReMiniAOD*
1320  hpsPFTauDiscriminationByPileupWeightedIsolationSeq3Hits76xReMiniAOD*
1321 
1322  hpsPFTauDiscriminationByLooseElectronRejection76xReMiniAOD*
1323  hpsPFTauDiscriminationByMediumElectronRejection76xReMiniAOD*
1324  hpsPFTauDiscriminationByTightElectronRejection76xReMiniAOD*
1325  hpsPFTauDiscriminationByMVA5rawElectronRejection76xReMiniAOD*
1326  hpsPFTauDiscriminationByMVA5VLooseElectronRejection76xReMiniAOD*
1327  hpsPFTauDiscriminationByMVA5LooseElectronRejection76xReMiniAOD*
1328  hpsPFTauDiscriminationByMVA5MediumElectronRejection76xReMiniAOD*
1329  hpsPFTauDiscriminationByMVA5TightElectronRejection76xReMiniAOD*
1330  hpsPFTauDiscriminationByMVA5VTightElectronRejection76xReMiniAOD*
1331  hpsPFTauDiscriminationByMVA6rawElectronRejection76xReMiniAOD*
1332  hpsPFTauDiscriminationByMVA6VLooseElectronRejection76xReMiniAOD*
1333  hpsPFTauDiscriminationByMVA6LooseElectronRejection76xReMiniAOD*
1334  hpsPFTauDiscriminationByMVA6MediumElectronRejection76xReMiniAOD*
1335  hpsPFTauDiscriminationByMVA6TightElectronRejection76xReMiniAOD*
1336  hpsPFTauDiscriminationByMVA6VTightElectronRejection76xReMiniAOD*
1337  hpsPFTauDiscriminationByDeadECALElectronRejection76xReMiniAOD*
1338  hpsPFTauDiscriminationByLooseMuonRejection76xReMiniAOD*
1339  hpsPFTauDiscriminationByMediumMuonRejection76xReMiniAOD*
1340  hpsPFTauDiscriminationByTightMuonRejection76xReMiniAOD*
1341  hpsPFTauDiscriminationByLooseMuonRejection276xReMiniAOD*
1342  hpsPFTauDiscriminationByMediumMuonRejection276xReMiniAOD*
1343  hpsPFTauDiscriminationByTightMuonRejection276xReMiniAOD*
1344  hpsPFTauDiscriminationByLooseMuonRejection376xReMiniAOD*
1345  hpsPFTauDiscriminationByTightMuonRejection376xReMiniAOD*
1346  hpsPFTauDiscriminationByMVArawMuonRejection76xReMiniAOD*
1347  hpsPFTauDiscriminationByMVALooseMuonRejection76xReMiniAOD*
1348  hpsPFTauDiscriminationByMVAMediumMuonRejection76xReMiniAOD*
1349  hpsPFTauDiscriminationByMVATightMuonRejection76xReMiniAOD*
1350 
1351  hpsPFTauVertexAndImpactParametersSeq76xReMiniAOD*
1352 
1353  hpsPFTauMVAIsolation2Seq76xReMiniAOD
1354 )
1355 
1356