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 hpsPFTauDiscriminationByVVLooseIsolationMVArun2v1DBnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT.clone()
588 hpsPFTauDiscriminationByVVLooseIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff95")
589 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT.clone()
590 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff80")
591 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT.clone()
592 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff70")
593 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT.clone()
594 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff60")
595 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT.clone()
596 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff50")
597 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT.clone()
598 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff40")
599 
600 hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTraw = hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw.clone(
601  mvaName = cms.string("RecoTauTag_tauIdMVAPWoldDMwLTv1"),
602  mvaOpt = cms.string("PWoldDMwLT"),
603  srcNeutralIsoPtSum = cms.InputTag('hpsPFTauNeutralIsoPtSumWeight'),
604  verbosity = cms.int32(0)
605 )
606 
607 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT.clone(
608  toMultiplex = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTraw'),
609  key = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTraw:category'),
610  loadMVAfromDB = cms.bool(True),
611  mvaOutput_normalization = cms.string("RecoTauTag_tauIdMVAPWoldDMwLTv1_mvaOutput_normalization"),
612  mapping = cms.VPSet(
613  cms.PSet(
614  category = cms.uint32(0),
615  cut = cms.string("RecoTauTag_tauIdMVAPWoldDMwLTv1_WPEff90"),
616  variable = cms.string("pt")
617  )
618  )
619 )
620 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT.clone()
621 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWoldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWoldDMwLTv1_WPEff80")
622 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT.clone()
623 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWoldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWoldDMwLTv1_WPEff70")
624 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT.clone()
625 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWoldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWoldDMwLTv1_WPEff60")
626 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT.clone()
627 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWoldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWoldDMwLTv1_WPEff50")
628 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT.clone()
629 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWoldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWoldDMwLTv1_WPEff40")
630 
631 hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLTraw = hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTraw.clone(
632  mvaName = cms.string("RecoTauTag_tauIdMVAPWnewDMwLTv1"),
633  mvaOpt = cms.string("PWnewDMwLT"),
634  verbosity = cms.int32(0)
635 )
636 
637 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT.clone(
638  toMultiplex = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLTraw'),
639  key = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLTraw:category'),
640  loadMVAfromDB = cms.bool(True),
641  mvaOutput_normalization = cms.string("RecoTauTag_tauIdMVAPWnewDMwLTv1_mvaOutput_normalization"),
642  mapping = cms.VPSet(
643  cms.PSet(
644  category = cms.uint32(0),
645  cut = cms.string("RecoTauTag_tauIdMVAPWnewDMwLTv1_WPEff90"),
646  variable = cms.string("pt")
647  )
648  )
649 )
650 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT.clone()
651 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWnewDMwLTv1_WPEff80")
652 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT.clone()
653 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWnewDMwLTv1_WPEff70")
654 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT.clone()
655 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWnewDMwLTv1_WPEff60")
656 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT.clone()
657 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWnewDMwLTv1_WPEff50")
658 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT.clone()
659 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWnewDMwLTv1_WPEff40")
660 
661 hpsPFTauChargedIsoPtSumdR03 = hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits.clone(
662  PFTauProducer = cms.InputTag('hpsPFTauProducer'),
663  Prediscriminants = requireDecayMode.clone(),
664  ApplyDiscriminationByECALIsolation = cms.bool(False),
665  ApplyDiscriminationByTrackerIsolation = cms.bool(True),
666  applySumPtCut = cms.bool(False),
667  applyDeltaBetaCorrection = cms.bool(False),
668  storeRawSumPt = cms.bool(True),
669  storeRawPUsumPt = cms.bool(False),
670  customOuterCone = cms.double(0.3),
671  isoConeSizeForDeltaBeta = cms.double(0.8),
672  verbosity = cms.int32(0)
673 )
674 hpsPFTauNeutralIsoPtSumdR03 = hpsPFTauChargedIsoPtSumdR03.clone(
675  ApplyDiscriminationByECALIsolation = cms.bool(True),
676  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
677  verbosity = cms.int32(0)
678 )
679 hpsPFTauPUcorrPtSumdR03 = hpsPFTauChargedIsoPtSumdR03.clone(
680  ApplyDiscriminationByECALIsolation = cms.bool(False),
681  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
682  applyDeltaBetaCorrection = cms.bool(True),
683  storeRawSumPt = cms.bool(False),
684  storeRawPUsumPt = cms.bool(True),
685  verbosity = cms.int32(0)
686 )
687 hpsPFTauNeutralIsoPtSumWeightdR03 = hpsPFTauChargedIsoPtSumdR03.clone(
688  ApplyDiscriminationByWeightedECALIsolation = cms.bool(True),
689  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
690  UseAllPFCandsForWeights = cms.bool(True),
691  verbosity = cms.int32(0)
692 )
693 hpsPFTauFootprintCorrectiondR03 = hpsPFTauChargedIsoPtSumdR03.clone(
694  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
695  storeRawSumPt = cms.bool(False),
696  storeRawFootprintCorrection = cms.bool(True),
697  verbosity = cms.int32(0)
698 )
699 hpsPFTauPhotonPtSumOutsideSignalConedR03 = hpsPFTauChargedIsoPtSumdR03.clone(
700  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
701  storeRawSumPt = cms.bool(False),
702  storeRawPhotonSumPt_outsideSignalCone = cms.bool(True),
703  verbosity = cms.int32(0)
704 )
705 
706 hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTraw = hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw.clone(
707  mvaName = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2"),
708  mvaOpt = cms.string("DBoldDMwLTwGJ"),
709  srcChargedIsoPtSum = cms.InputTag('hpsPFTauChargedIsoPtSumdR03'),
710  srcNeutralIsoPtSum = cms.InputTag('hpsPFTauNeutralIsoPtSumdR03'),
711  srcPUcorrPtSum = cms.InputTag('hpsPFTauPUcorrPtSumdR03'),
712  srcPhotonPtSumOutsideSignalCone = cms.InputTag('hpsPFTauPhotonPtSumOutsideSignalConedR03'),
713  srcFootprintCorrection = cms.InputTag('hpsPFTauFootprintCorrectiondR03'),
714  verbosity = cms.int32(0)
715 )
716 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT.clone(
717  PFTauProducer = cms.InputTag('hpsPFTauProducer'),
718  Prediscriminants = requireDecayMode.clone(),
719  toMultiplex = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTraw'),
720  key = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTraw:category'),
721  loadMVAfromDB = cms.bool(True),
722  mvaOutput_normalization = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_mvaOutput_normalization"),
723  mapping = cms.VPSet(
724  cms.PSet(
725  category = cms.uint32(0),
726  cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff90"),
727  variable = cms.string("pt")
728  )
729  )
730 )
731 hpsPFTauDiscriminationByVVLooseIsolationMVArun2v1DBdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT.clone()
732 hpsPFTauDiscriminationByVVLooseIsolationMVArun2v1DBdR03oldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff95")
733 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT.clone()
734 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBdR03oldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff80")
735 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT.clone()
736 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBdR03oldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff70")
737 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT.clone()
738 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBdR03oldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff60")
739 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT.clone()
740 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBdR03oldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff50")
741 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT.clone()
742 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBdR03oldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff40")
743 
744 hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLTraw = hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTraw.clone(
745  mvaName = cms.string("RecoTauTag_tauIdMVAPWdR03oldDMwLTv1"),
746  mvaOpt = cms.string("PWoldDMwLT"),
747  srcNeutralIsoPtSum = cms.InputTag('hpsPFTauNeutralIsoPtSumWeightdR03'),
748  verbosity = cms.int32(0)
749 )
750 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT.clone(
751  toMultiplex = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLTraw'),
752  key = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLTraw:category'),
753  loadMVAfromDB = cms.bool(True),
754  mvaOutput_normalization = cms.string("RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_mvaOutput_normalization"),
755  mapping = cms.VPSet(
756  cms.PSet(
757  category = cms.uint32(0),
758  cut = cms.string("RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_WPEff90"),
759  variable = cms.string("pt")
760  )
761  )
762 )
763 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT.clone()
764 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWdR03oldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_WPEff80")
765 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT.clone()
766 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWdR03oldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_WPEff70")
767 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT.clone()
768 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWdR03oldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_WPEff60")
769 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT.clone()
770 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWdR03oldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_WPEff50")
771 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT.clone()
772 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWdR03oldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_WPEff40")
773 
774 hpsPFTauIsolationSumsTask = cms.Task(
775  hpsPFTauChargedIsoPtSum,
776  hpsPFTauNeutralIsoPtSum,
777  hpsPFTauPUcorrPtSum,
778  hpsPFTauNeutralIsoPtSumWeight,
779  hpsPFTauFootprintCorrection,
780  hpsPFTauPhotonPtSumOutsideSignalCone,
781  )
782 
783 hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTTask = cms.Task(
784  hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw,
785  hpsPFTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT,
786  hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT,
787  hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT,
788  hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT,
789  hpsPFTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT,
790  hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT,
791  hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT
792  )
793 
794 hpsPFTauDiscriminationByIsolationMVArun2v1DBnewDMwLTTask = cms.Task(
795  hpsPFTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw,
796  hpsPFTauDiscriminationByVVLooseIsolationMVArun2v1DBnewDMwLT,
797  hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT,
798  hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBnewDMwLT,
799  hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBnewDMwLT,
800  hpsPFTauDiscriminationByTightIsolationMVArun2v1DBnewDMwLT,
801  hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBnewDMwLT,
802  hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBnewDMwLT
803  )
804 
805 hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTTask = cms.Task(
806  hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTraw,
807  hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT,
808  hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWoldDMwLT,
809  hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWoldDMwLT,
810  hpsPFTauDiscriminationByTightIsolationMVArun2v1PWoldDMwLT,
811  hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWoldDMwLT,
812  hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWoldDMwLT
813  )
814 
815 hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLTTask = cms.Task(
816  hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLTraw,
817  hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT,
818  hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWnewDMwLT,
819  hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWnewDMwLT,
820  hpsPFTauDiscriminationByTightIsolationMVArun2v1PWnewDMwLT,
821  hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWnewDMwLT,
822  hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWnewDMwLT,
823  )
824 
825 hpsPFTauIsolationSums03Task = cms.Task(
826  hpsPFTauChargedIsoPtSumdR03,
827  hpsPFTauNeutralIsoPtSumdR03,
828  hpsPFTauPUcorrPtSumdR03,
829  hpsPFTauNeutralIsoPtSumWeightdR03,
830  hpsPFTauFootprintCorrectiondR03,
831  hpsPFTauPhotonPtSumOutsideSignalConedR03
832  )
833 
834 hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTTask = cms.Task(
835  hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTraw,
836  hpsPFTauDiscriminationByVVLooseIsolationMVArun2v1DBdR03oldDMwLT,
837  hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT,
838  hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBdR03oldDMwLT,
839  hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBdR03oldDMwLT,
840  hpsPFTauDiscriminationByTightIsolationMVArun2v1DBdR03oldDMwLT,
841  hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBdR03oldDMwLT,
842  hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBdR03oldDMwLT
843  )
844 
845 hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLTTask = cms.Task(
846  hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLTraw,
847  hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT,
848  hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWdR03oldDMwLT,
849  hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWdR03oldDMwLT,
850  hpsPFTauDiscriminationByTightIsolationMVArun2v1PWdR03oldDMwLT,
851  hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWdR03oldDMwLT,
852  hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWdR03oldDMwLT
853  )
854 
855 hpsPFTauMVAIsolation2Task = cms.Task(
856  hpsPFTauIsolationSumsTask,
857  hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTTask,
858  hpsPFTauDiscriminationByIsolationMVArun2v1DBnewDMwLTTask,
859  hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTTask,
860  hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLTTask,
861  hpsPFTauIsolationSums03Task,
862  hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTTask,
863  hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLTTask
864  )
865 
866 hpsPFTauMVAIsolation2Seq = cms.Sequence(
867  hpsPFTauMVAIsolation2Task
868  )
869 
870 produceHPSPFTausTask = cms.Task(
871  hpsSelectionDiscriminator,
872  #hpsTightIsolationCleaner,
873  #hpsMediumIsolationCleaner,
874  #hpsLooseIsolationCleaner,
875  #hpsVLooseIsolationCleaner,
876  hpsPFTauProducerSansRefs,
877  hpsPFTauProducer
878  )
879 
880 produceHPSPFTaus = cms.Sequence(
881  produceHPSPFTausTask
882  )
883 
884 produceAndDiscriminateHPSPFTausTask = cms.Task(
885  produceHPSPFTausTask,
886  hpsPFTauDiscriminationByDecayModeFindingNewDMs,
887  hpsPFTauDiscriminationByDecayModeFindingOldDMs,
888  hpsPFTauDiscriminationByDecayModeFinding, # CV: kept for backwards compatibility
889  hpsPFTauDiscriminationByLooseChargedIsolation,
890  hpsPFTauDiscriminationByLooseIsolation,
891  hpsPFTauDiscriminationByCombinedIsolationDBSumPtCorr3HitsTask,
892  hpsPFTauDiscriminationByCombinedIsolationDBSumPtCorr3HitsdR03Task,
893  hpsPFTauDiscriminationByPileupWeightedIsolation3HitsTask,
894  hpsPFTauDiscriminationByLooseElectronRejection,
895  hpsPFTauDiscriminationByMediumElectronRejection,
896  hpsPFTauDiscriminationByTightElectronRejection,
897  hpsPFTauDiscriminationByMVA6rawElectronRejection,
898  hpsPFTauDiscriminationByMVA6VLooseElectronRejection,
899  hpsPFTauDiscriminationByMVA6LooseElectronRejection,
900  hpsPFTauDiscriminationByMVA6MediumElectronRejection,
901  hpsPFTauDiscriminationByMVA6TightElectronRejection,
902  hpsPFTauDiscriminationByMVA6VTightElectronRejection,
903  hpsPFTauDiscriminationByDeadECALElectronRejection,
904  hpsPFTauDiscriminationByLooseMuonRejection3,
905  hpsPFTauDiscriminationByTightMuonRejection3,
906  hpsPFTauVertexAndImpactParametersTask,
907  hpsPFTauMVAIsolation2Task
908  )
909 
910 produceAndDiscriminateHPSPFTaus = cms.Sequence(
911  produceAndDiscriminateHPSPFTausTask
912  )
Updated tau collection with MVA-based tau-Ids rerun ####### Used only in some eras.