Skip to content

Commit

Permalink
Merge pull request #31047 from cms-tau-pog/CMSSW_11_2_X_tau-pog_deadE…
Browse files Browse the repository at this point in the history
…CAL-fix

Fix to enable hpsPFTauDiscriminationByDeadECALElectronRejection in run2 reminiAODs
  • Loading branch information
qliphy authored Aug 17, 2020
2 parents ab789c9 + 16c5230 commit 19e4136
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion PhysicsTools/PatAlgos/python/slimming/miniAOD_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,17 @@ def miniAOD_customizeCommon(process):
process.rerunDiscriminationByIsolationMVADBnewDMwLTPhase2.PATTauProducer=_noUpdatedTauName
task.add(process.rerunIsolationMVADBnewDMwLTPhase2Task)

#-- Rerun tauID against dead ECal towers to taus for the various re-MiniAOD eras
# to enable default behoviour with leading track extrapolation to ECAL
_makePatTausTaskWithDeadECalVeto = process.makePatTausTask.copy()
_makePatTausTaskWithDeadECalVeto.add(
process.hpsPFTauDiscriminationByDeadECALElectronRejection
)
_run2_miniAOD_ANY = (run2_miniAOD_80XLegacy | run2_miniAOD_94XFall17 | run2_miniAOD_UL)
_run2_miniAOD_ANY.toReplaceWith(
process.makePatTausTask, _makePatTausTaskWithDeadECalVeto
)

#-- Adding customization for 80X 2016 legacy reMiniAOD and 2018 heavy ions
_makePatTausTaskWithTauReReco = process.makePatTausTask.copy()
_makePatTausTaskWithTauReReco.add(process.PFTauTask)
Expand All @@ -388,7 +399,6 @@ def miniAOD_customizeCommon(process):
from Configuration.Eras.Modifier_pA_2016_cff import pA_2016
_rerun_puppijets_task = task.copy()
_rerun_puppijets_task.add(process.puppi, process.ak4PFJetsPuppi)
_run2_miniAOD_ANY = (run2_miniAOD_80XLegacy | run2_miniAOD_94XFall17 | run2_miniAOD_UL)
(_run2_miniAOD_ANY | pA_2016 | pp_on_AA_2018).toReplaceWith(task, _rerun_puppijets_task)

from RecoJets.JetAssociationProducers.j2tParametersVX_cfi import j2tParametersVX
Expand Down

0 comments on commit 19e4136

Please sign in to comment.