From 759145510ddf6a2c819bb7470e85b607d384c6d6 Mon Sep 17 00:00:00 2001
From: Debo <debottam.bakshi.gupta@cern.ch>
Date: Tue, 29 Sep 2020 08:56:24 +0200
Subject: [PATCH] making combohypo more inclusive

---
 .../TrigEgammaHypo/src/TrigEgammaDiphotonDPhiHypoTool.cxx     | 4 ++--
 .../TrigEgammaHypo/src/TrigEgammaDiphotonDPhiHypoTool.h       | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Trigger/TrigHypothesis/TrigEgammaHypo/src/TrigEgammaDiphotonDPhiHypoTool.cxx b/Trigger/TrigHypothesis/TrigEgammaHypo/src/TrigEgammaDiphotonDPhiHypoTool.cxx
index 64aa3528d611..4996af7b514c 100644
--- a/Trigger/TrigHypothesis/TrigEgammaHypo/src/TrigEgammaDiphotonDPhiHypoTool.cxx
+++ b/Trigger/TrigHypothesis/TrigEgammaHypo/src/TrigEgammaDiphotonDPhiHypoTool.cxx
@@ -42,10 +42,10 @@ StatusCode TrigEgammaDiphotonDPhiHypoTool::initialize()
 bool TrigEgammaDiphotonDPhiHypoTool::executeAlg(std::vector<LegDecision> &combination) const {
 
 //retrieve the electrons 
-  std::vector<ElementLink<xAOD::EgammaContainer>> selected_photons;
+  std::vector<ElementLink<xAOD::IParticleContainer>> selected_photons;
   for (auto el: combination){
     auto EL= el.second;    
-    auto photonLink = TrigCompositeUtils::findLink<xAOD::EgammaContainer>( *EL, featureString() ).link;
+    auto photonLink = TrigCompositeUtils::findLink<xAOD::IParticleContainer>( *EL, featureString() ).link;
     selected_photons.push_back(photonLink);
   }
   auto photonLink1=selected_photons[0];
diff --git a/Trigger/TrigHypothesis/TrigEgammaHypo/src/TrigEgammaDiphotonDPhiHypoTool.h b/Trigger/TrigHypothesis/TrigEgammaHypo/src/TrigEgammaDiphotonDPhiHypoTool.h
index c3c45cc5998f..3a16342ae085 100644
--- a/Trigger/TrigHypothesis/TrigEgammaHypo/src/TrigEgammaDiphotonDPhiHypoTool.h
+++ b/Trigger/TrigHypothesis/TrigEgammaHypo/src/TrigEgammaDiphotonDPhiHypoTool.h
@@ -25,6 +25,7 @@
 #include "xAODTrigEgamma/TrigPhoton.h"
 #include "xAODEgamma/PhotonContainer.h"
 #include "xAODEgamma/EgammaContainer.h"
+#include "xAODBase/IParticleContainer.h"
 
 #include "TrigCompositeUtils/HLTIdentifier.h"
 #include "TrigCompositeUtils/TrigCompositeUtils.h"
-- 
GitLab