CMS 3D CMS Logo

HPSPFTaus_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 import copy
3 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
4 
5 '''
6 
7 Sequences for HPS taus
8 
9 '''
10 
11 ## Discriminator sources
20 
22 ## Helper functions to change the source of the discriminants
24 ## PFjet input parameters
25 from RecoTauTag.RecoTau.PFRecoTauPFJetInputs_cfi import PFRecoTauPFJetInputs
26 ## DeltaBeta correction factor
27 ak4dBetaCorrection = 0.20
28 ## MVAs from SQLlite file/prep. DB
30 
31 ## Selection of taus that pass the HPS selections: pt > 15, mass cuts, tauCone cut
32 from RecoTauTag.RecoTau.PFRecoTauDiscriminationByHPSSelection_cfi import hpsSelectionDiscriminator, decayMode_1Prong0Pi0, decayMode_1Prong1Pi0, decayMode_1Prong2Pi0, decayMode_2Prong0Pi0, decayMode_2Prong1Pi0, decayMode_3Prong0Pi0, decayMode_3Prong1Pi0
33 
34 hpsPFTauDiscriminationByDecayModeFindingNewDMs = hpsSelectionDiscriminator.clone(
35  PFTauProducer = cms.InputTag('hpsPFTauProducer'),
36  #----------------------------------------------------------------------------
37  # CV: disable 3Prong1Pi0 decay mode
38  decayModes = cms.VPSet(
39  decayMode_1Prong0Pi0,
40  decayMode_1Prong1Pi0,
41  decayMode_1Prong2Pi0,
42  decayMode_2Prong0Pi0,
43  decayMode_2Prong1Pi0,
44  decayMode_3Prong0Pi0,
45  decayMode_3Prong1Pi0,
46  )
47  #----------------------------------------------------------------------------
48 )
49 hpsPFTauDiscriminationByDecayModeFindingOldDMs = hpsSelectionDiscriminator.clone(
50  PFTauProducer = cms.InputTag('hpsPFTauProducer'),
51  decayModes = cms.VPSet(
52  decayMode_1Prong0Pi0,
53  decayMode_1Prong1Pi0,
54  decayMode_1Prong2Pi0,
55  decayMode_3Prong0Pi0
56  ),
57  requireTauChargedHadronsToBeChargedPFCands = cms.bool(True)
58 )
59 hpsPFTauDiscriminationByDecayModeFinding = hpsPFTauDiscriminationByDecayModeFindingOldDMs.clone() ## CV: kept for backwards compatibility
60 
61 ## Decay mode prediscriminant
62 requireDecayMode = cms.PSet(
63  BooleanOperator = cms.string("and"),
64  decayMode = cms.PSet(
65  Producer = cms.InputTag('hpsPFTauDiscriminationByDecayModeFindingNewDMs'),
66  cut = cms.double(0.5)
67  )
68 )
69 ## ByLooseIsolation
70 hpsPFTauDiscriminationByLooseIsolation = pfRecoTauDiscriminationByIsolation.clone(
71  PFTauProducer = cms.InputTag("hpsPFTauProducer"),
72  Prediscriminants = requireDecayMode.clone(),
73  ApplyDiscriminationByTrackerIsolation = False,
74  ApplyDiscriminationByECALIsolation = True,
75  applyOccupancyCut = True
76 )
77 hpsPFTauDiscriminationByLooseIsolation.Prediscriminants.preIso = cms.PSet(
78  Producer = cms.InputTag("hpsPFTauDiscriminationByLooseChargedIsolation"),
79  cut = cms.double(0.5)
80 )
81 ## ByMediumIsolation
82 hpsPFTauDiscriminationByMediumIsolation = hpsPFTauDiscriminationByLooseIsolation.clone()
83 hpsPFTauDiscriminationByMediumIsolation.qualityCuts.isolationQualityCuts.minTrackPt = 0.8
84 hpsPFTauDiscriminationByMediumIsolation.qualityCuts.isolationQualityCuts.minGammaEt = 1.0
85 hpsPFTauDiscriminationByMediumIsolation.Prediscriminants.preIso.Producer = cms.InputTag("hpsPFTauDiscriminationByMediumChargedIsolation")
86 ## ByTightIsolation
87 hpsPFTauDiscriminationByTightIsolation = hpsPFTauDiscriminationByLooseIsolation.clone()
88 hpsPFTauDiscriminationByTightIsolation.qualityCuts.isolationQualityCuts.minTrackPt = 0.5
89 hpsPFTauDiscriminationByTightIsolation.qualityCuts.isolationQualityCuts.minGammaEt = 1.0
90 hpsPFTauDiscriminationByTightIsolation.Prediscriminants.preIso.Producer = cms.InputTag("hpsPFTauDiscriminationByTightChargedIsolation")
91 ## ByLooseIsolationDBSumPtCorr
92 hpsPFTauDiscriminationByLooseIsolationDBSumPtCorr = hpsPFTauDiscriminationByLooseIsolation.clone(
93  deltaBetaPUTrackPtCutOverride = True, # Set the boolean = True to override.
94  deltaBetaPUTrackPtCutOverride_val = 0.5, # Set the value for new value.
95  applyDeltaBetaCorrection = True,
96  isoConeSizeForDeltaBeta = 0.8,
97  deltaBetaFactor = "%0.4f"%(0.0123/0.1687),
98  applyOccupancyCut = False,
99  applySumPtCut = True,
100 )
101 hpsPFTauDiscriminationByLooseIsolationDBSumPtCorr.maximumSumPtCut = hpsPFTauDiscriminationByLooseIsolationDBSumPtCorr.qualityCuts.isolationQualityCuts.minGammaEt
102 ## ByMediumIsolationDBSumPtCorr
103 hpsPFTauDiscriminationByMediumIsolationDBSumPtCorr = hpsPFTauDiscriminationByMediumIsolation.clone(
104  deltaBetaPUTrackPtCutOverride = True, # Set the boolean = True to override.
105  deltaBetaPUTrackPtCutOverride_val = 0.5, # Set the value for new value.
106  applyDeltaBetaCorrection = True,
107  isoConeSizeForDeltaBeta = 0.8,
108  deltaBetaFactor = "%0.4f"%(0.0462/0.1687),
109  applyOccupancyCut = False,
110  applySumPtCut = True,
111 )
112 hpsPFTauDiscriminationByMediumIsolationDBSumPtCorr.maximumSumPtCut = hpsPFTauDiscriminationByMediumIsolationDBSumPtCorr.qualityCuts.isolationQualityCuts.minGammaEt
113 ## ByTightIsolationDBSumPtCorr
114 hpsPFTauDiscriminationByTightIsolationDBSumPtCorr = hpsPFTauDiscriminationByTightIsolation.clone(
115  deltaBetaPUTrackPtCutOverride = True, # Set the boolean = True to override.
116  deltaBetaPUTrackPtCutOverride_val = 0.5, # Set the value for new value.
117  applyDeltaBetaCorrection = True,
118  isoConeSizeForDeltaBeta = 0.8,
119  deltaBetaFactor = "%0.4f"%(ak4dBetaCorrection),
120  applyOccupancyCut = False,
121  applySumPtCut = True,
122 )
123 hpsPFTauDiscriminationByTightIsolationDBSumPtCorr.maximumSumPtCut = hpsPFTauDiscriminationByTightIsolationDBSumPtCorr.qualityCuts.isolationQualityCuts.minGammaEt
124 ## ByLooseCombinedIsolationDBSumPtCorr
125 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr = hpsPFTauDiscriminationByLooseIsolationDBSumPtCorr.clone(
126  ApplyDiscriminationByTrackerIsolation = True,
127  ApplyDiscriminationByECALIsolation = True,
128  deltaBetaFactor = "%0.4f"%(ak4dBetaCorrection),
129  applyOccupancyCut = False,
130  applySumPtCut = True,
131  maximumSumPtCut = 2.5,
132  Prediscriminants = requireDecayMode.clone()
133 )
134 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr.qualityCuts.isolationQualityCuts.minTrackPt = 0.5
135 phase2_common.toModify(hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr.qualityCuts,
136  isolationQualityCuts = dict( minTrackPt = 0.8 )
137  )
138 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr.qualityCuts.isolationQualityCuts.minGammaEt = 1.0
139 ## ByMediumCombinedIsolationDBSumPtCorr
140 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr = hpsPFTauDiscriminationByMediumIsolationDBSumPtCorr.clone(
141  ApplyDiscriminationByTrackerIsolation = True,
142  ApplyDiscriminationByECALIsolation = True,
143  deltaBetaFactor = "%0.4f"%(ak4dBetaCorrection),
144  applyOccupancyCut = False,
145  applySumPtCut = True,
146  maximumSumPtCut = 1.5,
147  Prediscriminants = requireDecayMode.clone()
148 )
149 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr.qualityCuts.isolationQualityCuts.minTrackPt = 0.5
150 phase2_common.toModify(hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr.qualityCuts,
151  isolationQualityCuts = dict( minTrackPt = 0.8 )
152  )
153 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr.qualityCuts.isolationQualityCuts.minGammaEt = 1.0
154 ## ByTightCombinedIsolationDBSumPtCorr
155 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr = hpsPFTauDiscriminationByTightIsolationDBSumPtCorr.clone(
156  ApplyDiscriminationByTrackerIsolation = True,
157  ApplyDiscriminationByECALIsolation = True,
158  deltaBetaFactor = "%0.4f"%(ak4dBetaCorrection),
159  applyOccupancyCut = False,
160  applySumPtCut = True,
161  maximumSumPtCut = 0.8,
162  Prediscriminants = requireDecayMode.clone()
163 )
164 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr.qualityCuts.isolationQualityCuts.minTrackPt = 0.5
165 phase2_common.toModify(hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr.qualityCuts,
166  isolationQualityCuts = dict( minTrackPt = 0.8 )
167  )
168 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr.qualityCuts.isolationQualityCuts.minGammaEt = 1.0
169 ## ByLooseChargedIsolation
170 hpsPFTauDiscriminationByLooseChargedIsolation = hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr.clone(
171  ApplyDiscriminationByECALIsolation = False
172 )
173 ## ByLooseCombinedIsolationDBSumPtCorr3Hits
174 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits = hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr.clone()
175 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits.qualityCuts.isolationQualityCuts.minTrackHits = cms.uint32(3)
176 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits.applyPhotonPtSumOutsideSignalConeCut = cms.bool(True)
177 ## ByMediumCombinedIsolationDBSumPtCorr3Hits
178 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3Hits = hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr.clone()
179 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3Hits.qualityCuts.isolationQualityCuts.minTrackHits = cms.uint32(3)
180 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3Hits.applyPhotonPtSumOutsideSignalConeCut = cms.bool(True)
181 ## ByTightCombinedIsolationDBSumPtCorr3Hits
182 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3Hits = hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr.clone()
183 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3Hits.qualityCuts.isolationQualityCuts.minTrackHits = cms.uint32(3)
184 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3Hits.applyPhotonPtSumOutsideSignalConeCut = cms.bool(True)
185 ## ByRawCombinedIsolationDBSumPtCorr3Hits
186 hpsPFTauDiscriminationByRawCombinedIsolationDBSumPtCorr3Hits = hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits.clone(
187  applySumPtCut = False,
188  storeRawSumPt = cms.bool(True)
189 )
190 ## hpsPFTauDiscriminationByCombinedIsolationSeqDBSumPtCorr3Hits
191 hpsPFTauDiscriminationByCombinedIsolationDBSumPtCorr3HitsTask = cms.Task(
192  hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits,
193  hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3Hits,
194  hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3Hits,
195  hpsPFTauDiscriminationByRawCombinedIsolationDBSumPtCorr3Hits
196 )
197 hpsPFTauDiscriminationByCombinedIsolationSeqDBSumPtCorr3Hits = cms.Sequence(
198  hpsPFTauDiscriminationByCombinedIsolationDBSumPtCorr3HitsTask
199 )
200 ## Discrimination ByLooseCombinedIsolationDBSumPtCorr3HitsdR03
201 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3HitsdR03 = hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits.clone()
202 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3HitsdR03.deltaBetaFactor = cms.string('0.0720') # 0.2*(0.3/0.5)^2
203 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3HitsdR03.customOuterCone = cms.double(0.3)
204 ## Discrimination ByMediumCombinedIsolationDBSumPtCorr3HitsdR03
205 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3HitsdR03 = hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3Hits.clone()
206 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3HitsdR03.deltaBetaFactor = cms.string('0.0720') # 0.2*(0.3/0.5)^2
207 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3HitsdR03.customOuterCone = cms.double(0.3)
208 ## Discrimination ByTightCombinedIsolationDBSumPtCorr3HitsdR03
209 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3HitsdR03 = hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3Hits.clone()
210 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3HitsdR03.deltaBetaFactor = cms.string('0.0720') # 0.2*(0.3/0.5)^2
211 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3HitsdR03.customOuterCone = cms.double(0.3)
212 ## hpsPFTauDiscriminationByCombinedIsolationSeqDBSumPtCorr3HitsdR03
213 hpsPFTauDiscriminationByCombinedIsolationDBSumPtCorr3HitsdR03Task = cms.Task(
214  hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3HitsdR03,
215  hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3HitsdR03,
216  hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3HitsdR03
217 )
218 hpsPFTauDiscriminationByCombinedIsolationSeqDBSumPtCorr3HitsdR03 = cms.Sequence(
219  hpsPFTauDiscriminationByCombinedIsolationDBSumPtCorr3HitsdR03Task
220 )
221 ## ByLoosePileupWeightedIsolation3Hits (kept for Validation)
222 hpsPFTauDiscriminationByLoosePileupWeightedIsolation3Hits = hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits.clone(
223  ApplyDiscriminationByECALIsolation = cms.bool(False),
224  applyDeltaBetaCorrection = cms.bool(False),
225  ApplyDiscriminationByWeightedECALIsolation = cms.bool(True),
226  UseAllPFCandsForWeights = cms.bool(True),
227  applyFootprintCorrection = cms.bool(True),
228  applyPhotonPtSumOutsideSignalConeCut = cms.bool(True)
229 )
230 ## ByMediumPileupWeightedIsolation3Hits (kept for Validation)
231 hpsPFTauDiscriminationByMediumPileupWeightedIsolation3Hits = hpsPFTauDiscriminationByLoosePileupWeightedIsolation3Hits.clone(
232  maximumSumPtCut = hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3Hits.maximumSumPtCut
233 )
234 ## ByTightPileupWeightedIsolation3Hits (kept for Validation)
235 hpsPFTauDiscriminationByTightPileupWeightedIsolation3Hits = hpsPFTauDiscriminationByLoosePileupWeightedIsolation3Hits.clone(
236  maximumSumPtCut = hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3Hits.maximumSumPtCut
237 )
238 ## ByRawPileupWeightedIsolation3Hits (kept for Validation)
239 hpsPFTauDiscriminationByRawPileupWeightedIsolation3Hits = hpsPFTauDiscriminationByLoosePileupWeightedIsolation3Hits.clone(
240  Prediscriminants = cms.PSet(
241  BooleanOperator = cms.string("and"),
242  decayMode = cms.PSet(
243  Producer = cms.InputTag('hpsPFTauDiscriminationByPhotonPtSumOutsideSignalCone'),
244  cut = cms.double(0.5)
245  )
246  ),
247  applySumPtCut = cms.bool(False),
248  storeRawSumPt = cms.bool(True)
249 )
250 ## hpsPFTauDiscriminationByPhotonPtSumOutsideSignalCone
251 hpsPFTauDiscriminationByPhotonPtSumOutsideSignalCone = hpsPFTauDiscriminationByLoosePileupWeightedIsolation3Hits.clone(
252  applySumPtCut = cms.bool(False)
253 )
254 ## hpsPFTauDiscriminationByPileupWeightedIsolationSeq3Hits
255 hpsPFTauDiscriminationByPileupWeightedIsolation3HitsTask = cms.Task(
256  hpsPFTauDiscriminationByLoosePileupWeightedIsolation3Hits,
257  hpsPFTauDiscriminationByMediumPileupWeightedIsolation3Hits,
258  hpsPFTauDiscriminationByTightPileupWeightedIsolation3Hits,
259  hpsPFTauDiscriminationByPhotonPtSumOutsideSignalCone,
260  hpsPFTauDiscriminationByRawPileupWeightedIsolation3Hits
261 )
262 hpsPFTauDiscriminationByPileupWeightedIsolationSeq3Hits = cms.Sequence(
263  hpsPFTauDiscriminationByPileupWeightedIsolation3HitsTask
264 )
265 
266 
267 ## ByLooseMuonRejection3
268 hpsPFTauDiscriminationByLooseMuonRejection3 = pfRecoTauDiscriminationAgainstMuon2.clone(
269  PFTauProducer = cms.InputTag('hpsPFTauProducer'),
270  Prediscriminants = noPrediscriminants,
271  discriminatorOption = cms.string('custom'),
272  maxNumberOfMatches = cms.int32(1),
273  doCaloMuonVeto = cms.bool(True),
274  maxNumberOfHitsLast2Stations = cms.int32(-1)
275 )
276 hpsPFTauDiscriminationByTightMuonRejection3 = hpsPFTauDiscriminationByLooseMuonRejection3.clone(
277  maxNumberOfHitsLast2Stations = cms.int32(0)
278 )
279 
280 
281 ## ByLooseElectronRejection
282 hpsPFTauDiscriminationByLooseElectronRejection = pfRecoTauDiscriminationAgainstElectron.clone(
283  PFTauProducer = cms.InputTag('hpsPFTauProducer'),
284  Prediscriminants = noPrediscriminants,
285  PFElectronMVA_maxValue = cms.double(0.6)
286 )
287 ## ByMediumElectronRejection
288 hpsPFTauDiscriminationByMediumElectronRejection = pfRecoTauDiscriminationAgainstElectron.clone(
289  PFTauProducer = cms.InputTag('hpsPFTauProducer'),
290  Prediscriminants = noPrediscriminants,
291  ApplyCut_EcalCrackCut = cms.bool(True)
292 )
293 ## ByTightElectronRejection
294 hpsPFTauDiscriminationByTightElectronRejection = pfRecoTauDiscriminationAgainstElectron.clone(
295  PFTauProducer = cms.InputTag('hpsPFTauProducer'),
296  Prediscriminants = noPrediscriminants,
297  ApplyCut_EcalCrackCut = cms.bool(True),
298  ApplyCut_BremCombined = cms.bool(True)
299 )
300 ## ByDeadECALElectronRejection
301 hpsPFTauDiscriminationByDeadECALElectronRejection = pfRecoTauDiscriminationAgainstElectronDeadECAL.clone(
302  PFTauProducer = cms.InputTag('hpsPFTauProducer'),
303  Prediscriminants = requireDecayMode.clone()
304 )
305 ## ByMVA6rawElectronRejection
306 hpsPFTauDiscriminationByMVA6rawElectronRejection = pfRecoTauDiscriminationAgainstElectronMVA6.clone(
307  PFTauProducer = cms.InputTag('hpsPFTauProducer'),
308  Prediscriminants = requireDecayMode.clone(),
309  loadMVAfromDB = cms.bool(True),
310  vetoEcalCracks = cms.bool(True),
311  mvaName_NoEleMatch_woGwoGSF_BL = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_BL"),
312  mvaName_NoEleMatch_wGwoGSF_BL = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_BL"),
313  mvaName_woGwGSF_BL = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_BL"),
314  mvaName_wGwGSF_BL = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_BL"),
315  mvaName_NoEleMatch_woGwoGSF_EC = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_EC"),
316  mvaName_NoEleMatch_wGwoGSF_EC = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_EC"),
317  mvaName_woGwGSF_EC = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_EC"),
318  mvaName_wGwGSF_EC = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_EC")
319 )
320 ## ByMVA6VLooseElectronRejection
321 hpsPFTauDiscriminationByMVA6VLooseElectronRejection = recoTauDiscriminantCutMultiplexer.clone(
322  PFTauProducer = cms.InputTag('hpsPFTauProducer'),
323  Prediscriminants = requireDecayMode.clone(),
324  toMultiplex = cms.InputTag('hpsPFTauDiscriminationByMVA6rawElectronRejection'),
325  key = cms.InputTag('hpsPFTauDiscriminationByMVA6rawElectronRejection:category'),
326  loadMVAfromDB = cms.bool(True),
327  mapping = cms.VPSet(
328  cms.PSet(
329  category = cms.uint32(0), # minMVANoEleMatchWOgWOgsfBL
330  cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_BL_WPEff99"),
331  variable = cms.string("pt")
332  ),
333  cms.PSet(
334  category = cms.uint32(2), # minMVANoEleMatchWgWOgsfBL
335  cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_BL_WPEff99"),
336  variable = cms.string("pt")
337  ),
338  cms.PSet(
339  category = cms.uint32(5), # minMVAWOgWgsfBL
340  cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_BL_WPEff99"),
341  variable = cms.string("pt")
342  ),
343  cms.PSet(
344  category = cms.uint32(7), # minMVAWgWgsfBL
345  cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_BL_WPEff99"),
346  variable = cms.string("pt")
347  ),
348  cms.PSet(
349  category = cms.uint32(8), # minMVANoEleMatchWOgWOgsfEC
350  cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_EC_WPEff99"),
351  variable = cms.string("pt")
352  ),
353  cms.PSet(
354  category = cms.uint32(10), # minMVANoEleMatchWgWOgsfEC
355  cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_EC_WPEff99"),
356  variable = cms.string("pt")
357  ),
358  cms.PSet(
359  category = cms.uint32(13), # minMVAWOgWgsfEC
360  cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_EC_WPEff99"),
361  variable = cms.string("pt")
362  ),
363  cms.PSet(
364  category = cms.uint32(15), # minMVAWgWgsfEC
365  cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_EC_WPEff99"),
366  variable = cms.string("pt")
367  )
368  )
369 )
370 ## ByMVA6LooseElectronRejection
371 hpsPFTauDiscriminationByMVA6LooseElectronRejection = copy.deepcopy(hpsPFTauDiscriminationByMVA6VLooseElectronRejection)
372 hpsPFTauDiscriminationByMVA6LooseElectronRejection.mapping[0].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_BL_WPEff96")
373 hpsPFTauDiscriminationByMVA6LooseElectronRejection.mapping[1].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_BL_WPEff96")
374 hpsPFTauDiscriminationByMVA6LooseElectronRejection.mapping[2].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_BL_WPEff96")
375 hpsPFTauDiscriminationByMVA6LooseElectronRejection.mapping[3].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_BL_WPEff96")
376 hpsPFTauDiscriminationByMVA6LooseElectronRejection.mapping[4].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_EC_WPEff96")
377 hpsPFTauDiscriminationByMVA6LooseElectronRejection.mapping[5].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_EC_WPEff96")
378 hpsPFTauDiscriminationByMVA6LooseElectronRejection.mapping[6].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_EC_WPEff96")
379 hpsPFTauDiscriminationByMVA6LooseElectronRejection.mapping[7].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_EC_WPEff96")
380 ## ByMVA6VMediumElectronRejection
381 hpsPFTauDiscriminationByMVA6MediumElectronRejection = copy.deepcopy(hpsPFTauDiscriminationByMVA6VLooseElectronRejection)
382 hpsPFTauDiscriminationByMVA6MediumElectronRejection.mapping[0].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_BL_WPEff91")
383 hpsPFTauDiscriminationByMVA6MediumElectronRejection.mapping[1].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_BL_WPEff91")
384 hpsPFTauDiscriminationByMVA6MediumElectronRejection.mapping[2].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_BL_WPEff91")
385 hpsPFTauDiscriminationByMVA6MediumElectronRejection.mapping[3].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_BL_WPEff91")
386 hpsPFTauDiscriminationByMVA6MediumElectronRejection.mapping[4].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_EC_WPEff91")
387 hpsPFTauDiscriminationByMVA6MediumElectronRejection.mapping[5].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_EC_WPEff91")
388 hpsPFTauDiscriminationByMVA6MediumElectronRejection.mapping[6].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_EC_WPEff91")
389 hpsPFTauDiscriminationByMVA6MediumElectronRejection.mapping[7].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_EC_WPEff91")
390 ## ByMVA6TightElectronRejection
391 hpsPFTauDiscriminationByMVA6TightElectronRejection = copy.deepcopy(hpsPFTauDiscriminationByMVA6VLooseElectronRejection)
392 hpsPFTauDiscriminationByMVA6TightElectronRejection.mapping[0].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_BL_WPEff85")
393 hpsPFTauDiscriminationByMVA6TightElectronRejection.mapping[1].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_BL_WPEff85")
394 hpsPFTauDiscriminationByMVA6TightElectronRejection.mapping[2].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_BL_WPEff85")
395 hpsPFTauDiscriminationByMVA6TightElectronRejection.mapping[3].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_BL_WPEff85")
396 hpsPFTauDiscriminationByMVA6TightElectronRejection.mapping[4].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_EC_WPEff85")
397 hpsPFTauDiscriminationByMVA6TightElectronRejection.mapping[5].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_EC_WPEff85")
398 hpsPFTauDiscriminationByMVA6TightElectronRejection.mapping[6].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_EC_WPEff85")
399 hpsPFTauDiscriminationByMVA6TightElectronRejection.mapping[7].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_EC_WPEff85")
400 ## ByMVA6VTightElectronRejection
401 hpsPFTauDiscriminationByMVA6VTightElectronRejection = copy.deepcopy(hpsPFTauDiscriminationByMVA6VLooseElectronRejection)
402 hpsPFTauDiscriminationByMVA6VTightElectronRejection.mapping[0].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_BL_WPEff79")
403 hpsPFTauDiscriminationByMVA6VTightElectronRejection.mapping[1].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_BL_WPEff79")
404 hpsPFTauDiscriminationByMVA6VTightElectronRejection.mapping[2].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_BL_WPEff79")
405 hpsPFTauDiscriminationByMVA6VTightElectronRejection.mapping[3].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_BL_WPEff79")
406 hpsPFTauDiscriminationByMVA6VTightElectronRejection.mapping[4].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_EC_WPEff79")
407 hpsPFTauDiscriminationByMVA6VTightElectronRejection.mapping[5].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_EC_WPEff79")
408 hpsPFTauDiscriminationByMVA6VTightElectronRejection.mapping[6].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_EC_WPEff79")
409 hpsPFTauDiscriminationByMVA6VTightElectronRejection.mapping[7].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_EC_WPEff79")
410 
411 # Define the HPS selection discriminator used in cleaning
412 hpsSelectionDiscriminator.PFTauProducer = cms.InputTag("combinatoricRecoTaus")
413 #----------------------------------------------------------------------------
414 # CV: disable 3Prong1Pi0 decay mode
415 hpsSelectionDiscriminator.decayModes = cms.VPSet(
416  decayMode_1Prong0Pi0,
417  decayMode_1Prong1Pi0,
418  decayMode_1Prong2Pi0,
419  decayMode_2Prong0Pi0,
420  decayMode_2Prong1Pi0,
421  decayMode_3Prong0Pi0,
422  decayMode_3Prong1Pi0,
423 )
424 #----------------------------------------------------------------------------
425 
426 from RecoTauTag.RecoTau.RecoTauCleaner_cfi import RecoTauCleaner
427 hpsPFTauProducerSansRefs = RecoTauCleaner.clone(
428  src = cms.InputTag("combinatoricRecoTaus")
429 )
430 hpsPFTauProducerSansRefs.cleaners[1].src = cms.InputTag("hpsSelectionDiscriminator")
431 
432 from RecoTauTag.RecoTau.RecoTauPiZeroUnembedder_cfi import RecoTauPiZeroUnembedder
433 hpsPFTauProducer = RecoTauPiZeroUnembedder.clone(
434  src = cms.InputTag("hpsPFTauProducerSansRefs")
435 )
436 
440 hpsPFTauPrimaryVertexProducer = PFTauPrimaryVertexProducer.clone(
441  PFTauTag = cms.InputTag("hpsPFTauProducer"),
442  ElectronTag = cms.InputTag(""),
443  MuonTag = cms.InputTag(""),
444  PVTag = cms.InputTag("offlinePrimaryVertices"),
445  beamSpot = cms.InputTag("offlineBeamSpot"),
446  Algorithm = cms.int32(0),
447  useBeamSpot = cms.bool(True),
448  RemoveMuonTracks = cms.bool(False),
449  RemoveElectronTracks = cms.bool(False),
450  useSelectedTaus = cms.bool(False),
451  discriminators = cms.VPSet(
452  cms.PSet(
453  discriminator = cms.InputTag('hpsPFTauDiscriminationByDecayModeFindingNewDMs'),
454  selectionCut = cms.double(0.5)
455  )
456  ),
457  cut = cms.string("pt > 18.0 & abs(eta) < 2.4")
458 )
459 
460 hpsPFTauSecondaryVertexProducer = PFTauSecondaryVertexProducer.clone(
461  PFTauTag = cms.InputTag("hpsPFTauProducer")
462 )
463 hpsPFTauTransverseImpactParameters = PFTauTransverseImpactParameters.clone(
464  PFTauTag = cms.InputTag("hpsPFTauProducer"),
465  PFTauPVATag = cms.InputTag("hpsPFTauPrimaryVertexProducer"),
466  PFTauSVATag = cms.InputTag("hpsPFTauSecondaryVertexProducer"),
467  useFullCalculation = cms.bool(True)
468 )
469 hpsPFTauVertexAndImpactParametersTask = cms.Task(
470  hpsPFTauPrimaryVertexProducer,
471  hpsPFTauSecondaryVertexProducer,
472  hpsPFTauTransverseImpactParameters
473 )
474 hpsPFTauVertexAndImpactParametersSeq = cms.Sequence(
475  hpsPFTauVertexAndImpactParametersTask
476 )
478 hpsPFTauChargedIsoPtSum = hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits.clone(
479  PFTauProducer = cms.InputTag('hpsPFTauProducer'),
480  Prediscriminants = requireDecayMode.clone(),
481  ApplyDiscriminationByECALIsolation = cms.bool(False),
482  ApplyDiscriminationByTrackerIsolation = cms.bool(True),
483  applySumPtCut = cms.bool(False),
484  applyDeltaBetaCorrection = cms.bool(False),
485  storeRawSumPt = cms.bool(True),
486  storeRawPUsumPt = cms.bool(False),
487  customOuterCone = PFRecoTauPFJetInputs.isolationConeSize,
488  isoConeSizeForDeltaBeta = cms.double(0.8),
489  verbosity = cms.int32(0)
490 )
491 hpsPFTauNeutralIsoPtSum = hpsPFTauChargedIsoPtSum.clone(
492  ApplyDiscriminationByECALIsolation = cms.bool(True),
493  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
494  verbosity = cms.int32(0)
495 )
496 hpsPFTauPUcorrPtSum = hpsPFTauChargedIsoPtSum.clone(
497  ApplyDiscriminationByECALIsolation = cms.bool(False),
498  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
499  applyDeltaBetaCorrection = cms.bool(True),
500  storeRawSumPt = cms.bool(False),
501  storeRawPUsumPt = cms.bool(True),
502  verbosity = cms.int32(0)
503 )
504 hpsPFTauNeutralIsoPtSumWeight = hpsPFTauChargedIsoPtSum.clone(
505  ApplyDiscriminationByWeightedECALIsolation = cms.bool(True),
506  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
507  UseAllPFCandsForWeights = cms.bool(True),
508  verbosity = cms.int32(0)
509 )
510 hpsPFTauFootprintCorrection = hpsPFTauChargedIsoPtSum.clone(
511  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
512  storeRawSumPt = cms.bool(False),
513  storeRawFootprintCorrection = cms.bool(True),
514  verbosity = cms.int32(0)
515 )
516 hpsPFTauPhotonPtSumOutsideSignalCone = hpsPFTauChargedIsoPtSum.clone(
517  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
518  storeRawSumPt = cms.bool(False),
519  storeRawPhotonSumPt_outsideSignalCone = cms.bool(True),
520  verbosity = cms.int32(0)
521 )
522 
523 #Define new Run2 MVA isolations
525 hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw = discriminationByIsolationMVArun2v1raw.clone(
526  PFTauProducer = cms.InputTag('hpsPFTauProducer'),
527  Prediscriminants = requireDecayMode.clone(),
528  loadMVAfromDB = cms.bool(True),
529  mvaName = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2"),
530  mvaOpt = cms.string("DBoldDMwLTwGJ"),
531  srcTauTransverseImpactParameters = cms.InputTag('hpsPFTauTransverseImpactParameters'),
532  srcChargedIsoPtSum = cms.InputTag('hpsPFTauChargedIsoPtSum'),
533  srcNeutralIsoPtSum = cms.InputTag('hpsPFTauNeutralIsoPtSum'),
534  srcPUcorrPtSum = cms.InputTag('hpsPFTauPUcorrPtSum'),
535  srcPhotonPtSumOutsideSignalCone = cms.InputTag('hpsPFTauPhotonPtSumOutsideSignalCone'),
536  srcFootprintCorrection = cms.InputTag('hpsPFTauFootprintCorrection'),
537  verbosity = cms.int32(0)
538 )
539 
540 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT = discriminationByIsolationMVArun2v1VLoose.clone(
541  PFTauProducer = cms.InputTag('hpsPFTauProducer'),
542  Prediscriminants = requireDecayMode.clone(),
543  toMultiplex = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw'),
544  key = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw:category'),
545  loadMVAfromDB = cms.bool(True),
546  mvaOutput_normalization = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_mvaOutput_normalization"),
547  mapping = cms.VPSet(
548  cms.PSet(
549  category = cms.uint32(0),
550  cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff90"),
551  variable = cms.string("pt")
552  )
553  )
554 )
555 hpsPFTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT.clone()
556 hpsPFTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff95")
557 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT.clone()
558 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff80")
559 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT.clone()
560 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff70")
561 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT.clone()
562 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff60")
563 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT.clone()
564 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff50")
565 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT.clone()
566 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff40")
567 
568 hpsPFTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw = hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw.clone(
569  mvaName = cms.string("RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2"),
570  mvaOpt = cms.string("DBnewDMwLTwGJ"),
571  verbosity = cms.int32(0)
572 )
573 
574 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT.clone(
575  toMultiplex = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw'),
576  key = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw:category'),
577  loadMVAfromDB = cms.bool(True),
578  mvaOutput_normalization = cms.string("RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_mvaOutput_normalization"),
579  mapping = cms.VPSet(
580  cms.PSet(
581  category = cms.uint32(0),
582  cut = cms.string("RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff90"),
583  variable = cms.string("pt")
584  )
585  )
586 )
587 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT.clone()
588 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff80")
589 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT.clone()
590 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff70")
591 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT.clone()
592 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff60")
593 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT.clone()
594 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff50")
595 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT.clone()
596 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff40")
597 
598 hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTraw = hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw.clone(
599  mvaName = cms.string("RecoTauTag_tauIdMVAPWoldDMwLTv1"),
600  mvaOpt = cms.string("PWoldDMwLT"),
601  srcNeutralIsoPtSum = cms.InputTag('hpsPFTauNeutralIsoPtSumWeight'),
602  verbosity = cms.int32(0)
603 )
604 
605 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT.clone(
606  toMultiplex = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTraw'),
607  key = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTraw:category'),
608  loadMVAfromDB = cms.bool(True),
609  mvaOutput_normalization = cms.string("RecoTauTag_tauIdMVAPWoldDMwLTv1_mvaOutput_normalization"),
610  mapping = cms.VPSet(
611  cms.PSet(
612  category = cms.uint32(0),
613  cut = cms.string("RecoTauTag_tauIdMVAPWoldDMwLTv1_WPEff90"),
614  variable = cms.string("pt")
615  )
616  )
617 )
618 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT.clone()
619 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWoldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWoldDMwLTv1_WPEff80")
620 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT.clone()
621 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWoldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWoldDMwLTv1_WPEff70")
622 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT.clone()
623 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWoldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWoldDMwLTv1_WPEff60")
624 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT.clone()
625 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWoldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWoldDMwLTv1_WPEff50")
626 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT.clone()
627 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWoldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWoldDMwLTv1_WPEff40")
628 
629 hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLTraw = hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTraw.clone(
630  mvaName = cms.string("RecoTauTag_tauIdMVAPWnewDMwLTv1"),
631  mvaOpt = cms.string("PWnewDMwLT"),
632  verbosity = cms.int32(0)
633 )
634 
635 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT.clone(
636  toMultiplex = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLTraw'),
637  key = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLTraw:category'),
638  loadMVAfromDB = cms.bool(True),
639  mvaOutput_normalization = cms.string("RecoTauTag_tauIdMVAPWnewDMwLTv1_mvaOutput_normalization"),
640  mapping = cms.VPSet(
641  cms.PSet(
642  category = cms.uint32(0),
643  cut = cms.string("RecoTauTag_tauIdMVAPWnewDMwLTv1_WPEff90"),
644  variable = cms.string("pt")
645  )
646  )
647 )
648 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT.clone()
649 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWnewDMwLTv1_WPEff80")
650 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT.clone()
651 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWnewDMwLTv1_WPEff70")
652 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT.clone()
653 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWnewDMwLTv1_WPEff60")
654 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT.clone()
655 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWnewDMwLTv1_WPEff50")
656 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT.clone()
657 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWnewDMwLTv1_WPEff40")
658 
659 hpsPFTauChargedIsoPtSumdR03 = hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits.clone(
660  PFTauProducer = cms.InputTag('hpsPFTauProducer'),
661  Prediscriminants = requireDecayMode.clone(),
662  ApplyDiscriminationByECALIsolation = cms.bool(False),
663  ApplyDiscriminationByTrackerIsolation = cms.bool(True),
664  applySumPtCut = cms.bool(False),
665  applyDeltaBetaCorrection = cms.bool(False),
666  storeRawSumPt = cms.bool(True),
667  storeRawPUsumPt = cms.bool(False),
668  customOuterCone = cms.double(0.3),
669  isoConeSizeForDeltaBeta = cms.double(0.8),
670  verbosity = cms.int32(0)
671 )
672 hpsPFTauNeutralIsoPtSumdR03 = hpsPFTauChargedIsoPtSumdR03.clone(
673  ApplyDiscriminationByECALIsolation = cms.bool(True),
674  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
675  verbosity = cms.int32(0)
676 )
677 hpsPFTauPUcorrPtSumdR03 = hpsPFTauChargedIsoPtSumdR03.clone(
678  ApplyDiscriminationByECALIsolation = cms.bool(False),
679  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
680  applyDeltaBetaCorrection = cms.bool(True),
681  storeRawSumPt = cms.bool(False),
682  storeRawPUsumPt = cms.bool(True),
683  verbosity = cms.int32(0)
684 )
685 hpsPFTauNeutralIsoPtSumWeightdR03 = hpsPFTauChargedIsoPtSumdR03.clone(
686  ApplyDiscriminationByWeightedECALIsolation = cms.bool(True),
687  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
688  UseAllPFCandsForWeights = cms.bool(True),
689  verbosity = cms.int32(0)
690 )
691 hpsPFTauFootprintCorrectiondR03 = hpsPFTauChargedIsoPtSumdR03.clone(
692  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
693  storeRawSumPt = cms.bool(False),
694  storeRawFootprintCorrection = cms.bool(True),
695  verbosity = cms.int32(0)
696 )
697 hpsPFTauPhotonPtSumOutsideSignalConedR03 = hpsPFTauChargedIsoPtSumdR03.clone(
698  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
699  storeRawSumPt = cms.bool(False),
700  storeRawPhotonSumPt_outsideSignalCone = cms.bool(True),
701  verbosity = cms.int32(0)
702 )
703 
704 hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTraw = hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw.clone(
705  mvaName = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2"),
706  mvaOpt = cms.string("DBoldDMwLTwGJ"),
707  srcChargedIsoPtSum = cms.InputTag('hpsPFTauChargedIsoPtSumdR03'),
708  srcNeutralIsoPtSum = cms.InputTag('hpsPFTauNeutralIsoPtSumdR03'),
709  srcPUcorrPtSum = cms.InputTag('hpsPFTauPUcorrPtSumdR03'),
710  srcPhotonPtSumOutsideSignalCone = cms.InputTag('hpsPFTauPhotonPtSumOutsideSignalConedR03'),
711  srcFootprintCorrection = cms.InputTag('hpsPFTauFootprintCorrectiondR03'),
712  verbosity = cms.int32(0)
713 )
714 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT.clone(
715  PFTauProducer = cms.InputTag('hpsPFTauProducer'),
716  Prediscriminants = requireDecayMode.clone(),
717  toMultiplex = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTraw'),
718  key = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTraw:category'),
719  loadMVAfromDB = cms.bool(True),
720  mvaOutput_normalization = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_mvaOutput_normalization"),
721  mapping = cms.VPSet(
722  cms.PSet(
723  category = cms.uint32(0),
724  cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff90"),
725  variable = cms.string("pt")
726  )
727  )
728 )
729 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT.clone()
730 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBdR03oldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff80")
731 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT.clone()
732 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBdR03oldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff70")
733 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT.clone()
734 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBdR03oldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff60")
735 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT.clone()
736 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBdR03oldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff50")
737 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT.clone()
738 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBdR03oldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff40")
739 
740 hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLTraw = hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTraw.clone(
741  mvaName = cms.string("RecoTauTag_tauIdMVAPWdR03oldDMwLTv1"),
742  mvaOpt = cms.string("PWoldDMwLT"),
743  srcNeutralIsoPtSum = cms.InputTag('hpsPFTauNeutralIsoPtSumWeightdR03'),
744  verbosity = cms.int32(0)
745 )
746 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT.clone(
747  toMultiplex = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLTraw'),
748  key = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLTraw:category'),
749  loadMVAfromDB = cms.bool(True),
750  mvaOutput_normalization = cms.string("RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_mvaOutput_normalization"),
751  mapping = cms.VPSet(
752  cms.PSet(
753  category = cms.uint32(0),
754  cut = cms.string("RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_WPEff90"),
755  variable = cms.string("pt")
756  )
757  )
758 )
759 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT.clone()
760 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWdR03oldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_WPEff80")
761 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT.clone()
762 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWdR03oldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_WPEff70")
763 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT.clone()
764 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWdR03oldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_WPEff60")
765 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT.clone()
766 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWdR03oldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_WPEff50")
767 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT.clone()
768 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWdR03oldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_WPEff40")
769 
770 hpsPFTauIsolationSumsTask = cms.Task(
771  hpsPFTauChargedIsoPtSum,
772  hpsPFTauNeutralIsoPtSum,
773  hpsPFTauPUcorrPtSum,
774  hpsPFTauNeutralIsoPtSumWeight,
775  hpsPFTauFootprintCorrection,
776  hpsPFTauPhotonPtSumOutsideSignalCone,
777  )
778 
779 hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTTask = cms.Task(
780  hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw,
781  hpsPFTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT,
782  hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT,
783  hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT,
784  hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT,
785  hpsPFTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT,
786  hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT,
787  hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT
788  )
789 
790 hpsPFTauDiscriminationByIsolationMVArun2v1DBnewDMwLTTask = cms.Task(
791  hpsPFTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw,
792  hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT,
793  hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBnewDMwLT,
794  hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBnewDMwLT,
795  hpsPFTauDiscriminationByTightIsolationMVArun2v1DBnewDMwLT,
796  hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBnewDMwLT,
797  hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBnewDMwLT
798  )
799 
800 hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTTask = cms.Task(
801  hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTraw,
802  hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT,
803  hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWoldDMwLT,
804  hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWoldDMwLT,
805  hpsPFTauDiscriminationByTightIsolationMVArun2v1PWoldDMwLT,
806  hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWoldDMwLT,
807  hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWoldDMwLT
808  )
809 
810 hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLTTask = cms.Task(
811  hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLTraw,
812  hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT,
813  hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWnewDMwLT,
814  hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWnewDMwLT,
815  hpsPFTauDiscriminationByTightIsolationMVArun2v1PWnewDMwLT,
816  hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWnewDMwLT,
817  hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWnewDMwLT,
818  )
819 
820 hpsPFTauIsolationSums03Task = cms.Task(
821  hpsPFTauChargedIsoPtSumdR03,
822  hpsPFTauNeutralIsoPtSumdR03,
823  hpsPFTauPUcorrPtSumdR03,
824  hpsPFTauNeutralIsoPtSumWeightdR03,
825  hpsPFTauFootprintCorrectiondR03,
826  hpsPFTauPhotonPtSumOutsideSignalConedR03
827  )
828 
829 hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTTask = cms.Task(
830  hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTraw,
831  hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT,
832  hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBdR03oldDMwLT,
833  hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBdR03oldDMwLT,
834  hpsPFTauDiscriminationByTightIsolationMVArun2v1DBdR03oldDMwLT,
835  hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBdR03oldDMwLT,
836  hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBdR03oldDMwLT
837  )
838 
839 hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLTTask = cms.Task(
840  hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLTraw,
841  hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT,
842  hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWdR03oldDMwLT,
843  hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWdR03oldDMwLT,
844  hpsPFTauDiscriminationByTightIsolationMVArun2v1PWdR03oldDMwLT,
845  hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWdR03oldDMwLT,
846  hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWdR03oldDMwLT
847  )
848 
849 hpsPFTauMVAIsolation2Task = cms.Task(
850  hpsPFTauIsolationSumsTask,
851  hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTTask,
852  hpsPFTauDiscriminationByIsolationMVArun2v1DBnewDMwLTTask,
853  hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTTask,
854  hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLTTask,
855  hpsPFTauIsolationSums03Task,
856  hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTTask,
857  hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLTTask
858  )
859 
860 hpsPFTauMVAIsolation2Seq = cms.Sequence(
861  hpsPFTauMVAIsolation2Task
862  )
863 
864 produceHPSPFTausTask = cms.Task(
865  hpsSelectionDiscriminator,
866  #hpsTightIsolationCleaner,
867  #hpsMediumIsolationCleaner,
868  #hpsLooseIsolationCleaner,
869  #hpsVLooseIsolationCleaner,
870  hpsPFTauProducerSansRefs,
871  hpsPFTauProducer
872  )
873 
874 produceHPSPFTaus = cms.Sequence(
875  produceHPSPFTausTask
876  )
877 
878 produceAndDiscriminateHPSPFTausTask = cms.Task(
879  produceHPSPFTausTask,
880  hpsPFTauDiscriminationByDecayModeFindingNewDMs,
881  hpsPFTauDiscriminationByDecayModeFindingOldDMs,
882  hpsPFTauDiscriminationByDecayModeFinding, # CV: kept for backwards compatibility
883  hpsPFTauDiscriminationByLooseChargedIsolation,
884  hpsPFTauDiscriminationByLooseIsolation,
885  hpsPFTauDiscriminationByCombinedIsolationDBSumPtCorr3HitsTask,
886  hpsPFTauDiscriminationByCombinedIsolationDBSumPtCorr3HitsdR03Task,
887  hpsPFTauDiscriminationByPileupWeightedIsolation3HitsTask,
888  hpsPFTauDiscriminationByLooseElectronRejection,
889  hpsPFTauDiscriminationByMediumElectronRejection,
890  hpsPFTauDiscriminationByTightElectronRejection,
891  hpsPFTauDiscriminationByMVA6rawElectronRejection,
892  hpsPFTauDiscriminationByMVA6VLooseElectronRejection,
893  hpsPFTauDiscriminationByMVA6LooseElectronRejection,
894  hpsPFTauDiscriminationByMVA6MediumElectronRejection,
895  hpsPFTauDiscriminationByMVA6TightElectronRejection,
896  hpsPFTauDiscriminationByMVA6VTightElectronRejection,
897  hpsPFTauDiscriminationByDeadECALElectronRejection,
898  hpsPFTauDiscriminationByLooseMuonRejection3,
899  hpsPFTauDiscriminationByTightMuonRejection3,
900  hpsPFTauVertexAndImpactParametersTask,
901  hpsPFTauMVAIsolation2Task
902  )
903 
904 produceAndDiscriminateHPSPFTaus = cms.Sequence(
905  produceAndDiscriminateHPSPFTausTask
906  )
Updated tau collection with MVA-based tau-Ids rerun ####### Used only in some eras.