1 import FWCore.ParameterSet.Config
as cms
3 from Configuration.Eras.Modifier_phase2_common_cff
import phase2_common
25 from RecoTauTag.RecoTau.PFRecoTauPFJetInputs_cfi
import PFRecoTauPFJetInputs
27 ak4dBetaCorrection = 0.20
32 from RecoTauTag.RecoTau.PFRecoTauDiscriminationByHPSSelection_cfi
import hpsSelectionDiscriminator, decayMode_1Prong0Pi0, decayMode_1Prong1Pi0, decayMode_1Prong2Pi0, decayMode_2Prong0Pi0, decayMode_2Prong1Pi0, decayMode_3Prong0Pi0, decayMode_3Prong1Pi0
34 hpsPFTauDiscriminationByDecayModeFindingNewDMs = hpsSelectionDiscriminator.clone(
35 PFTauProducer = cms.InputTag(
'hpsPFTauProducer'),
38 decayModes = cms.VPSet(
49 hpsPFTauDiscriminationByDecayModeFindingOldDMs = hpsSelectionDiscriminator.clone(
50 PFTauProducer = cms.InputTag(
'hpsPFTauProducer'),
51 decayModes = cms.VPSet(
57 requireTauChargedHadronsToBeChargedPFCands = cms.bool(
True)
59 hpsPFTauDiscriminationByDecayModeFinding = hpsPFTauDiscriminationByDecayModeFindingOldDMs.clone()
62 requireDecayMode = cms.PSet(
63 BooleanOperator = cms.string(
"and"),
65 Producer = cms.InputTag(
'hpsPFTauDiscriminationByDecayModeFindingNewDMs'),
70 hpsPFTauDiscriminationByLooseIsolation = pfRecoTauDiscriminationByIsolation.clone(
71 PFTauProducer = cms.InputTag(
"hpsPFTauProducer"),
72 Prediscriminants = requireDecayMode.clone(),
73 ApplyDiscriminationByTrackerIsolation =
False,
74 ApplyDiscriminationByECALIsolation =
True,
75 applyOccupancyCut =
True 77 hpsPFTauDiscriminationByLooseIsolation.Prediscriminants.preIso = cms.PSet(
78 Producer = cms.InputTag(
"hpsPFTauDiscriminationByLooseChargedIsolation"),
82 hpsPFTauDiscriminationByMediumIsolation = hpsPFTauDiscriminationByLooseIsolation.clone()
83 hpsPFTauDiscriminationByMediumIsolation.qualityCuts.isolationQualityCuts.minTrackPt = 0.8
84 hpsPFTauDiscriminationByMediumIsolation.qualityCuts.isolationQualityCuts.minGammaEt = 1.0
85 hpsPFTauDiscriminationByMediumIsolation.Prediscriminants.preIso.Producer = cms.InputTag(
"hpsPFTauDiscriminationByMediumChargedIsolation")
87 hpsPFTauDiscriminationByTightIsolation = hpsPFTauDiscriminationByLooseIsolation.clone()
88 hpsPFTauDiscriminationByTightIsolation.qualityCuts.isolationQualityCuts.minTrackPt = 0.5
89 hpsPFTauDiscriminationByTightIsolation.qualityCuts.isolationQualityCuts.minGammaEt = 1.0
90 hpsPFTauDiscriminationByTightIsolation.Prediscriminants.preIso.Producer = cms.InputTag(
"hpsPFTauDiscriminationByTightChargedIsolation")
92 hpsPFTauDiscriminationByLooseIsolationDBSumPtCorr = hpsPFTauDiscriminationByLooseIsolation.clone(
93 deltaBetaPUTrackPtCutOverride =
True,
94 deltaBetaPUTrackPtCutOverride_val = 0.5,
95 applyDeltaBetaCorrection =
True,
96 isoConeSizeForDeltaBeta = 0.8,
97 deltaBetaFactor =
"%0.4f"%(0.0123/0.1687),
98 applyOccupancyCut =
False,
101 hpsPFTauDiscriminationByLooseIsolationDBSumPtCorr.maximumSumPtCut = hpsPFTauDiscriminationByLooseIsolationDBSumPtCorr.qualityCuts.isolationQualityCuts.minGammaEt
103 hpsPFTauDiscriminationByMediumIsolationDBSumPtCorr = hpsPFTauDiscriminationByMediumIsolation.clone(
104 deltaBetaPUTrackPtCutOverride =
True,
105 deltaBetaPUTrackPtCutOverride_val = 0.5,
106 applyDeltaBetaCorrection =
True,
107 isoConeSizeForDeltaBeta = 0.8,
108 deltaBetaFactor =
"%0.4f"%(0.0462/0.1687),
109 applyOccupancyCut =
False,
110 applySumPtCut =
True,
112 hpsPFTauDiscriminationByMediumIsolationDBSumPtCorr.maximumSumPtCut = hpsPFTauDiscriminationByMediumIsolationDBSumPtCorr.qualityCuts.isolationQualityCuts.minGammaEt
114 hpsPFTauDiscriminationByTightIsolationDBSumPtCorr = hpsPFTauDiscriminationByTightIsolation.clone(
115 deltaBetaPUTrackPtCutOverride =
True,
116 deltaBetaPUTrackPtCutOverride_val = 0.5,
117 applyDeltaBetaCorrection =
True,
118 isoConeSizeForDeltaBeta = 0.8,
119 deltaBetaFactor =
"%0.4f"%(ak4dBetaCorrection),
120 applyOccupancyCut =
False,
121 applySumPtCut =
True,
123 hpsPFTauDiscriminationByTightIsolationDBSumPtCorr.maximumSumPtCut = hpsPFTauDiscriminationByTightIsolationDBSumPtCorr.qualityCuts.isolationQualityCuts.minGammaEt
125 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr = hpsPFTauDiscriminationByLooseIsolationDBSumPtCorr.clone(
126 ApplyDiscriminationByTrackerIsolation =
True,
127 ApplyDiscriminationByECALIsolation =
True,
128 deltaBetaFactor =
"%0.4f"%(ak4dBetaCorrection),
129 applyOccupancyCut =
False,
130 applySumPtCut =
True,
131 maximumSumPtCut = 2.5,
132 Prediscriminants = requireDecayMode.clone()
134 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr.qualityCuts.isolationQualityCuts.minTrackPt = 0.5
135 phase2_common.toModify(hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr.qualityCuts,
136 isolationQualityCuts =
dict( minTrackPt = 0.8 )
138 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr.qualityCuts.isolationQualityCuts.minGammaEt = 1.0
140 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr = hpsPFTauDiscriminationByMediumIsolationDBSumPtCorr.clone(
141 ApplyDiscriminationByTrackerIsolation =
True,
142 ApplyDiscriminationByECALIsolation =
True,
143 deltaBetaFactor =
"%0.4f"%(ak4dBetaCorrection),
144 applyOccupancyCut =
False,
145 applySumPtCut =
True,
146 maximumSumPtCut = 1.5,
147 Prediscriminants = requireDecayMode.clone()
149 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr.qualityCuts.isolationQualityCuts.minTrackPt = 0.5
150 phase2_common.toModify(hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr.qualityCuts,
151 isolationQualityCuts =
dict( minTrackPt = 0.8 )
153 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr.qualityCuts.isolationQualityCuts.minGammaEt = 1.0
155 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr = hpsPFTauDiscriminationByTightIsolationDBSumPtCorr.clone(
156 ApplyDiscriminationByTrackerIsolation =
True,
157 ApplyDiscriminationByECALIsolation =
True,
158 deltaBetaFactor =
"%0.4f"%(ak4dBetaCorrection),
159 applyOccupancyCut =
False,
160 applySumPtCut =
True,
161 maximumSumPtCut = 0.8,
162 Prediscriminants = requireDecayMode.clone()
164 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr.qualityCuts.isolationQualityCuts.minTrackPt = 0.5
165 phase2_common.toModify(hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr.qualityCuts,
166 isolationQualityCuts =
dict( minTrackPt = 0.8 )
168 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr.qualityCuts.isolationQualityCuts.minGammaEt = 1.0
170 hpsPFTauDiscriminationByLooseChargedIsolation = hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr.clone(
171 ApplyDiscriminationByECALIsolation =
False 174 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits = hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr.clone()
175 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits.qualityCuts.isolationQualityCuts.minTrackHits = cms.uint32(3)
176 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits.applyPhotonPtSumOutsideSignalConeCut = cms.bool(
True)
178 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3Hits = hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr.clone()
179 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3Hits.qualityCuts.isolationQualityCuts.minTrackHits = cms.uint32(3)
180 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3Hits.applyPhotonPtSumOutsideSignalConeCut = cms.bool(
True)
182 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3Hits = hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr.clone()
183 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3Hits.qualityCuts.isolationQualityCuts.minTrackHits = cms.uint32(3)
184 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3Hits.applyPhotonPtSumOutsideSignalConeCut = cms.bool(
True)
186 hpsPFTauDiscriminationByRawCombinedIsolationDBSumPtCorr3Hits = hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits.clone(
187 applySumPtCut =
False,
188 storeRawSumPt = cms.bool(
True)
191 hpsPFTauDiscriminationByCombinedIsolationDBSumPtCorr3HitsTask = cms.Task(
192 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits,
193 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3Hits,
194 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3Hits,
195 hpsPFTauDiscriminationByRawCombinedIsolationDBSumPtCorr3Hits
197 hpsPFTauDiscriminationByCombinedIsolationSeqDBSumPtCorr3Hits = cms.Sequence(
198 hpsPFTauDiscriminationByCombinedIsolationDBSumPtCorr3HitsTask
201 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3HitsdR03 = hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits.clone()
202 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3HitsdR03.deltaBetaFactor = cms.string(
'0.0720')
203 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3HitsdR03.customOuterCone = cms.double(0.3)
205 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3HitsdR03 = hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3Hits.clone()
206 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3HitsdR03.deltaBetaFactor = cms.string(
'0.0720')
207 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3HitsdR03.customOuterCone = cms.double(0.3)
209 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3HitsdR03 = hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3Hits.clone()
210 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3HitsdR03.deltaBetaFactor = cms.string(
'0.0720')
211 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3HitsdR03.customOuterCone = cms.double(0.3)
213 hpsPFTauDiscriminationByCombinedIsolationDBSumPtCorr3HitsdR03Task = cms.Task(
214 hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3HitsdR03,
215 hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3HitsdR03,
216 hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3HitsdR03
218 hpsPFTauDiscriminationByCombinedIsolationSeqDBSumPtCorr3HitsdR03 = cms.Sequence(
219 hpsPFTauDiscriminationByCombinedIsolationDBSumPtCorr3HitsdR03Task
222 hpsPFTauDiscriminationByLoosePileupWeightedIsolation3Hits = hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits.clone(
223 ApplyDiscriminationByECALIsolation = cms.bool(
False),
224 applyDeltaBetaCorrection = cms.bool(
False),
225 ApplyDiscriminationByWeightedECALIsolation = cms.bool(
True),
226 UseAllPFCandsForWeights = cms.bool(
True),
227 applyFootprintCorrection = cms.bool(
True),
228 applyPhotonPtSumOutsideSignalConeCut = cms.bool(
True)
231 hpsPFTauDiscriminationByMediumPileupWeightedIsolation3Hits = hpsPFTauDiscriminationByLoosePileupWeightedIsolation3Hits.clone(
232 maximumSumPtCut = hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3Hits.maximumSumPtCut
235 hpsPFTauDiscriminationByTightPileupWeightedIsolation3Hits = hpsPFTauDiscriminationByLoosePileupWeightedIsolation3Hits.clone(
236 maximumSumPtCut = hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3Hits.maximumSumPtCut
239 hpsPFTauDiscriminationByRawPileupWeightedIsolation3Hits = hpsPFTauDiscriminationByLoosePileupWeightedIsolation3Hits.clone(
240 Prediscriminants = cms.PSet(
241 BooleanOperator = cms.string(
"and"),
242 decayMode = cms.PSet(
243 Producer = cms.InputTag(
'hpsPFTauDiscriminationByPhotonPtSumOutsideSignalCone'),
244 cut = cms.double(0.5)
247 applySumPtCut = cms.bool(
False),
248 storeRawSumPt = cms.bool(
True)
251 hpsPFTauDiscriminationByPhotonPtSumOutsideSignalCone = hpsPFTauDiscriminationByLoosePileupWeightedIsolation3Hits.clone(
252 applySumPtCut = cms.bool(
False)
255 hpsPFTauDiscriminationByPileupWeightedIsolation3HitsTask = cms.Task(
256 hpsPFTauDiscriminationByLoosePileupWeightedIsolation3Hits,
257 hpsPFTauDiscriminationByMediumPileupWeightedIsolation3Hits,
258 hpsPFTauDiscriminationByTightPileupWeightedIsolation3Hits,
259 hpsPFTauDiscriminationByPhotonPtSumOutsideSignalCone,
260 hpsPFTauDiscriminationByRawPileupWeightedIsolation3Hits
262 hpsPFTauDiscriminationByPileupWeightedIsolationSeq3Hits = cms.Sequence(
263 hpsPFTauDiscriminationByPileupWeightedIsolation3HitsTask
268 hpsPFTauDiscriminationByLooseMuonRejection3 = pfRecoTauDiscriminationAgainstMuon2.clone(
269 PFTauProducer = cms.InputTag(
'hpsPFTauProducer'),
270 Prediscriminants = noPrediscriminants,
271 discriminatorOption = cms.string(
'custom'),
272 maxNumberOfMatches = cms.int32(1),
273 doCaloMuonVeto = cms.bool(
True),
274 maxNumberOfHitsLast2Stations = cms.int32(-1)
276 hpsPFTauDiscriminationByTightMuonRejection3 = hpsPFTauDiscriminationByLooseMuonRejection3.clone(
277 maxNumberOfHitsLast2Stations = cms.int32(0)
282 hpsPFTauDiscriminationByLooseElectronRejection = pfRecoTauDiscriminationAgainstElectron.clone(
283 PFTauProducer = cms.InputTag(
'hpsPFTauProducer'),
284 Prediscriminants = noPrediscriminants,
285 PFElectronMVA_maxValue = cms.double(0.6)
288 hpsPFTauDiscriminationByMediumElectronRejection = pfRecoTauDiscriminationAgainstElectron.clone(
289 PFTauProducer = cms.InputTag(
'hpsPFTauProducer'),
290 Prediscriminants = noPrediscriminants,
291 ApplyCut_EcalCrackCut = cms.bool(
True)
294 hpsPFTauDiscriminationByTightElectronRejection = pfRecoTauDiscriminationAgainstElectron.clone(
295 PFTauProducer = cms.InputTag(
'hpsPFTauProducer'),
296 Prediscriminants = noPrediscriminants,
297 ApplyCut_EcalCrackCut = cms.bool(
True),
298 ApplyCut_BremCombined = cms.bool(
True)
301 hpsPFTauDiscriminationByDeadECALElectronRejection = pfRecoTauDiscriminationAgainstElectronDeadECAL.clone(
302 PFTauProducer = cms.InputTag(
'hpsPFTauProducer'),
303 Prediscriminants = requireDecayMode.clone()
306 hpsPFTauDiscriminationByMVA6rawElectronRejection = pfRecoTauDiscriminationAgainstElectronMVA6.clone(
307 PFTauProducer = cms.InputTag(
'hpsPFTauProducer'),
308 Prediscriminants = requireDecayMode.clone(),
309 loadMVAfromDB = cms.bool(
True),
310 vetoEcalCracks = cms.bool(
True),
311 mvaName_NoEleMatch_woGwoGSF_BL = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_BL"),
312 mvaName_NoEleMatch_wGwoGSF_BL = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_BL"),
313 mvaName_woGwGSF_BL = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_BL"),
314 mvaName_wGwGSF_BL = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_BL"),
315 mvaName_NoEleMatch_woGwoGSF_EC = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_EC"),
316 mvaName_NoEleMatch_wGwoGSF_EC = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_EC"),
317 mvaName_woGwGSF_EC = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_EC"),
318 mvaName_wGwGSF_EC = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_EC")
321 hpsPFTauDiscriminationByMVA6VLooseElectronRejection = recoTauDiscriminantCutMultiplexer.clone(
322 PFTauProducer = cms.InputTag(
'hpsPFTauProducer'),
323 Prediscriminants = requireDecayMode.clone(),
324 toMultiplex = cms.InputTag(
'hpsPFTauDiscriminationByMVA6rawElectronRejection'),
325 key = cms.InputTag(
'hpsPFTauDiscriminationByMVA6rawElectronRejection:category'),
326 loadMVAfromDB = cms.bool(
True),
329 category = cms.uint32(0),
330 cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_BL_WPEff99"),
331 variable = cms.string(
"pt")
334 category = cms.uint32(2),
335 cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_BL_WPEff99"),
336 variable = cms.string(
"pt")
339 category = cms.uint32(5),
340 cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_BL_WPEff99"),
341 variable = cms.string(
"pt")
344 category = cms.uint32(7),
345 cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_BL_WPEff99"),
346 variable = cms.string(
"pt")
349 category = cms.uint32(8),
350 cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_EC_WPEff99"),
351 variable = cms.string(
"pt")
354 category = cms.uint32(10),
355 cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_EC_WPEff99"),
356 variable = cms.string(
"pt")
359 category = cms.uint32(13),
360 cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_EC_WPEff99"),
361 variable = cms.string(
"pt")
364 category = cms.uint32(15),
365 cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_EC_WPEff99"),
366 variable = cms.string(
"pt")
371 hpsPFTauDiscriminationByMVA6LooseElectronRejection = copy.deepcopy(hpsPFTauDiscriminationByMVA6VLooseElectronRejection)
372 hpsPFTauDiscriminationByMVA6LooseElectronRejection.mapping[0].cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_BL_WPEff96")
373 hpsPFTauDiscriminationByMVA6LooseElectronRejection.mapping[1].cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_BL_WPEff96")
374 hpsPFTauDiscriminationByMVA6LooseElectronRejection.mapping[2].cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_BL_WPEff96")
375 hpsPFTauDiscriminationByMVA6LooseElectronRejection.mapping[3].cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_BL_WPEff96")
376 hpsPFTauDiscriminationByMVA6LooseElectronRejection.mapping[4].cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_EC_WPEff96")
377 hpsPFTauDiscriminationByMVA6LooseElectronRejection.mapping[5].cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_EC_WPEff96")
378 hpsPFTauDiscriminationByMVA6LooseElectronRejection.mapping[6].cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_EC_WPEff96")
379 hpsPFTauDiscriminationByMVA6LooseElectronRejection.mapping[7].cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_EC_WPEff96")
381 hpsPFTauDiscriminationByMVA6MediumElectronRejection = copy.deepcopy(hpsPFTauDiscriminationByMVA6VLooseElectronRejection)
382 hpsPFTauDiscriminationByMVA6MediumElectronRejection.mapping[0].cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_BL_WPEff91")
383 hpsPFTauDiscriminationByMVA6MediumElectronRejection.mapping[1].cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_BL_WPEff91")
384 hpsPFTauDiscriminationByMVA6MediumElectronRejection.mapping[2].cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_BL_WPEff91")
385 hpsPFTauDiscriminationByMVA6MediumElectronRejection.mapping[3].cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_BL_WPEff91")
386 hpsPFTauDiscriminationByMVA6MediumElectronRejection.mapping[4].cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_EC_WPEff91")
387 hpsPFTauDiscriminationByMVA6MediumElectronRejection.mapping[5].cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_EC_WPEff91")
388 hpsPFTauDiscriminationByMVA6MediumElectronRejection.mapping[6].cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_EC_WPEff91")
389 hpsPFTauDiscriminationByMVA6MediumElectronRejection.mapping[7].cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_EC_WPEff91")
391 hpsPFTauDiscriminationByMVA6TightElectronRejection = copy.deepcopy(hpsPFTauDiscriminationByMVA6VLooseElectronRejection)
392 hpsPFTauDiscriminationByMVA6TightElectronRejection.mapping[0].cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_BL_WPEff85")
393 hpsPFTauDiscriminationByMVA6TightElectronRejection.mapping[1].cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_BL_WPEff85")
394 hpsPFTauDiscriminationByMVA6TightElectronRejection.mapping[2].cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_BL_WPEff85")
395 hpsPFTauDiscriminationByMVA6TightElectronRejection.mapping[3].cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_BL_WPEff85")
396 hpsPFTauDiscriminationByMVA6TightElectronRejection.mapping[4].cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_EC_WPEff85")
397 hpsPFTauDiscriminationByMVA6TightElectronRejection.mapping[5].cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_EC_WPEff85")
398 hpsPFTauDiscriminationByMVA6TightElectronRejection.mapping[6].cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_EC_WPEff85")
399 hpsPFTauDiscriminationByMVA6TightElectronRejection.mapping[7].cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_EC_WPEff85")
401 hpsPFTauDiscriminationByMVA6VTightElectronRejection = copy.deepcopy(hpsPFTauDiscriminationByMVA6VLooseElectronRejection)
402 hpsPFTauDiscriminationByMVA6VTightElectronRejection.mapping[0].cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_BL_WPEff79")
403 hpsPFTauDiscriminationByMVA6VTightElectronRejection.mapping[1].cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_BL_WPEff79")
404 hpsPFTauDiscriminationByMVA6VTightElectronRejection.mapping[2].cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_BL_WPEff79")
405 hpsPFTauDiscriminationByMVA6VTightElectronRejection.mapping[3].cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_BL_WPEff79")
406 hpsPFTauDiscriminationByMVA6VTightElectronRejection.mapping[4].cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_woGwoGSF_EC_WPEff79")
407 hpsPFTauDiscriminationByMVA6VTightElectronRejection.mapping[5].cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_NoEleMatch_wGwoGSF_EC_WPEff79")
408 hpsPFTauDiscriminationByMVA6VTightElectronRejection.mapping[6].cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_woGwGSF_EC_WPEff79")
409 hpsPFTauDiscriminationByMVA6VTightElectronRejection.mapping[7].cut = cms.string(
"RecoTauTag_antiElectronMVA6v1_gbr_wGwGSF_EC_WPEff79")
412 hpsSelectionDiscriminator.PFTauProducer = cms.InputTag(
"combinatoricRecoTaus")
415 hpsSelectionDiscriminator.decayModes = cms.VPSet(
416 decayMode_1Prong0Pi0,
417 decayMode_1Prong1Pi0,
418 decayMode_1Prong2Pi0,
419 decayMode_2Prong0Pi0,
420 decayMode_2Prong1Pi0,
421 decayMode_3Prong0Pi0,
422 decayMode_3Prong1Pi0,
426 from RecoTauTag.RecoTau.RecoTauCleaner_cfi
import RecoTauCleaner
427 hpsPFTauProducerSansRefs = RecoTauCleaner.clone(
428 src = cms.InputTag(
"combinatoricRecoTaus")
430 hpsPFTauProducerSansRefs.cleaners[1].src = cms.InputTag(
"hpsSelectionDiscriminator")
432 from RecoTauTag.RecoTau.RecoTauPiZeroUnembedder_cfi
import RecoTauPiZeroUnembedder
433 hpsPFTauProducer = RecoTauPiZeroUnembedder.clone(
434 src = cms.InputTag(
"hpsPFTauProducerSansRefs")
440 hpsPFTauPrimaryVertexProducer = PFTauPrimaryVertexProducer.clone(
441 PFTauTag = cms.InputTag(
"hpsPFTauProducer"),
442 ElectronTag = cms.InputTag(
""),
443 MuonTag = cms.InputTag(
""),
444 PVTag = cms.InputTag(
"offlinePrimaryVertices"),
445 beamSpot = cms.InputTag(
"offlineBeamSpot"),
446 Algorithm = cms.int32(0),
447 useBeamSpot = cms.bool(
True),
448 RemoveMuonTracks = cms.bool(
False),
449 RemoveElectronTracks = cms.bool(
False),
450 useSelectedTaus = cms.bool(
False),
451 discriminators = cms.VPSet(
453 discriminator = cms.InputTag(
'hpsPFTauDiscriminationByDecayModeFindingNewDMs'),
454 selectionCut = cms.double(0.5)
457 cut = cms.string(
"pt > 18.0 & abs(eta) < 2.4")
460 hpsPFTauSecondaryVertexProducer = PFTauSecondaryVertexProducer.clone(
461 PFTauTag = cms.InputTag(
"hpsPFTauProducer")
463 hpsPFTauTransverseImpactParameters = PFTauTransverseImpactParameters.clone(
464 PFTauTag = cms.InputTag(
"hpsPFTauProducer"),
465 PFTauPVATag = cms.InputTag(
"hpsPFTauPrimaryVertexProducer"),
466 PFTauSVATag = cms.InputTag(
"hpsPFTauSecondaryVertexProducer"),
467 useFullCalculation = cms.bool(
True)
469 hpsPFTauVertexAndImpactParametersTask = cms.Task(
470 hpsPFTauPrimaryVertexProducer,
471 hpsPFTauSecondaryVertexProducer,
472 hpsPFTauTransverseImpactParameters
474 hpsPFTauVertexAndImpactParametersSeq = cms.Sequence(
475 hpsPFTauVertexAndImpactParametersTask
478 hpsPFTauChargedIsoPtSum = hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits.clone(
479 PFTauProducer = cms.InputTag(
'hpsPFTauProducer'),
480 Prediscriminants = requireDecayMode.clone(),
481 ApplyDiscriminationByECALIsolation = cms.bool(
False),
482 ApplyDiscriminationByTrackerIsolation = cms.bool(
True),
483 applySumPtCut = cms.bool(
False),
484 applyDeltaBetaCorrection = cms.bool(
False),
485 storeRawSumPt = cms.bool(
True),
486 storeRawPUsumPt = cms.bool(
False),
487 customOuterCone = PFRecoTauPFJetInputs.isolationConeSize,
488 isoConeSizeForDeltaBeta = cms.double(0.8),
489 verbosity = cms.int32(0)
491 hpsPFTauNeutralIsoPtSum = hpsPFTauChargedIsoPtSum.clone(
492 ApplyDiscriminationByECALIsolation = cms.bool(
True),
493 ApplyDiscriminationByTrackerIsolation = cms.bool(
False),
494 verbosity = cms.int32(0)
496 hpsPFTauPUcorrPtSum = hpsPFTauChargedIsoPtSum.clone(
497 ApplyDiscriminationByECALIsolation = cms.bool(
False),
498 ApplyDiscriminationByTrackerIsolation = cms.bool(
False),
499 applyDeltaBetaCorrection = cms.bool(
True),
500 storeRawSumPt = cms.bool(
False),
501 storeRawPUsumPt = cms.bool(
True),
502 verbosity = cms.int32(0)
504 hpsPFTauNeutralIsoPtSumWeight = hpsPFTauChargedIsoPtSum.clone(
505 ApplyDiscriminationByWeightedECALIsolation = cms.bool(
True),
506 ApplyDiscriminationByTrackerIsolation = cms.bool(
False),
507 UseAllPFCandsForWeights = cms.bool(
True),
508 verbosity = cms.int32(0)
510 hpsPFTauFootprintCorrection = hpsPFTauChargedIsoPtSum.clone(
511 ApplyDiscriminationByTrackerIsolation = cms.bool(
False),
512 storeRawSumPt = cms.bool(
False),
513 storeRawFootprintCorrection = cms.bool(
True),
514 verbosity = cms.int32(0)
516 hpsPFTauPhotonPtSumOutsideSignalCone = hpsPFTauChargedIsoPtSum.clone(
517 ApplyDiscriminationByTrackerIsolation = cms.bool(
False),
518 storeRawSumPt = cms.bool(
False),
519 storeRawPhotonSumPt_outsideSignalCone = cms.bool(
True),
520 verbosity = cms.int32(0)
525 hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw = discriminationByIsolationMVArun2v1raw.clone(
526 PFTauProducer = cms.InputTag(
'hpsPFTauProducer'),
527 Prediscriminants = requireDecayMode.clone(),
528 loadMVAfromDB = cms.bool(
True),
529 mvaName = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2"),
530 mvaOpt = cms.string(
"DBoldDMwLTwGJ"),
531 srcTauTransverseImpactParameters = cms.InputTag(
'hpsPFTauTransverseImpactParameters'),
532 srcChargedIsoPtSum = cms.InputTag(
'hpsPFTauChargedIsoPtSum'),
533 srcNeutralIsoPtSum = cms.InputTag(
'hpsPFTauNeutralIsoPtSum'),
534 srcPUcorrPtSum = cms.InputTag(
'hpsPFTauPUcorrPtSum'),
535 srcPhotonPtSumOutsideSignalCone = cms.InputTag(
'hpsPFTauPhotonPtSumOutsideSignalCone'),
536 srcFootprintCorrection = cms.InputTag(
'hpsPFTauFootprintCorrection'),
537 verbosity = cms.int32(0)
540 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT = discriminationByIsolationMVArun2v1VLoose.clone(
541 PFTauProducer = cms.InputTag(
'hpsPFTauProducer'),
542 Prediscriminants = requireDecayMode.clone(),
543 toMultiplex = cms.InputTag(
'hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw'),
544 key = cms.InputTag(
'hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw:category'),
545 loadMVAfromDB = cms.bool(
True),
546 mvaOutput_normalization = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_mvaOutput_normalization"),
549 category = cms.uint32(0),
550 cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff90"),
551 variable = cms.string(
"pt")
555 hpsPFTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT.clone()
556 hpsPFTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff95")
557 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT.clone()
558 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff80")
559 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT.clone()
560 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff70")
561 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT.clone()
562 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff60")
563 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT.clone()
564 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff50")
565 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT.clone()
566 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMwLT2017v2_WPEff40")
568 hpsPFTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw = hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw.clone(
569 mvaName = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2"),
570 mvaOpt = cms.string(
"DBnewDMwLTwGJ"),
571 verbosity = cms.int32(0)
574 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT.clone(
575 toMultiplex = cms.InputTag(
'hpsPFTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw'),
576 key = cms.InputTag(
'hpsPFTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw:category'),
577 loadMVAfromDB = cms.bool(
True),
578 mvaOutput_normalization = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_mvaOutput_normalization"),
581 category = cms.uint32(0),
582 cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff90"),
583 variable = cms.string(
"pt")
587 hpsPFTauDiscriminationByVVLooseIsolationMVArun2v1DBnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT.clone()
588 hpsPFTauDiscriminationByVVLooseIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff95")
589 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT.clone()
590 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff80")
591 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT.clone()
592 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff70")
593 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT.clone()
594 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff60")
595 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT.clone()
596 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff50")
597 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT.clone()
598 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBnewDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBnewDMwLT2017v2_WPEff40")
600 hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTraw = hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw.clone(
601 mvaName = cms.string(
"RecoTauTag_tauIdMVAPWoldDMwLTv1"),
602 mvaOpt = cms.string(
"PWoldDMwLT"),
603 srcNeutralIsoPtSum = cms.InputTag(
'hpsPFTauNeutralIsoPtSumWeight'),
604 verbosity = cms.int32(0)
607 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT.clone(
608 toMultiplex = cms.InputTag(
'hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTraw'),
609 key = cms.InputTag(
'hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTraw:category'),
610 loadMVAfromDB = cms.bool(
True),
611 mvaOutput_normalization = cms.string(
"RecoTauTag_tauIdMVAPWoldDMwLTv1_mvaOutput_normalization"),
614 category = cms.uint32(0),
615 cut = cms.string(
"RecoTauTag_tauIdMVAPWoldDMwLTv1_WPEff90"),
616 variable = cms.string(
"pt")
620 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT.clone()
621 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWoldDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAPWoldDMwLTv1_WPEff80")
622 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT.clone()
623 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWoldDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAPWoldDMwLTv1_WPEff70")
624 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT.clone()
625 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWoldDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAPWoldDMwLTv1_WPEff60")
626 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT.clone()
627 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWoldDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAPWoldDMwLTv1_WPEff50")
628 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWoldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT.clone()
629 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWoldDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAPWoldDMwLTv1_WPEff40")
631 hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLTraw = hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTraw.clone(
632 mvaName = cms.string(
"RecoTauTag_tauIdMVAPWnewDMwLTv1"),
633 mvaOpt = cms.string(
"PWnewDMwLT"),
634 verbosity = cms.int32(0)
637 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT.clone(
638 toMultiplex = cms.InputTag(
'hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLTraw'),
639 key = cms.InputTag(
'hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLTraw:category'),
640 loadMVAfromDB = cms.bool(
True),
641 mvaOutput_normalization = cms.string(
"RecoTauTag_tauIdMVAPWnewDMwLTv1_mvaOutput_normalization"),
644 category = cms.uint32(0),
645 cut = cms.string(
"RecoTauTag_tauIdMVAPWnewDMwLTv1_WPEff90"),
646 variable = cms.string(
"pt")
650 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT.clone()
651 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWnewDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAPWnewDMwLTv1_WPEff80")
652 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT.clone()
653 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWnewDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAPWnewDMwLTv1_WPEff70")
654 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT.clone()
655 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWnewDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAPWnewDMwLTv1_WPEff60")
656 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT.clone()
657 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWnewDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAPWnewDMwLTv1_WPEff50")
658 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWnewDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT.clone()
659 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWnewDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAPWnewDMwLTv1_WPEff40")
661 hpsPFTauChargedIsoPtSumdR03 = hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits.clone(
662 PFTauProducer = cms.InputTag(
'hpsPFTauProducer'),
663 Prediscriminants = requireDecayMode.clone(),
664 ApplyDiscriminationByECALIsolation = cms.bool(
False),
665 ApplyDiscriminationByTrackerIsolation = cms.bool(
True),
666 applySumPtCut = cms.bool(
False),
667 applyDeltaBetaCorrection = cms.bool(
False),
668 storeRawSumPt = cms.bool(
True),
669 storeRawPUsumPt = cms.bool(
False),
670 customOuterCone = cms.double(0.3),
671 isoConeSizeForDeltaBeta = cms.double(0.8),
672 verbosity = cms.int32(0)
674 hpsPFTauNeutralIsoPtSumdR03 = hpsPFTauChargedIsoPtSumdR03.clone(
675 ApplyDiscriminationByECALIsolation = cms.bool(
True),
676 ApplyDiscriminationByTrackerIsolation = cms.bool(
False),
677 verbosity = cms.int32(0)
679 hpsPFTauPUcorrPtSumdR03 = hpsPFTauChargedIsoPtSumdR03.clone(
680 ApplyDiscriminationByECALIsolation = cms.bool(
False),
681 ApplyDiscriminationByTrackerIsolation = cms.bool(
False),
682 applyDeltaBetaCorrection = cms.bool(
True),
683 storeRawSumPt = cms.bool(
False),
684 storeRawPUsumPt = cms.bool(
True),
685 verbosity = cms.int32(0)
687 hpsPFTauNeutralIsoPtSumWeightdR03 = hpsPFTauChargedIsoPtSumdR03.clone(
688 ApplyDiscriminationByWeightedECALIsolation = cms.bool(
True),
689 ApplyDiscriminationByTrackerIsolation = cms.bool(
False),
690 UseAllPFCandsForWeights = cms.bool(
True),
691 verbosity = cms.int32(0)
693 hpsPFTauFootprintCorrectiondR03 = hpsPFTauChargedIsoPtSumdR03.clone(
694 ApplyDiscriminationByTrackerIsolation = cms.bool(
False),
695 storeRawSumPt = cms.bool(
False),
696 storeRawFootprintCorrection = cms.bool(
True),
697 verbosity = cms.int32(0)
699 hpsPFTauPhotonPtSumOutsideSignalConedR03 = hpsPFTauChargedIsoPtSumdR03.clone(
700 ApplyDiscriminationByTrackerIsolation = cms.bool(
False),
701 storeRawSumPt = cms.bool(
False),
702 storeRawPhotonSumPt_outsideSignalCone = cms.bool(
True),
703 verbosity = cms.int32(0)
706 hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTraw = hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw.clone(
707 mvaName = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2"),
708 mvaOpt = cms.string(
"DBoldDMwLTwGJ"),
709 srcChargedIsoPtSum = cms.InputTag(
'hpsPFTauChargedIsoPtSumdR03'),
710 srcNeutralIsoPtSum = cms.InputTag(
'hpsPFTauNeutralIsoPtSumdR03'),
711 srcPUcorrPtSum = cms.InputTag(
'hpsPFTauPUcorrPtSumdR03'),
712 srcPhotonPtSumOutsideSignalCone = cms.InputTag(
'hpsPFTauPhotonPtSumOutsideSignalConedR03'),
713 srcFootprintCorrection = cms.InputTag(
'hpsPFTauFootprintCorrectiondR03'),
714 verbosity = cms.int32(0)
716 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT.clone(
717 PFTauProducer = cms.InputTag(
'hpsPFTauProducer'),
718 Prediscriminants = requireDecayMode.clone(),
719 toMultiplex = cms.InputTag(
'hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTraw'),
720 key = cms.InputTag(
'hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTraw:category'),
721 loadMVAfromDB = cms.bool(
True),
722 mvaOutput_normalization = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_mvaOutput_normalization"),
725 category = cms.uint32(0),
726 cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff90"),
727 variable = cms.string(
"pt")
731 hpsPFTauDiscriminationByVVLooseIsolationMVArun2v1DBdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT.clone()
732 hpsPFTauDiscriminationByVVLooseIsolationMVArun2v1DBdR03oldDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff95")
733 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT.clone()
734 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBdR03oldDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff80")
735 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT.clone()
736 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBdR03oldDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff70")
737 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT.clone()
738 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBdR03oldDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff60")
739 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT.clone()
740 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBdR03oldDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff50")
741 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT.clone()
742 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBdR03oldDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAIsoDBoldDMdR0p3wLT2017v2_WPEff40")
744 hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLTraw = hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTraw.clone(
745 mvaName = cms.string(
"RecoTauTag_tauIdMVAPWdR03oldDMwLTv1"),
746 mvaOpt = cms.string(
"PWoldDMwLT"),
747 srcNeutralIsoPtSum = cms.InputTag(
'hpsPFTauNeutralIsoPtSumWeightdR03'),
748 verbosity = cms.int32(0)
750 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT.clone(
751 toMultiplex = cms.InputTag(
'hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLTraw'),
752 key = cms.InputTag(
'hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLTraw:category'),
753 loadMVAfromDB = cms.bool(
True),
754 mvaOutput_normalization = cms.string(
"RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_mvaOutput_normalization"),
757 category = cms.uint32(0),
758 cut = cms.string(
"RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_WPEff90"),
759 variable = cms.string(
"pt")
763 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT.clone()
764 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWdR03oldDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_WPEff80")
765 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT.clone()
766 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWdR03oldDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_WPEff70")
767 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT.clone()
768 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWdR03oldDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_WPEff60")
769 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT.clone()
770 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWdR03oldDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_WPEff50")
771 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWdR03oldDMwLT = hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT.clone()
772 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWdR03oldDMwLT.mapping[0].cut = cms.string(
"RecoTauTag_tauIdMVAPWdR03oldDMwLTv1_WPEff40")
774 hpsPFTauIsolationSumsTask = cms.Task(
775 hpsPFTauChargedIsoPtSum,
776 hpsPFTauNeutralIsoPtSum,
778 hpsPFTauNeutralIsoPtSumWeight,
779 hpsPFTauFootprintCorrection,
780 hpsPFTauPhotonPtSumOutsideSignalCone,
783 hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTTask = cms.Task(
784 hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw,
785 hpsPFTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT,
786 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT,
787 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT,
788 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT,
789 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT,
790 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT,
791 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT
794 hpsPFTauDiscriminationByIsolationMVArun2v1DBnewDMwLTTask = cms.Task(
795 hpsPFTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw,
796 hpsPFTauDiscriminationByVVLooseIsolationMVArun2v1DBnewDMwLT,
797 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT,
798 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBnewDMwLT,
799 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBnewDMwLT,
800 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBnewDMwLT,
801 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBnewDMwLT,
802 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBnewDMwLT
805 hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTTask = cms.Task(
806 hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTraw,
807 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT,
808 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWoldDMwLT,
809 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWoldDMwLT,
810 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWoldDMwLT,
811 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWoldDMwLT,
812 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWoldDMwLT
815 hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLTTask = cms.Task(
816 hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLTraw,
817 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT,
818 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWnewDMwLT,
819 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWnewDMwLT,
820 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWnewDMwLT,
821 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWnewDMwLT,
822 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWnewDMwLT,
825 hpsPFTauIsolationSums03Task = cms.Task(
826 hpsPFTauChargedIsoPtSumdR03,
827 hpsPFTauNeutralIsoPtSumdR03,
828 hpsPFTauPUcorrPtSumdR03,
829 hpsPFTauNeutralIsoPtSumWeightdR03,
830 hpsPFTauFootprintCorrectiondR03,
831 hpsPFTauPhotonPtSumOutsideSignalConedR03
834 hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTTask = cms.Task(
835 hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTraw,
836 hpsPFTauDiscriminationByVVLooseIsolationMVArun2v1DBdR03oldDMwLT,
837 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT,
838 hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBdR03oldDMwLT,
839 hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBdR03oldDMwLT,
840 hpsPFTauDiscriminationByTightIsolationMVArun2v1DBdR03oldDMwLT,
841 hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBdR03oldDMwLT,
842 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBdR03oldDMwLT
845 hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLTTask = cms.Task(
846 hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLTraw,
847 hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT,
848 hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWdR03oldDMwLT,
849 hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWdR03oldDMwLT,
850 hpsPFTauDiscriminationByTightIsolationMVArun2v1PWdR03oldDMwLT,
851 hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWdR03oldDMwLT,
852 hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWdR03oldDMwLT
855 hpsPFTauMVAIsolation2Task = cms.Task(
856 hpsPFTauIsolationSumsTask,
857 hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTTask,
858 hpsPFTauDiscriminationByIsolationMVArun2v1DBnewDMwLTTask,
859 hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTTask,
860 hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLTTask,
861 hpsPFTauIsolationSums03Task,
862 hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTTask,
863 hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLTTask
866 hpsPFTauMVAIsolation2Seq = cms.Sequence(
867 hpsPFTauMVAIsolation2Task
870 produceHPSPFTausTask = cms.Task(
871 hpsSelectionDiscriminator,
876 hpsPFTauProducerSansRefs,
880 produceHPSPFTaus = cms.Sequence(
884 produceAndDiscriminateHPSPFTausTask = cms.Task(
885 produceHPSPFTausTask,
886 hpsPFTauDiscriminationByDecayModeFindingNewDMs,
887 hpsPFTauDiscriminationByDecayModeFindingOldDMs,
888 hpsPFTauDiscriminationByDecayModeFinding,
889 hpsPFTauDiscriminationByLooseChargedIsolation,
890 hpsPFTauDiscriminationByLooseIsolation,
891 hpsPFTauDiscriminationByCombinedIsolationDBSumPtCorr3HitsTask,
892 hpsPFTauDiscriminationByCombinedIsolationDBSumPtCorr3HitsdR03Task,
893 hpsPFTauDiscriminationByPileupWeightedIsolation3HitsTask,
894 hpsPFTauDiscriminationByLooseElectronRejection,
895 hpsPFTauDiscriminationByMediumElectronRejection,
896 hpsPFTauDiscriminationByTightElectronRejection,
897 hpsPFTauDiscriminationByMVA6rawElectronRejection,
898 hpsPFTauDiscriminationByMVA6VLooseElectronRejection,
899 hpsPFTauDiscriminationByMVA6LooseElectronRejection,
900 hpsPFTauDiscriminationByMVA6MediumElectronRejection,
901 hpsPFTauDiscriminationByMVA6TightElectronRejection,
902 hpsPFTauDiscriminationByMVA6VTightElectronRejection,
903 hpsPFTauDiscriminationByDeadECALElectronRejection,
904 hpsPFTauDiscriminationByLooseMuonRejection3,
905 hpsPFTauDiscriminationByTightMuonRejection3,
906 hpsPFTauVertexAndImpactParametersTask,
907 hpsPFTauMVAIsolation2Task
910 produceAndDiscriminateHPSPFTaus = cms.Sequence(
911 produceAndDiscriminateHPSPFTausTask
Updated tau collection with MVA-based tau-Ids rerun ####### Used only in some eras.