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