From beca5e9b19e42fdc03e0800d38d8bbff93500947 Mon Sep 17 00:00:00 2001
From: Markus Frank <Markus.Frank@cern.ch>
Date: Fri, 18 Mar 2022 21:25:10 +0100
Subject: [PATCH] Test

---
 Online/FarmConfig/job/Passthrough.py                       | 3 ++-
 Online/GaudiOnline/python/GaudiOnline/OnlineApplication.py | 6 ++++++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/Online/FarmConfig/job/Passthrough.py b/Online/FarmConfig/job/Passthrough.py
index 03c0c231e..a1ef5393a 100644
--- a/Online/FarmConfig/job/Passthrough.py
+++ b/Online/FarmConfig/job/Passthrough.py
@@ -79,7 +79,8 @@ if os.getenv("MBM_numConnections"):
   application.config.MBM_numConnections  = int(os.getenv("MBM_numConnections"))
 if os.getenv("MBM_numEventThreads"):
   application.config.MBM_numEventThreads = int(os.getenv("MBM_numEventThreads"))
-  
+
+application.enableUI()  
 #
 # Enable this for debugging
 #
diff --git a/Online/GaudiOnline/python/GaudiOnline/OnlineApplication.py b/Online/GaudiOnline/python/GaudiOnline/OnlineApplication.py
index 197e6dc62..ca49fdaba 100644
--- a/Online/GaudiOnline/python/GaudiOnline/OnlineApplication.py
+++ b/Online/GaudiOnline/python/GaudiOnline/OnlineApplication.py
@@ -126,6 +126,12 @@ class Application(object):
     ##config.events_HighMark      = 180
     self.log                    = fifo_log.logger_print
 
+  def enableUI(self):
+    print('ALWAYS  +++ Enable UI service')
+    self.ui = Configurables.Online__OnlineUISvc()
+    self.app.ExtSvc.append(self.ui)
+    return self
+
   def setup_fifolog(self, format='%-8LEVEL %-24SOURCE', device='fifo'):
     import fifo_log
     self.config.logDeviceType   = device
-- 
GitLab