From b3a99a405a5d0940985c1ae1c768b780d963f536 Mon Sep 17 00:00:00 2001 From: Michal Bluj Date: Fri, 5 Apr 2024 18:50:56 +0200 Subject: [PATCH] Add base lepton time-life info to main sequence while track parameters keep as customization --- PhysicsTools/NanoAOD/python/autoNANO.py | 6 +++--- PhysicsTools/NanoAOD/python/nano_cff.py | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/PhysicsTools/NanoAOD/python/autoNANO.py b/PhysicsTools/NanoAOD/python/autoNANO.py index 33dd0558a1991..7f76a6172cd8f 100644 --- a/PhysicsTools/NanoAOD/python/autoNANO.py +++ b/PhysicsTools/NanoAOD/python/autoNANO.py @@ -41,7 +41,7 @@ def expandNanoMapping(seqList, mapping, key): # PromptReco config: PHYS+L1 'Prompt' : {'sequence': '@PHYS', 'customize': '@PHYS+@L1'}, - # Add lepton time-life info tables through customize combined with PHYS - 'LepTimeLife' : {'sequence': '@PHYS', - 'customize': '@PHYS+PhysicsTools/NanoAOD/leptonTimeLifeInfo_common_cff.addTimeLifeInfo'}, + # Add lepton track parameters through customize combined with PHYS + 'LepTrackInfo' : {'sequence': '@PHYS', + 'customize': '@PHYS+PhysicsTools/NanoAOD/leptonTimeLifeInfo_common_cff.addTrackVarsToTimeLifeInfo'}, } diff --git a/PhysicsTools/NanoAOD/python/nano_cff.py b/PhysicsTools/NanoAOD/python/nano_cff.py index 515c0c75d066a..f38bf2dd77089 100644 --- a/PhysicsTools/NanoAOD/python/nano_cff.py +++ b/PhysicsTools/NanoAOD/python/nano_cff.py @@ -265,6 +265,10 @@ def nanoAOD_customizeCommon(process): process, lambda p : nanoAOD_addBoostedTauIds(p, nanoAOD_boostedTau_switch.idsToAdd.value()) ) + # Add lepton time-life info + from PhysicsTools.NanoAOD.leptonTimeLifeInfo_common_cff import addTimeLifeInfoBase + process = addTimeLifeInfoBase(process) + return process ###increasing the precision of selected GenParticles.