From 8a7bfae7201f08919ca2bfedc97db7f16bcb8ca7 Mon Sep 17 00:00:00 2001
From: Bill Balunas <bill.balunas@cern.ch>
Date: Wed, 9 Dec 2020 17:31:02 +0100
Subject: [PATCH] Correct jet handling with very greedy photons

---
 Reconstruction/MET/METUtilities/Root/METMaker.cxx | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Reconstruction/MET/METUtilities/Root/METMaker.cxx b/Reconstruction/MET/METUtilities/Root/METMaker.cxx
index 15a9cec1b811..82d2fa72277b 100644
--- a/Reconstruction/MET/METUtilities/Root/METMaker.cxx
+++ b/Reconstruction/MET/METUtilities/Root/METMaker.cxx
@@ -636,6 +636,10 @@ namespace met {
               ATH_MSG_VERBOSE("  Jet overlaps with " << object->type() << " " << object->index() 
                            << " with pt " << object->pt() << ", phi " << object->phi() );
             }
+
+            // Correctly handle this jet if we're using very greedy photons
+            if (object && object->type() == xAOD::Type::Photon && m_veryGreedyPhotons) hardJet = true;
+
           }
         }
 
-- 
GitLab