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