diff --git a/PhysicsTools/NanoAOD/python/nano_cff.py b/PhysicsTools/NanoAOD/python/nano_cff.py index f4b26699e939c..6256128a29015 100644 --- a/PhysicsTools/NanoAOD/python/nano_cff.py +++ b/PhysicsTools/NanoAOD/python/nano_cff.py @@ -121,10 +121,11 @@ def nanoAOD_addTauIds(process, idsToRun=[]): updatedTauName = "slimmedTausUpdated" tauIdEmbedder = tauIdConfig.TauIDEmbedder(process, debug = False, updatedTauName = updatedTauName, + postfix = "ForNano", toKeep = idsToRun) tauIdEmbedder.runTauID() _tauTask = patTauMVAIDsTask.copy() - _tauTask.add(process.rerunMvaIsolationTask) + _tauTask.add(process.rerunMvaIsolationTaskForNano) _tauTask.add(finalTaus) process.finalTaus.src = updatedTauName #remember to adjust the selection and tables with added IDs @@ -139,10 +140,10 @@ def nanoAOD_addBoostedTauIds(process, idsToRun=[]): boostedTauIdEmbedder = tauIdConfig.TauIDEmbedder(process, debug = False, originalTauName = "slimmedTausBoosted", updatedTauName = updatedBoostedTauName, - postfix = "Boosted", + postfix = "BoostedForNano", toKeep = idsToRun) boostedTauIdEmbedder.runTauID() - _boostedTauTask = process.rerunMvaIsolationTaskBoosted.copy() + _boostedTauTask = process.rerunMvaIsolationTaskBoostedForNano.copy() _boostedTauTask.add(getattr(process, updatedBoostedTauName)) _boostedTauTask.add(process.finalBoostedTaus) process.finalBoostedTaus.src = updatedBoostedTauName diff --git a/PhysicsTools/PatAlgos/python/slimming/miniAOD_tools.py b/PhysicsTools/PatAlgos/python/slimming/miniAOD_tools.py index 8285ff7efce38..f68e5bf3261d1 100644 --- a/PhysicsTools/PatAlgos/python/slimming/miniAOD_tools.py +++ b/PhysicsTools/PatAlgos/python/slimming/miniAOD_tools.py @@ -377,6 +377,7 @@ def _add_deepFlavour(process): process, debug = False, originalTauName = _noUpdatedTauName, updatedTauName = _updatedTauName, + postfix = 'ForMini', toKeep = ['deepTau2017v2p1','deepTau2018v2p5'] ) from Configuration.Eras.Modifier_phase2_common_cff import phase2_common #Phase2 Tau MVA @@ -386,8 +387,8 @@ def _add_deepFlavour(process): addToProcessAndTask(_noUpdatedTauName, process.slimmedTaus.clone(),process,task) delattr(process, 'slimmedTaus') process.slimmedTaus = getattr(process, _updatedTauName).clone() - process.rerunMvaIsolationTask.add(process.slimmedTaus) - task.add(process.rerunMvaIsolationTask) + process.rerunMvaIsolationTaskForMini.add(process.slimmedTaus) + task.add(process.rerunMvaIsolationTaskForMini) #-- Rerun tauID against dead ECal towers to taus for the various re-MiniAOD eras # to enable default behoviour with leading track extrapolation to ECAL