Skip to content

Commit

Permalink
Rerun anti-e-in-deadECal tauID for run2_miniAOD_UL era and remove it …
Browse files Browse the repository at this point in the history
…from tauID list (both for taus in miniAOD)
  • Loading branch information
mbluj committed Aug 4, 2020
1 parent 37a05c6 commit 7a81e2c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions PhysicsTools/PatAlgos/python/slimming/miniAOD_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,28 @@ def miniAOD_customizeCommon(process):
process.rerunDiscriminationByIsolationMVADBnewDMwLTPhase2.PATTauProducer=_noUpdatedTauName
task.add(process.rerunIsolationMVADBnewDMwLTPhase2Task)

#-- Rerun tauID against dead ECal towers to taus for the run2_miniAOD_UL era
# to enable default behoviour with leading track extrapolation to ECAL
_makePatTausTaskWithDeadECalVeto = process.makePatTausTask.copy()
_makePatTausTaskWithDeadECalVeto.add(
process.hpsPFTauDiscriminationByDeadECALElectronRejection
)
run2_miniAOD_UL.toReplaceWith(
process.makePatTausTask, _makePatTausTaskWithDeadECalVeto
)
#... and remove this tauID for other eras from list of sources to preserve
# an original setup
_withoutDeadEcalTauIDPs = process.patTaus.tauIDSources.clone()
del _withoutDeadEcalTauIDPs.againstElectronDeadECAL
(run2_miniAOD_80XLegacy | run2_miniAOD_94XFall17).toModify(
process.patTaus, tauIDSources = _withoutDeadEcalTauIDPs
)
_withoutDeadEcalTauIDBoostedPs = process.patTausBoosted.tauIDSources.clone()
del _withoutDeadEcalTauIDBoostedPs.againstElectronDeadECAL
(run2_miniAOD_80XLegacy | run2_miniAOD_94XFall17).toModify(
process.patTausBoosted, tauIDSources = _withoutDeadEcalTauIDBoostedPs
)

#-- Adding customization for 80X 2016 legacy reMiniAOD and 2018 heavy ions
_makePatTausTaskWithTauReReco = process.makePatTausTask.copy()
_makePatTausTaskWithTauReReco.add(process.PFTauTask)
Expand Down

0 comments on commit 7a81e2c

Please sign in to comment.