From 80d25bb22a4ec4ea798669c33307136ce1785154 Mon Sep 17 00:00:00 2001 From: Nurfikri Norjoharuddeen Date: Wed, 14 Feb 2024 22:27:42 +0100 Subject: [PATCH] Add charged+neutral EM energy fraction for CorrT1METJet --- PhysicsTools/NanoAOD/python/jetsAK4_CHS_cff.py | 1 + PhysicsTools/NanoAOD/python/jetsAK4_Puppi_cff.py | 1 + PhysicsTools/NanoAOD/python/nanoDQM_cfi.py | 1 + 3 files changed, 3 insertions(+) diff --git a/PhysicsTools/NanoAOD/python/jetsAK4_CHS_cff.py b/PhysicsTools/NanoAOD/python/jetsAK4_CHS_cff.py index 49818f80bd811..fffe94aec8493 100644 --- a/PhysicsTools/NanoAOD/python/jetsAK4_CHS_cff.py +++ b/PhysicsTools/NanoAOD/python/jetsAK4_CHS_cff.py @@ -518,6 +518,7 @@ def nanoAOD_refineFastSim_bTagDeepFlav(process): eta = Var("eta", float,precision=12), phi = Var("phi", float, precision=12), area = Var("jetArea()", float, doc="jet catchment area, for JECs",precision=10), + EmEF = Var("chargedEmEnergyFraction()+neutralEmEnergyFraction()", float, doc="charged+neutral Electromagnetic Energy Fraction", precision=6), ) ) diff --git a/PhysicsTools/NanoAOD/python/jetsAK4_Puppi_cff.py b/PhysicsTools/NanoAOD/python/jetsAK4_Puppi_cff.py index 9ca6530aea4d3..5c4673adbe732 100644 --- a/PhysicsTools/NanoAOD/python/jetsAK4_Puppi_cff.py +++ b/PhysicsTools/NanoAOD/python/jetsAK4_Puppi_cff.py @@ -232,6 +232,7 @@ def nanoAOD_addDeepInfoAK4(process,addParticleNet,addRobustParTAK4=False): eta = Var("eta", float,precision=12), phi = Var("phi", float, precision=12), area = Var("jetArea()", float, doc="jet catchment area, for JECs",precision=10), + EmEF = Var("chargedEmEnergyFraction()+neutralEmEnergyFraction()", float, doc="charged+neutral Electromagnetic Energy Fraction", precision=6), ) ) diff --git a/PhysicsTools/NanoAOD/python/nanoDQM_cfi.py b/PhysicsTools/NanoAOD/python/nanoDQM_cfi.py index d57280f9d31a7..f81dd3f65004a 100644 --- a/PhysicsTools/NanoAOD/python/nanoDQM_cfi.py +++ b/PhysicsTools/NanoAOD/python/nanoDQM_cfi.py @@ -30,6 +30,7 @@ Plot1D('muonSubtrFactor', 'muonSubtrFactor', 20, 0, 1, '1-(muon-subtracted raw pt)/(raw pt)'), Plot1D('phi', 'phi', 20, -3.14159, 3.14159, 'phi'), Plot1D('rawPt', 'rawPt', 20, 5, 25, "pt()*jecFactor('Uncorrected')"), + Plot1D('EmEF', 'EmEF', 20, 0., 1., "charged+neutral Electromagnetic Energy Fraction"), ) ), DeepMETResolutionTune = cms.PSet(