From 51e7714036d741299651a0c36d3ef559d9bbacfd Mon Sep 17 00:00:00 2001
From: fernando <Fernando.Monticelli@cern.ch>
Date: Thu, 10 Oct 2019 17:41:26 +0200
Subject: [PATCH] Updated flags conditions

---
 .../egamma/egammaAlgs/src/topoEgammaBuilder.cxx        | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/Reconstruction/egamma/egammaAlgs/src/topoEgammaBuilder.cxx b/Reconstruction/egamma/egammaAlgs/src/topoEgammaBuilder.cxx
index 6d620a797df..b78551c7253 100644
--- a/Reconstruction/egamma/egammaAlgs/src/topoEgammaBuilder.cxx
+++ b/Reconstruction/egamma/egammaAlgs/src/topoEgammaBuilder.cxx
@@ -223,12 +223,10 @@ StatusCode topoEgammaBuilder::execute(const EventContext& ctx) const{
         return StatusCode::FAILURE;
     }
     
-    if ( m_doElectrons && m_doPhotons){
-	ATH_MSG_DEBUG("Calling egammaTools: " );
-	for (auto& tool : m_egammaTools){
-	    ATH_MSG_DEBUG("Calling tool " << tool );
-	    CHECK( CallTool(ctx, tool, electronContainer.ptr(), photonContainer.ptr()) );
-	}
+    ATH_MSG_DEBUG("Calling egammaTools: " );
+    for (auto& tool : m_egammaTools){
+	ATH_MSG_DEBUG("Calling tool " << tool );
+	CHECK( CallTool(ctx, tool, electronContainer.ptr(), photonContainer.ptr()) );
     }
 
     if ( m_doElectrons ){
-- 
GitLab