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  mvaName_NoEleMatch_woGwoGSF_BL = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_BL"),
308  mvaName_NoEleMatch_wGwoGSF_BL = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_BL"),
309  mvaName_woGwGSF_BL = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_BL"),
310  mvaName_wGwGSF_BL = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_BL"),
311  mvaName_NoEleMatch_woGwoGSF_EC = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_EC"),
312  mvaName_NoEleMatch_wGwoGSF_EC = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_EC"),
313  mvaName_woGwGSF_EC = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_EC"),
314  mvaName_wGwGSF_EC = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_EC")
315 )
316 ## ByMVA6VLooseElectronRejection
317 hpsPFTauDiscriminationByMVA6VLooseElectronRejection = recoTauDiscriminantCutMultiplexer.clone(
318  PFTauProducer = cms.InputTag('hpsPFTauProducer'),
319  Prediscriminants = requireDecayMode.clone(),
320  toMultiplex = cms.InputTag('hpsPFTauDiscriminationByMVA6rawElectronRejection'),
321  key = cms.InputTag('hpsPFTauDiscriminationByMVA6rawElectronRejection:category'),
322  loadMVAfromDB = cms.bool(True),
323  mapping = cms.VPSet(
324  cms.PSet(
325  category = cms.uint32(0), # minMVANoEleMatchWOgWOgsfBL
326  cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_BL_WPEff99"),
327  variable = cms.string("pt")
328  ),
329  cms.PSet(
330  category = cms.uint32(2), # minMVANoEleMatchWgWOgsfBL
331  cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_BL_WPEff99"),
332  variable = cms.string("pt")
333  ),
334  cms.PSet(
335  category = cms.uint32(5), # minMVAWOgWgsfBL
336  cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_BL_WPEff99"),
337  variable = cms.string("pt")
338  ),
339  cms.PSet(
340  category = cms.uint32(7), # minMVAWgWgsfBL
341  cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_BL_WPEff99"),
342  variable = cms.string("pt")
343  ),
344  cms.PSet(
345  category = cms.uint32(8), # minMVANoEleMatchWOgWOgsfEC
346  cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_EC_WPEff99"),
347  variable = cms.string("pt")
348  ),
349  cms.PSet(
350  category = cms.uint32(10), # minMVANoEleMatchWgWOgsfEC
351  cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_EC_WPEff99"),
352  variable = cms.string("pt")
353  ),
354  cms.PSet(
355  category = cms.uint32(13), # minMVAWOgWgsfEC
356  cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_EC_WPEff99"),
357  variable = cms.string("pt")
358  ),
359  cms.PSet(
360  category = cms.uint32(15), # minMVAWgWgsfEC
361  cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_EC_WPEff99"),
362  variable = cms.string("pt")
363  )
364  )
365 )
366 ## ByMVA6LooseElectronRejection
367 hpsPFTauDiscriminationByMVA6LooseElectronRejection = copy.deepcopy(hpsPFTauDiscriminationByMVA6VLooseElectronRejection)
368 hpsPFTauDiscriminationByMVA6LooseElectronRejection.mapping[0].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_BL_WPEff96")
369 hpsPFTauDiscriminationByMVA6LooseElectronRejection.mapping[1].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_BL_WPEff96")
370 hpsPFTauDiscriminationByMVA6LooseElectronRejection.mapping[2].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_BL_WPEff96")
371 hpsPFTauDiscriminationByMVA6LooseElectronRejection.mapping[3].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_BL_WPEff96")
372 hpsPFTauDiscriminationByMVA6LooseElectronRejection.mapping[4].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_EC_WPEff96")
373 hpsPFTauDiscriminationByMVA6LooseElectronRejection.mapping[5].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_EC_WPEff96")
374 hpsPFTauDiscriminationByMVA6LooseElectronRejection.mapping[6].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_EC_WPEff96")
375 hpsPFTauDiscriminationByMVA6LooseElectronRejection.mapping[7].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_EC_WPEff96")
376 ## ByMVA6VMediumElectronRejection
377 hpsPFTauDiscriminationByMVA6MediumElectronRejection = copy.deepcopy(hpsPFTauDiscriminationByMVA6VLooseElectronRejection)
378 hpsPFTauDiscriminationByMVA6MediumElectronRejection.mapping[0].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_BL_WPEff91")
379 hpsPFTauDiscriminationByMVA6MediumElectronRejection.mapping[1].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_BL_WPEff91")
380 hpsPFTauDiscriminationByMVA6MediumElectronRejection.mapping[2].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_BL_WPEff91")
381 hpsPFTauDiscriminationByMVA6MediumElectronRejection.mapping[3].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_BL_WPEff91")
382 hpsPFTauDiscriminationByMVA6MediumElectronRejection.mapping[4].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_EC_WPEff91")
383 hpsPFTauDiscriminationByMVA6MediumElectronRejection.mapping[5].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_EC_WPEff91")
384 hpsPFTauDiscriminationByMVA6MediumElectronRejection.mapping[6].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_EC_WPEff91")
385 hpsPFTauDiscriminationByMVA6MediumElectronRejection.mapping[7].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_EC_WPEff91")
386 ## ByMVA6TightElectronRejection
387 hpsPFTauDiscriminationByMVA6TightElectronRejection = copy.deepcopy(hpsPFTauDiscriminationByMVA6VLooseElectronRejection)
388 hpsPFTauDiscriminationByMVA6TightElectronRejection.mapping[0].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_BL_WPEff85")
389 hpsPFTauDiscriminationByMVA6TightElectronRejection.mapping[1].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_BL_WPEff85")
390 hpsPFTauDiscriminationByMVA6TightElectronRejection.mapping[2].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_BL_WPEff85")
391 hpsPFTauDiscriminationByMVA6TightElectronRejection.mapping[3].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_BL_WPEff85")
392 hpsPFTauDiscriminationByMVA6TightElectronRejection.mapping[4].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_EC_WPEff85")
393 hpsPFTauDiscriminationByMVA6TightElectronRejection.mapping[5].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_EC_WPEff85")
394 hpsPFTauDiscriminationByMVA6TightElectronRejection.mapping[6].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_EC_WPEff85")
395 hpsPFTauDiscriminationByMVA6TightElectronRejection.mapping[7].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_EC_WPEff85")
396 ## ByMVA6VTightElectronRejection
397 hpsPFTauDiscriminationByMVA6VTightElectronRejection = copy.deepcopy(hpsPFTauDiscriminationByMVA6VLooseElectronRejection)
398 hpsPFTauDiscriminationByMVA6VTightElectronRejection.mapping[0].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_BL_WPEff79")
399 hpsPFTauDiscriminationByMVA6VTightElectronRejection.mapping[1].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_BL_WPEff79")
400 hpsPFTauDiscriminationByMVA6VTightElectronRejection.mapping[2].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_BL_WPEff79")
401 hpsPFTauDiscriminationByMVA6VTightElectronRejection.mapping[3].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_BL_WPEff79")
402 hpsPFTauDiscriminationByMVA6VTightElectronRejection.mapping[4].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_EC_WPEff79")
403 hpsPFTauDiscriminationByMVA6VTightElectronRejection.mapping[5].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_EC_WPEff79")
404 hpsPFTauDiscriminationByMVA6VTightElectronRejection.mapping[6].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_EC_WPEff79")
405 hpsPFTauDiscriminationByMVA6VTightElectronRejection.mapping[7].cut = cms.string("RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_EC_WPEff79")
406 
407 # Define the HPS selection discriminator used in cleaning
408 hpsSelectionDiscriminator.PFTauProducer = cms.InputTag("combinatoricRecoTaus")
409 #----------------------------------------------------------------------------
410 # CV: disable 3Prong1Pi0 decay mode
411 hpsSelectionDiscriminator.decayModes = cms.VPSet(
412  decayMode_1Prong0Pi0,
413  decayMode_1Prong1Pi0,
414  decayMode_1Prong2Pi0,
415  decayMode_2Prong0Pi0,
416  decayMode_2Prong1Pi0,
417  decayMode_3Prong0Pi0,
418  decayMode_3Prong1Pi0,
419 )
420 #----------------------------------------------------------------------------
421 
422 from RecoTauTag.RecoTau.RecoTauCleaner_cfi import RecoTauCleaner
423 hpsPFTauProducerSansRefs = RecoTauCleaner.clone(
424  src = cms.InputTag("combinatoricRecoTaus")
425 )
426 hpsPFTauProducerSansRefs.cleaners[1].src = cms.InputTag("hpsSelectionDiscriminator")
427 
428 from RecoTauTag.RecoTau.RecoTauPiZeroUnembedder_cfi import RecoTauPiZeroUnembedder
429 hpsPFTauProducer = RecoTauPiZeroUnembedder.clone(
430  src = cms.InputTag("hpsPFTauProducerSansRefs")
431 )
432 
436 hpsPFTauPrimaryVertexProducer = PFTauPrimaryVertexProducer.clone(
437  PFTauTag = cms.InputTag("hpsPFTauProducer"),
438  ElectronTag = cms.InputTag(""),
439  MuonTag = cms.InputTag(""),
440  PVTag = cms.InputTag("offlinePrimaryVertices"),
441  beamSpot = cms.InputTag("offlineBeamSpot"),
442  Algorithm = cms.int32(0),
443  useBeamSpot = cms.bool(True),
444  RemoveMuonTracks = cms.bool(False),
445  RemoveElectronTracks = cms.bool(False),
446  useSelectedTaus = cms.bool(False),
447  discriminators = cms.VPSet(
448  cms.PSet(
449  discriminator = cms.InputTag('hpsPFTauDiscriminationByDecayModeFindingNewDMs'),
450  selectionCut = cms.double(0.5)
451  )
452  ),
453  cut = cms.string("pt > 18.0 & abs(eta) < 2.4")
454 )
455 
456 hpsPFTauSecondaryVertexProducer = PFTauSecondaryVertexProducer.clone(
457  PFTauTag = cms.InputTag("hpsPFTauProducer")
458 )
459 hpsPFTauTransverseImpactParameters = PFTauTransverseImpactParameters.clone(
460  PFTauTag = cms.InputTag("hpsPFTauProducer"),
461  PFTauPVATag = cms.InputTag("hpsPFTauPrimaryVertexProducer"),
462  PFTauSVATag = cms.InputTag("hpsPFTauSecondaryVertexProducer"),
463  useFullCalculation = cms.bool(True)
464 )
465 hpsPFTauVertexAndImpactParametersTask = cms.Task(
466  hpsPFTauPrimaryVertexProducer,
467  hpsPFTauSecondaryVertexProducer,
468  hpsPFTauTransverseImpactParameters
469 )
470 hpsPFTauVertexAndImpactParametersSeq = cms.Sequence(
471  hpsPFTauVertexAndImpactParametersTask
472 )
474 hpsPFTauChargedIsoPtSum = hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits.clone(
475  PFTauProducer = cms.InputTag('hpsPFTauProducer'),
476  Prediscriminants = requireDecayMode.clone(),
477  ApplyDiscriminationByECALIsolation = cms.bool(False),
478  ApplyDiscriminationByTrackerIsolation = cms.bool(True),
479  applySumPtCut = cms.bool(False),
480  applyDeltaBetaCorrection = cms.bool(False),
481  storeRawSumPt = cms.bool(True),
482  storeRawPUsumPt = cms.bool(False),
483  customOuterCone = PFRecoTauPFJetInputs.isolationConeSize,
484  isoConeSizeForDeltaBeta = cms.double(0.8),
485  verbosity = cms.int32(0)
486 )
487 hpsPFTauNeutralIsoPtSum = hpsPFTauChargedIsoPtSum.clone(
488  ApplyDiscriminationByECALIsolation = cms.bool(True),
489  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
490  verbosity = cms.int32(0)
491 )
492 hpsPFTauPUcorrPtSum = hpsPFTauChargedIsoPtSum.clone(
493  ApplyDiscriminationByECALIsolation = cms.bool(False),
494  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
495  applyDeltaBetaCorrection = cms.bool(True),
496  storeRawSumPt = cms.bool(False),
497  storeRawPUsumPt = cms.bool(True),
498  verbosity = cms.int32(0)
499 )
500 hpsPFTauNeutralIsoPtSumWeight = hpsPFTauChargedIsoPtSum.clone(
501  ApplyDiscriminationByWeightedECALIsolation = cms.bool(True),
502  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
503  UseAllPFCandsForWeights = cms.bool(True),
504  verbosity = cms.int32(0)
505 )
506 hpsPFTauFootprintCorrection = hpsPFTauChargedIsoPtSum.clone(
507  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
508  storeRawSumPt = cms.bool(False),
509  storeRawFootprintCorrection = cms.bool(True),
510  verbosity = cms.int32(0)
511 )
512 hpsPFTauPhotonPtSumOutsideSignalCone = hpsPFTauChargedIsoPtSum.clone(
513  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
514  storeRawSumPt = cms.bool(False),
515  storeRawPhotonSumPt_outsideSignalCone = cms.bool(True),
516  verbosity = cms.int32(0)
517 )
518 
519 #Define new Run2 MVA isolations
521 hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw = discriminationByIsolationMVArun2v1raw.clone(
522  PFTauProducer = cms.InputTag('hpsPFTauProducer'),
523  Prediscriminants = requireDecayMode.clone(),
524  loadMVAfromDB = cms.bool(True),
525  mvaName = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1"),
526  mvaOpt = cms.string("DBoldDMwLTwGJ"),
527  srcTauTransverseImpactParameters = cms.InputTag('hpsPFTauTransverseImpactParameters'),
528  srcChargedIsoPtSum = cms.InputTag('hpsPFTauChargedIsoPtSum'),
529  srcNeutralIsoPtSum = cms.InputTag('hpsPFTauNeutralIsoPtSum'),
530  srcPUcorrPtSum = cms.InputTag('hpsPFTauPUcorrPtSum'),
531  srcPhotonPtSumOutsideSignalCone = cms.InputTag('hpsPFTauPhotonPtSumOutsideSignalCone'),
532  srcFootprintCorrection = cms.InputTag('hpsPFTauFootprintCorrection'),
533  verbosity = cms.int32(0)
534 )
535 
536 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT = discriminationByIsolationMVArun2v1VLoose.clone(
537  PFTauProducer = cms.InputTag('hpsPFTauProducer'),
538  Prediscriminants = requireDecayMode.clone(),
539  toMultiplex = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw'),
540  key = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw:category'),
541  loadMVAfromDB = cms.bool(True),
542  mvaOutput_normalization = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_mvaOutput_normalization"),
543  mapping = cms.VPSet(
544  cms.PSet(
545  category = cms.uint32(0),
546  cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff90"),
547  variable = cms.string("pt")
548  )
549  )
550 )
551 hpsPFTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT.clone()
552 hpsPFTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff95")
553 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT.clone()
554 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff80")
555 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT.clone()
556 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff70")
557 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT.clone()
558 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff60")
559 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT.clone()
560 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff50")
561 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT.clone()
562 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v1_WPEff40")
563 
564 hpsPFTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw = hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw.clone(
565  mvaName = cms.string("RecoTauTag_tauIdMVADBnewDMwLTv1"),
566  mvaOpt = cms.string("DBnewDMwLT"),
567  verbosity = cms.int32(0)
568 )
569 
570 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT.clone(
571  toMultiplex = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw'),
572  key = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw:category'),
573  loadMVAfromDB = cms.bool(True),
574  mvaOutput_normalization = cms.string("RecoTauTag_tauIdMVADBnewDMwLTv1_mvaOutput_normalization"),
575  mapping = cms.VPSet(
576  cms.PSet(
577  category = cms.uint32(0),
578  cut = cms.string("RecoTauTag_tauIdMVADBnewDMwLTv1_WPEff90"),
579  variable = cms.string("pt")
580  )
581  )
582 )
583 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT.clone()
584 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVADBnewDMwLTv1_WPEff80")
585 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT.clone()
586 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVADBnewDMwLTv1_WPEff70")
587 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT.clone()
588 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVADBnewDMwLTv1_WPEff60")
589 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT.clone()
590 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVADBnewDMwLTv1_WPEff50")
591 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT.clone()
592 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVADBnewDMwLTv1_WPEff40")
593 
594 hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTraw = hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw.clone(
595  mvaName = cms.string("RecoTauTag_tauIdMVAPWoldDMwLTv1"),
596  mvaOpt = cms.string("PWoldDMwLT"),
597  srcNeutralIsoPtSum = cms.InputTag('hpsPFTauNeutralIsoPtSumWeight'),
598  verbosity = cms.int32(0)
599 )
600 
601 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT.clone(
602  toMultiplex = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTraw'),
603  key = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTraw:category'),
604  loadMVAfromDB = cms.bool(True),
605  mvaOutput_normalization = cms.string("RecoTauTag_tauIdMVAPWoldDMwLTv1_mvaOutput_normalization"),
606  mapping = cms.VPSet(
607  cms.PSet(
608  category = cms.uint32(0),
609  cut = cms.string("RecoTauTag_tauIdMVAPWoldDMwLTv1_WPEff90"),
610  variable = cms.string("pt")
611  )
612  )
613 )
614 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT.clone()
615 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWoldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWoldDMwLTv1_WPEff80")
616 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT.clone()
617 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWoldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWoldDMwLTv1_WPEff70")
618 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT.clone()
619 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWoldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWoldDMwLTv1_WPEff60")
620 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT.clone()
621 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWoldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWoldDMwLTv1_WPEff50")
622 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT.clone()
623 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWoldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWoldDMwLTv1_WPEff40")
624 
625 hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLTraw = hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTraw.clone(
626  mvaName = cms.string("RecoTauTag_tauIdMVAPWnewDMwLTv1"),
627  mvaOpt = cms.string("PWnewDMwLT"),
628  verbosity = cms.int32(0)
629 )
630 
631 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT.clone(
632  toMultiplex = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLTraw'),
633  key = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLTraw:category'),
634  loadMVAfromDB = cms.bool(True),
635  mvaOutput_normalization = cms.string("RecoTauTag_tauIdMVAPWnewDMwLTv1_mvaOutput_normalization"),
636  mapping = cms.VPSet(
637  cms.PSet(
638  category = cms.uint32(0),
639  cut = cms.string("RecoTauTag_tauIdMVAPWnewDMwLTv1_WPEff90"),
640  variable = cms.string("pt")
641  )
642  )
643 )
644 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT.clone()
645 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWnewDMwLTv1_WPEff80")
646 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT.clone()
647 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWnewDMwLTv1_WPEff70")
648 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT.clone()
649 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWnewDMwLTv1_WPEff60")
650 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT.clone()
651 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWnewDMwLTv1_WPEff50")
652 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT.clone()
653 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWnewDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWnewDMwLTv1_WPEff40")
654 
655 hpsPFTauChargedIsoPtSumdR03 = hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits.clone(
656  PFTauProducer = cms.InputTag('hpsPFTauProducer'),
657  Prediscriminants = requireDecayMode.clone(),
658  ApplyDiscriminationByECALIsolation = cms.bool(False),
659  ApplyDiscriminationByTrackerIsolation = cms.bool(True),
660  applySumPtCut = cms.bool(False),
661  applyDeltaBetaCorrection = cms.bool(False),
662  storeRawSumPt = cms.bool(True),
663  storeRawPUsumPt = cms.bool(False),
664  customOuterCone = cms.double(0.3),
665  isoConeSizeForDeltaBeta = cms.double(0.8),
666  verbosity = cms.int32(0)
667 )
668 hpsPFTauNeutralIsoPtSumdR03 = hpsPFTauChargedIsoPtSumdR03.clone(
669  ApplyDiscriminationByECALIsolation = cms.bool(True),
670  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
671  verbosity = cms.int32(0)
672 )
673 hpsPFTauPUcorrPtSumdR03 = hpsPFTauChargedIsoPtSumdR03.clone(
674  ApplyDiscriminationByECALIsolation = cms.bool(False),
675  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
676  applyDeltaBetaCorrection = cms.bool(True),
677  storeRawSumPt = cms.bool(False),
678  storeRawPUsumPt = cms.bool(True),
679  verbosity = cms.int32(0)
680 )
681 hpsPFTauNeutralIsoPtSumWeightdR03 = hpsPFTauChargedIsoPtSumdR03.clone(
682  ApplyDiscriminationByWeightedECALIsolation = cms.bool(True),
683  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
684  UseAllPFCandsForWeights = cms.bool(True),
685  verbosity = cms.int32(0)
686 )
687 hpsPFTauFootprintCorrectiondR03 = hpsPFTauChargedIsoPtSumdR03.clone(
688  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
689  storeRawSumPt = cms.bool(False),
690  storeRawFootprintCorrection = cms.bool(True),
691  verbosity = cms.int32(0)
692 )
693 hpsPFTauPhotonPtSumOutsideSignalConedR03 = hpsPFTauChargedIsoPtSumdR03.clone(
694  ApplyDiscriminationByTrackerIsolation = cms.bool(False),
695  storeRawSumPt = cms.bool(False),
696  storeRawPhotonSumPt_outsideSignalCone = cms.bool(True),
697  verbosity = cms.int32(0)
698 )
699 
700 hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTraw = hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw.clone(
701  mvaName = cms.string("RecoTauTag_tauIdMVADBdR03oldDMwLTv1"),
702  mvaOpt = cms.string("DBoldDMwLT"),
703  srcChargedIsoPtSum = cms.InputTag('hpsPFTauChargedIsoPtSumdR03'),
704  srcNeutralIsoPtSum = cms.InputTag('hpsPFTauNeutralIsoPtSumdR03'),
705  srcPUcorrPtSum = cms.InputTag('hpsPFTauPUcorrPtSumdR03'),
706  srcPhotonPtSumOutsideSignalCone = cms.InputTag('hpsPFTauPhotonPtSumOutsideSignalConedR03'),
707  srcFootprintCorrection = cms.InputTag('hpsPFTauFootprintCorrectiondR03'),
708  verbosity = cms.int32(0)
709 )
710 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT.clone(
711  PFTauProducer = cms.InputTag('hpsPFTauProducer'),
712  Prediscriminants = requireDecayMode.clone(),
713  toMultiplex = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTraw'),
714  key = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTraw:category'),
715  loadMVAfromDB = cms.bool(True),
716  mvaOutput_normalization = cms.string("RecoTauTag_tauIdMVADBdR03oldDMwLTv1_mvaOutput_normalization"),
717  mapping = cms.VPSet(
718  cms.PSet(
719  category = cms.uint32(0),
720  cut = cms.string("RecoTauTag_tauIdMVADBdR03oldDMwLTv1_WPEff90"),
721  variable = cms.string("pt")
722  )
723  )
724 )
725 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT.clone()
726 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBdR03oldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVADBdR03oldDMwLTv1_WPEff80")
727 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT.clone()
728 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBdR03oldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVADBdR03oldDMwLTv1_WPEff70")
729 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT.clone()
730 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBdR03oldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVADBdR03oldDMwLTv1_WPEff60")
731 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT.clone()
732 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBdR03oldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVADBdR03oldDMwLTv1_WPEff50")
733 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT.clone()
734 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBdR03oldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVADBdR03oldDMwLTv1_WPEff40")
735 
736 hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLTraw = hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTraw.clone(
737  mvaName = cms.string("RecoTauTag_tauIdMVAPWdR03oldDMwLTv1"),
738  mvaOpt = cms.string("PWoldDMwLT"),
739  srcNeutralIsoPtSum = cms.InputTag('hpsPFTauNeutralIsoPtSumWeightdR03'),
740  verbosity = cms.int32(0)
741 )
742 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT.clone(
743  toMultiplex = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLTraw'),
744  key = cms.InputTag('hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLTraw:category'),
745  loadMVAfromDB = cms.bool(True),
746  mvaOutput_normalization = cms.string("RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_mvaOutput_normalization"),
747  mapping = cms.VPSet(
748  cms.PSet(
749  category = cms.uint32(0),
750  cut = cms.string("RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_WPEff90"),
751  variable = cms.string("pt")
752  )
753  )
754 )
755 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT.clone()
756 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWdR03oldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_WPEff80")
757 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT.clone()
758 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWdR03oldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_WPEff70")
759 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT.clone()
760 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWdR03oldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_WPEff60")
761 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT.clone()
762 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWdR03oldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_WPEff50")
763 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT.clone()
764 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWdR03oldDMwLT.mapping[0].cut = cms.string("RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_WPEff40")
765 
766 hpsPFTauIsolationSumsTask = cms.Task(
767  hpsPFTauChargedIsoPtSum,
768  hpsPFTauNeutralIsoPtSum,
769  hpsPFTauPUcorrPtSum,
770  hpsPFTauNeutralIsoPtSumWeight,
771  hpsPFTauFootprintCorrection,
772  hpsPFTauPhotonPtSumOutsideSignalCone,
773  )
774 
775 hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTTask = cms.Task(
776  hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw,
777  hpsPFTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT,
778  hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT,
779  hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT,
780  hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT,
781  hpsPFTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT,
782  hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT,
783  hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT
784  )
785 
786 hpsPFTauDiscriminationByIsolationMVArun2v1DBnewDMwLTTask = cms.Task(
787  hpsPFTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw,
788  hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT,
789  hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBnewDMwLT,
790  hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBnewDMwLT,
791  hpsPFTauDiscriminationByTightIsolationMVArun2v1DBnewDMwLT,
792  hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBnewDMwLT,
793  hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBnewDMwLT
794  )
795 
796 hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTTask = cms.Task(
797  hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTraw,
798  hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT,
799  hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWoldDMwLT,
800  hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWoldDMwLT,
801  hpsPFTauDiscriminationByTightIsolationMVArun2v1PWoldDMwLT,
802  hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWoldDMwLT,
803  hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWoldDMwLT
804  )
805 
806 hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLTTask = cms.Task(
807  hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLTraw,
808  hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT,
809  hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWnewDMwLT,
810  hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWnewDMwLT,
811  hpsPFTauDiscriminationByTightIsolationMVArun2v1PWnewDMwLT,
812  hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWnewDMwLT,
813  hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWnewDMwLT,
814  )
815 
816 hpsPFTauIsolationSums03Task = cms.Task(
817  hpsPFTauChargedIsoPtSumdR03,
818  hpsPFTauNeutralIsoPtSumdR03,
819  hpsPFTauPUcorrPtSumdR03,
820  hpsPFTauNeutralIsoPtSumWeightdR03,
821  hpsPFTauFootprintCorrectiondR03,
822  hpsPFTauPhotonPtSumOutsideSignalConedR03
823  )
824 
825 hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTTask = cms.Task(
826  hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTraw,
827  hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT,
828  hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBdR03oldDMwLT,
829  hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBdR03oldDMwLT,
830  hpsPFTauDiscriminationByTightIsolationMVArun2v1DBdR03oldDMwLT,
831  hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBdR03oldDMwLT,
832  hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBdR03oldDMwLT
833  )
834 
835 hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLTTask = cms.Task(
836  hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLTraw,
837  hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT,
838  hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWdR03oldDMwLT,
839  hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWdR03oldDMwLT,
840  hpsPFTauDiscriminationByTightIsolationMVArun2v1PWdR03oldDMwLT,
841  hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWdR03oldDMwLT,
842  hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWdR03oldDMwLT
843  )
844 
845 hpsPFTauMVAIsolation2Task = cms.Task(
846  hpsPFTauIsolationSumsTask,
847  hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTTask,
848  hpsPFTauDiscriminationByIsolationMVArun2v1DBnewDMwLTTask,
849  hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTTask,
850  hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLTTask,
851  hpsPFTauIsolationSums03Task,
852  hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTTask,
853  hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLTTask
854  )
855 
856 hpsPFTauMVAIsolation2Seq = cms.Sequence(
857  hpsPFTauMVAIsolation2Task
858  )
859 
860 produceHPSPFTausTask = cms.Task(
861  hpsSelectionDiscriminator,
862  #hpsTightIsolationCleaner,
863  #hpsMediumIsolationCleaner,
864  #hpsLooseIsolationCleaner,
865  #hpsVLooseIsolationCleaner,
866  hpsPFTauProducerSansRefs,
867  hpsPFTauProducer
868  )
869 
870 produceHPSPFTaus = cms.Sequence(
871  produceHPSPFTausTask
872  )
873 
874 produceAndDiscriminateHPSPFTausTask = cms.Task(
875  produceHPSPFTausTask,
876  hpsPFTauDiscriminationByDecayModeFindingNewDMs,
877  hpsPFTauDiscriminationByDecayModeFindingOldDMs,
878  hpsPFTauDiscriminationByDecayModeFinding, # CV: kept for backwards compatibility
879  hpsPFTauDiscriminationByLooseChargedIsolation,
880  hpsPFTauDiscriminationByLooseIsolation,
881  hpsPFTauDiscriminationByCombinedIsolationDBSumPtCorr3HitsTask,
882  hpsPFTauDiscriminationByCombinedIsolationDBSumPtCorr3HitsdR03Task,
883  hpsPFTauDiscriminationByPileupWeightedIsolation3HitsTask,
884  hpsPFTauDiscriminationByLooseElectronRejection,
885  hpsPFTauDiscriminationByMediumElectronRejection,
886  hpsPFTauDiscriminationByTightElectronRejection,
887  hpsPFTauDiscriminationByMVA6rawElectronRejection,
888  hpsPFTauDiscriminationByMVA6VLooseElectronRejection,
889  hpsPFTauDiscriminationByMVA6LooseElectronRejection,
890  hpsPFTauDiscriminationByMVA6MediumElectronRejection,
891  hpsPFTauDiscriminationByMVA6TightElectronRejection,
892  hpsPFTauDiscriminationByMVA6VTightElectronRejection,
893  hpsPFTauDiscriminationByDeadECALElectronRejection,
894  hpsPFTauDiscriminationByLooseMuonRejection3,
895  hpsPFTauDiscriminationByTightMuonRejection3,
896  hpsPFTauVertexAndImpactParametersTask,
897  hpsPFTauMVAIsolation2Task
898  )
899 
900 produceAndDiscriminateHPSPFTaus = cms.Sequence(
901  produceAndDiscriminateHPSPFTausTask
902  )