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