1 import FWCore.ParameterSet.Config
as cms
3 from Configuration.Eras.Modifier_phase2_common_cff
import phase2_common
4 from Configuration.ProcessModifiers.run2_miniAOD_UL_cff
import run2_miniAOD_UL
26 from RecoTauTag.RecoTau.PFRecoTauPFJetInputs_cfi
import PFRecoTauPFJetInputs
28 ak4dBetaCorrection = 0.20
33 from RecoTauTag.RecoTau.PFRecoTauDiscriminationByHPSSelection_cfi
import hpsSelectionDiscriminator, decayMode_1Prong0Pi0, decayMode_1Prong1Pi0, decayMode_1Prong2Pi0, decayMode_2Prong0Pi0, decayMode_2Prong1Pi0, decayMode_3Prong0Pi0, decayMode_3Prong1Pi0
35 hpsPFTauDiscriminationByDecayModeFindingNewDMs = hpsSelectionDiscriminator.clone(
36 PFTauProducer = cms.InputTag(
'hpsPFTauProducer'),
39 decayModes = cms.VPSet(
50 hpsPFTauDiscriminationByDecayModeFindingOldDMs = hpsSelectionDiscriminator.clone(
51 PFTauProducer = cms.InputTag(
'hpsPFTauProducer'),
52 decayModes = cms.VPSet(
58 requireTauChargedHadronsToBeChargedPFCands = cms.bool(
True)
60 hpsPFTauDiscriminationByDecayModeFinding = hpsPFTauDiscriminationByDecayModeFindingOldDMs.clone()
63 requireDecayMode = cms.PSet(
64 BooleanOperator = cms.string(
"and"),
66 Producer = cms.InputTag(
'hpsPFTauDiscriminationByDecayModeFindingNewDMs'),
71 hpsPFTauDiscriminationByLooseIsolation = pfRecoTauDiscriminationByIsolation.clone(
72 PFTauProducer = cms.InputTag(
"hpsPFTauProducer"),
73 Prediscriminants = requireDecayMode.clone(),
74 ApplyDiscriminationByTrackerIsolation =
False,
75 ApplyDiscriminationByECALIsolation =
True,
76 applyOccupancyCut =
True 78 hpsPFTauDiscriminationByLooseIsolation.Prediscriminants.preIso = cms.PSet(
79 Producer = cms.InputTag(
"hpsPFTauDiscriminationByLooseChargedIsolation"),
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")
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")
93 hpsPFTauDiscriminationByLooseIsolationDBSumPtCorr = hpsPFTauDiscriminationByLooseIsolation.clone(
94 deltaBetaPUTrackPtCutOverride =
True,
95 deltaBetaPUTrackPtCutOverride_val = 0.5,
96 applyDeltaBetaCorrection =
True,
97 isoConeSizeForDeltaBeta = 0.8,
98 deltaBetaFactor =
"%0.4f"%(0.0123/0.1687),
99 applyOccupancyCut =
False,
100 applySumPtCut =
True,
102 hpsPFTauDiscriminationByLooseIsolationDBSumPtCorr.maximumSumPtCut = hpsPFTauDiscriminationByLooseIsolationDBSumPtCorr.qualityCuts.isolationQualityCuts.minGammaEt
104 hpsPFTauDiscriminationByMediumIsolationDBSumPtCorr = hpsPFTauDiscriminationByMediumIsolation.clone(
105 deltaBetaPUTrackPtCutOverride =
True,
106 deltaBetaPUTrackPtCutOverride_val = 0.5,
107 applyDeltaBetaCorrection =
True,
108 isoConeSizeForDeltaBeta = 0.8,
109 deltaBetaFactor =
"%0.4f"%(0.0462/0.1687),
110 applyOccupancyCut =
False,
111 applySumPtCut =
True,
113 hpsPFTauDiscriminationByMediumIsolationDBSumPtCorr.maximumSumPtCut = hpsPFTauDiscriminationByMediumIsolationDBSumPtCorr.qualityCuts.isolationQualityCuts.minGammaEt
115 hpsPFTauDiscriminationByTightIsolationDBSumPtCorr = hpsPFTauDiscriminationByTightIsolation.clone(
116 deltaBetaPUTrackPtCutOverride =
True,
117 deltaBetaPUTrackPtCutOverride_val = 0.5,
118 applyDeltaBetaCorrection =
True,
119 isoConeSizeForDeltaBeta = 0.8,
120 deltaBetaFactor =
"%0.4f"%(ak4dBetaCorrection),
121 applyOccupancyCut =
False,
122 applySumPtCut =
True,
124 hpsPFTauDiscriminationByTightIsolationDBSumPtCorr.maximumSumPtCut = hpsPFTauDiscriminationByTightIsolationDBSumPtCorr.qualityCuts.isolationQualityCuts.minGammaEt
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()
135 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr.qualityCuts.isolationQualityCuts.minTrackPt = 0.5
136 phase2_common.toModify(hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr.qualityCuts,
137 isolationQualityCuts =
dict( minTrackPt = 0.8 )
139 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr.qualityCuts.isolationQualityCuts.minGammaEt = 1.0
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()
150 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr.qualityCuts.isolationQualityCuts.minTrackPt = 0.5
151 phase2_common.toModify(hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr.qualityCuts,
152 isolationQualityCuts =
dict( minTrackPt = 0.8 )
154 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr.qualityCuts.isolationQualityCuts.minGammaEt = 1.0
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()
165 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr.qualityCuts.isolationQualityCuts.minTrackPt = 0.5
166 phase2_common.toModify(hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr.qualityCuts,
167 isolationQualityCuts =
dict( minTrackPt = 0.8 )
169 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr.qualityCuts.isolationQualityCuts.minGammaEt = 1.0
171 hpsPFTauDiscriminationByLooseChargedIsolation = hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr.clone(
172 ApplyDiscriminationByECALIsolation =
False 175 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits = hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr.clone()
176 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits.qualityCuts.isolationQualityCuts.minTrackHits = cms.uint32(3)
177 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits.applyPhotonPtSumOutsideSignalConeCut = cms.bool(
True)
179 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3Hits = hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr.clone()
180 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3Hits.qualityCuts.isolationQualityCuts.minTrackHits = cms.uint32(3)
181 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3Hits.applyPhotonPtSumOutsideSignalConeCut = cms.bool(
True)
183 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3Hits = hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr.clone()
184 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3Hits.qualityCuts.isolationQualityCuts.minTrackHits = cms.uint32(3)
185 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3Hits.applyPhotonPtSumOutsideSignalConeCut = cms.bool(
True)
187 hpsPFTauDiscriminationByRawCombinedIsolationDBSumPtCorr3Hits = hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits.clone(
188 applySumPtCut =
False,
189 storeRawSumPt = cms.bool(
True)
192 hpsPFTauDiscriminationByCombinedIsolationDBSumPtCorr3HitsTask = cms.Task(
193 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits,
194 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3Hits,
195 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3Hits,
196 hpsPFTauDiscriminationByRawCombinedIsolationDBSumPtCorr3Hits
198 hpsPFTauDiscriminationByCombinedIsolationSeqDBSumPtCorr3Hits = cms.Sequence(
199 hpsPFTauDiscriminationByCombinedIsolationDBSumPtCorr3HitsTask
202 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3HitsdR03 = hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits.clone()
203 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3HitsdR03.deltaBetaFactor = cms.string(
'0.0720')
204 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3HitsdR03.customOuterCone = cms.double(0.3)
206 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3HitsdR03 = hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3Hits.clone()
207 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3HitsdR03.deltaBetaFactor = cms.string(
'0.0720')
208 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3HitsdR03.customOuterCone = cms.double(0.3)
210 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3HitsdR03 = hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3Hits.clone()
211 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3HitsdR03.deltaBetaFactor = cms.string(
'0.0720')
212 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3HitsdR03.customOuterCone = cms.double(0.3)
214 hpsPFTauDiscriminationByCombinedIsolationDBSumPtCorr3HitsdR03Task = cms.Task(
215 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3HitsdR03,
216 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3HitsdR03,
217 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3HitsdR03
219 hpsPFTauDiscriminationByCombinedIsolationSeqDBSumPtCorr3HitsdR03 = cms.Sequence(
220 hpsPFTauDiscriminationByCombinedIsolationDBSumPtCorr3HitsdR03Task
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)
232 hpsPFTauDiscriminationByMediumPileupWeightedIsolation3Hits = hpsPFTauDiscriminationByLoosePileupWeightedIsolation3Hits.clone(
233 maximumSumPtCut = hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3Hits.maximumSumPtCut
236 hpsPFTauDiscriminationByTightPileupWeightedIsolation3Hits = hpsPFTauDiscriminationByLoosePileupWeightedIsolation3Hits.clone(
237 maximumSumPtCut = hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3Hits.maximumSumPtCut
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)
248 applySumPtCut = cms.bool(
False),
249 storeRawSumPt = cms.bool(
True)
252 hpsPFTauDiscriminationByPhotonPtSumOutsideSignalCone = hpsPFTauDiscriminationByLoosePileupWeightedIsolation3Hits.clone(
253 applySumPtCut = cms.bool(
False)
256 hpsPFTauDiscriminationByPileupWeightedIsolation3HitsTask = cms.Task(
257 hpsPFTauDiscriminationByLoosePileupWeightedIsolation3Hits,
258 hpsPFTauDiscriminationByMediumPileupWeightedIsolation3Hits,
259 hpsPFTauDiscriminationByTightPileupWeightedIsolation3Hits,
260 hpsPFTauDiscriminationByPhotonPtSumOutsideSignalCone,
261 hpsPFTauDiscriminationByRawPileupWeightedIsolation3Hits
263 hpsPFTauDiscriminationByPileupWeightedIsolationSeq3Hits = cms.Sequence(
264 hpsPFTauDiscriminationByPileupWeightedIsolation3HitsTask
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)
277 hpsPFTauDiscriminationByTightMuonRejection3 = hpsPFTauDiscriminationByLooseMuonRejection3.clone(
278 maxNumberOfHitsLast2Stations = cms.int32(0)
283 hpsPFTauDiscriminationByLooseElectronRejection = pfRecoTauDiscriminationAgainstElectron.clone(
284 PFTauProducer = cms.InputTag(
'hpsPFTauProducer'),
285 Prediscriminants = noPrediscriminants,
286 PFElectronMVA_maxValue = cms.double(0.6)
289 hpsPFTauDiscriminationByMediumElectronRejection = pfRecoTauDiscriminationAgainstElectron.clone(
290 PFTauProducer = cms.InputTag(
'hpsPFTauProducer'),
291 Prediscriminants = noPrediscriminants,
292 ApplyCut_EcalCrackCut = cms.bool(
True)
295 hpsPFTauDiscriminationByTightElectronRejection = pfRecoTauDiscriminationAgainstElectron.clone(
296 PFTauProducer = cms.InputTag(
'hpsPFTauProducer'),
297 Prediscriminants = noPrediscriminants,
298 ApplyCut_EcalCrackCut = cms.bool(
True),
299 ApplyCut_BremCombined = cms.bool(
True)
302 hpsPFTauDiscriminationByDeadECALElectronRejection = pfRecoTauDiscriminationAgainstElectronDeadECAL.clone(
303 PFTauProducer = cms.InputTag(
'hpsPFTauProducer'),
304 Prediscriminants = requireDecayMode.clone(),
305 extrapolateToECalEntrance = cms.bool(
False)
307 run2_miniAOD_UL.toModify(
308 hpsPFTauDiscriminationByDeadECALElectronRejection,
309 extrapolateToECalEntrance =
True 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")
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" 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),
348 category = cms.uint32(0),
349 cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_BL_WPEff99"),
350 variable = cms.string(
"pt")
353 category = cms.uint32(2),
354 cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_BL_WPEff99"),
355 variable = cms.string(
"pt")
358 category = cms.uint32(5),
359 cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_BL_WPEff99"),
360 variable = cms.string(
"pt")
363 category = cms.uint32(7),
364 cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_BL_WPEff99"),
365 variable = cms.string(
"pt")
368 category = cms.uint32(8),
369 cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_EC_WPEff99"),
370 variable = cms.string(
"pt")
373 category = cms.uint32(10),
374 cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_EC_WPEff99"),
375 variable = cms.string(
"pt")
378 category = cms.uint32(13),
379 cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_EC_WPEff99"),
380 variable = cms.string(
"pt")
383 category = cms.uint32(15),
384 cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_EC_WPEff99"),
385 variable = cms.string(
"pt")
389 def _modMapping(mapping, wpIn, wpOut, verIn="v1", verOut="v3_noeveto"):
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")
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,
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")
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")
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")
430 hpsPFTauDiscriminationByMVA6ElectronRejectionTask = cms.Task(
431 hpsPFTauDiscriminationByMVA6rawElectronRejection,
432 hpsPFTauDiscriminationByMVA6VLooseElectronRejection,
433 hpsPFTauDiscriminationByMVA6LooseElectronRejection,
434 hpsPFTauDiscriminationByMVA6MediumElectronRejection,
435 hpsPFTauDiscriminationByMVA6TightElectronRejection,
436 hpsPFTauDiscriminationByMVA6VTightElectronRejection
440 hpsSelectionDiscriminator.PFTauProducer = cms.InputTag(
"combinatoricRecoTaus")
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,
454 from RecoTauTag.RecoTau.RecoTauCleaner_cfi
import RecoTauCleaner
455 hpsPFTauProducerSansRefs = RecoTauCleaner.clone(
456 src = cms.InputTag(
"combinatoricRecoTaus")
458 hpsPFTauProducerSansRefs.cleaners[1].src = cms.InputTag(
"hpsSelectionDiscriminator")
460 from RecoTauTag.RecoTau.RecoTauPiZeroUnembedder_cfi
import RecoTauPiZeroUnembedder
461 hpsPFTauProducer = RecoTauPiZeroUnembedder.clone(
462 src = cms.InputTag(
"hpsPFTauProducerSansRefs")
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(
481 discriminator = cms.InputTag(
'hpsPFTauDiscriminationByDecayModeFindingNewDMs'),
482 selectionCut = cms.double(0.5)
485 cut = cms.string(
"pt > 18.0 & abs(eta) < 2.4")
488 hpsPFTauSecondaryVertexProducer = PFTauSecondaryVertexProducer.clone(
489 PFTauTag = cms.InputTag(
"hpsPFTauProducer")
491 hpsPFTauTransverseImpactParameters = PFTauTransverseImpactParameters.clone(
492 PFTauTag = cms.InputTag(
"hpsPFTauProducer"),
493 PFTauPVATag = cms.InputTag(
"hpsPFTauPrimaryVertexProducer"),
494 PFTauSVATag = cms.InputTag(
"hpsPFTauSecondaryVertexProducer"),
495 useFullCalculation = cms.bool(
True)
497 hpsPFTauVertexAndImpactParametersTask = cms.Task(
498 hpsPFTauPrimaryVertexProducer,
499 hpsPFTauSecondaryVertexProducer,
500 hpsPFTauTransverseImpactParameters
502 hpsPFTauVertexAndImpactParametersSeq = cms.Sequence(
503 hpsPFTauVertexAndImpactParametersTask
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)
519 hpsPFTauNeutralIsoPtSum = hpsPFTauChargedIsoPtSum.clone(
520 ApplyDiscriminationByECALIsolation = cms.bool(
True),
521 ApplyDiscriminationByTrackerIsolation = cms.bool(
False),
522 verbosity = cms.int32(0)
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)
532 hpsPFTauNeutralIsoPtSumWeight = hpsPFTauChargedIsoPtSum.clone(
533 ApplyDiscriminationByWeightedECALIsolation = cms.bool(
True),
534 ApplyDiscriminationByTrackerIsolation = cms.bool(
False),
535 UseAllPFCandsForWeights = cms.bool(
True),
536 verbosity = cms.int32(0)
538 hpsPFTauFootprintCorrection = hpsPFTauChargedIsoPtSum.clone(
539 ApplyDiscriminationByTrackerIsolation = cms.bool(
False),
540 storeRawSumPt = cms.bool(
False),
541 storeRawFootprintCorrection = cms.bool(
True),
542 verbosity = cms.int32(0)
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)
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)
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"),
577 category = cms.uint32(0),
578 cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff90"),
579 variable = cms.string(
"pt")
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")
596 hpsPFTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw = hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw.clone(
597 mvaName = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2"),
598 mvaOpt = cms.string(
"DBnewDMwLTwGJ"),
599 verbosity = cms.int32(0)
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"),
609 category = cms.uint32(0),
610 cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff90"),
611 variable = cms.string(
"pt")
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")
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)
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"),
642 category = cms.uint32(0),
643 cut = cms.string(
"RecoTauTag_tauIdMVAPWoldDMwLTv1_WPEff90"),
644 variable = cms.string(
"pt")
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")
659 hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLTraw = hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTraw.clone(
660 mvaName = cms.string(
"RecoTauTag_tauIdMVAPWnewDMwLTv1"),
661 mvaOpt = cms.string(
"PWnewDMwLT"),
662 verbosity = cms.int32(0)
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"),
672 category = cms.uint32(0),
673 cut = cms.string(
"RecoTauTag_tauIdMVAPWnewDMwLTv1_WPEff90"),
674 variable = cms.string(
"pt")
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")
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)
702 hpsPFTauNeutralIsoPtSumdR03 = hpsPFTauChargedIsoPtSumdR03.clone(
703 ApplyDiscriminationByECALIsolation = cms.bool(
True),
704 ApplyDiscriminationByTrackerIsolation = cms.bool(
False),
705 verbosity = cms.int32(0)
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)
715 hpsPFTauNeutralIsoPtSumWeightdR03 = hpsPFTauChargedIsoPtSumdR03.clone(
716 ApplyDiscriminationByWeightedECALIsolation = cms.bool(
True),
717 ApplyDiscriminationByTrackerIsolation = cms.bool(
False),
718 UseAllPFCandsForWeights = cms.bool(
True),
719 verbosity = cms.int32(0)
721 hpsPFTauFootprintCorrectiondR03 = hpsPFTauChargedIsoPtSumdR03.clone(
722 ApplyDiscriminationByTrackerIsolation = cms.bool(
False),
723 storeRawSumPt = cms.bool(
False),
724 storeRawFootprintCorrection = cms.bool(
True),
725 verbosity = cms.int32(0)
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)
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)
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"),
753 category = cms.uint32(0),
754 cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff90"),
755 variable = cms.string(
"pt")
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")
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)
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"),
785 category = cms.uint32(0),
786 cut = cms.string(
"RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_WPEff90"),
787 variable = cms.string(
"pt")
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")
802 hpsPFTauIsolationSumsTask = cms.Task(
803 hpsPFTauChargedIsoPtSum,
804 hpsPFTauNeutralIsoPtSum,
806 hpsPFTauNeutralIsoPtSumWeight,
807 hpsPFTauFootprintCorrection,
808 hpsPFTauPhotonPtSumOutsideSignalCone,
811 hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTTask = cms.Task(
812 hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw,
813 hpsPFTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT,
814 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT,
815 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT,
816 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT,
817 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT,
818 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT,
819 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT
822 hpsPFTauDiscriminationByIsolationMVArun2v1DBnewDMwLTTask = cms.Task(
823 hpsPFTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw,
824 hpsPFTauDiscriminationByVVLooseIsolationMVArun2v1DBnewDMwLT,
825 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT,
826 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBnewDMwLT,
827 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBnewDMwLT,
828 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBnewDMwLT,
829 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBnewDMwLT,
830 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBnewDMwLT
833 hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTTask = cms.Task(
834 hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTraw,
835 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT,
836 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWoldDMwLT,
837 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWoldDMwLT,
838 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWoldDMwLT,
839 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWoldDMwLT,
840 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWoldDMwLT
843 hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLTTask = cms.Task(
844 hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLTraw,
845 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT,
846 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWnewDMwLT,
847 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWnewDMwLT,
848 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWnewDMwLT,
849 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWnewDMwLT,
850 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWnewDMwLT,
853 hpsPFTauIsolationSums03Task = cms.Task(
854 hpsPFTauChargedIsoPtSumdR03,
855 hpsPFTauNeutralIsoPtSumdR03,
856 hpsPFTauPUcorrPtSumdR03,
857 hpsPFTauNeutralIsoPtSumWeightdR03,
858 hpsPFTauFootprintCorrectiondR03,
859 hpsPFTauPhotonPtSumOutsideSignalConedR03
862 hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTTask = cms.Task(
863 hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTraw,
864 hpsPFTauDiscriminationByVVLooseIsolationMVArun2v1DBdR03oldDMwLT,
865 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT,
866 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBdR03oldDMwLT,
867 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBdR03oldDMwLT,
868 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBdR03oldDMwLT,
869 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBdR03oldDMwLT,
870 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBdR03oldDMwLT
873 hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLTTask = cms.Task(
874 hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLTraw,
875 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT,
876 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWdR03oldDMwLT,
877 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWdR03oldDMwLT,
878 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWdR03oldDMwLT,
879 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWdR03oldDMwLT,
880 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWdR03oldDMwLT
883 hpsPFTauMVAIsolation2Task = cms.Task(
884 hpsPFTauIsolationSumsTask,
885 hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTTask,
886 hpsPFTauDiscriminationByIsolationMVArun2v1DBnewDMwLTTask,
887 hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTTask,
888 hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLTTask,
889 hpsPFTauIsolationSums03Task,
890 hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTTask,
891 hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLTTask
894 hpsPFTauMVAIsolation2Seq = cms.Sequence(
895 hpsPFTauMVAIsolation2Task
898 produceHPSPFTausTask = cms.Task(
899 hpsSelectionDiscriminator,
904 hpsPFTauProducerSansRefs,
908 produceHPSPFTaus = cms.Sequence(
912 produceAndDiscriminateHPSPFTausTask = cms.Task(
913 produceHPSPFTausTask,
914 hpsPFTauDiscriminationByDecayModeFindingNewDMs,
915 hpsPFTauDiscriminationByDecayModeFindingOldDMs,
916 hpsPFTauDiscriminationByDecayModeFinding,
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
933 produceAndDiscriminateHPSPFTaus = cms.Sequence(
934 produceAndDiscriminateHPSPFTausTask
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.