From 93eb22a947d2cae80cc0a5bf011c4eb8dd0d8e39 Mon Sep 17 00:00:00 2001
From: Rosen Matev <rosen.matev@cern.ch>
Date: Mon, 26 Jun 2017 13:45:22 +0200
Subject: [PATCH] Protect writer AcceptAlgs for Offline mode

---
 Phys/Tesla/python/Tesla/Configuration.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Phys/Tesla/python/Tesla/Configuration.py b/Phys/Tesla/python/Tesla/Configuration.py
index c18bd2578..5aad5ac69 100644
--- a/Phys/Tesla/python/Tesla/Configuration.py
+++ b/Phys/Tesla/python/Tesla/Configuration.py
@@ -969,8 +969,9 @@ class Tesla(LHCbConfigurableUser):
         writer = OutputStream(namer(self.writerName))
         writer.ItemList = required_output_locations
         writer.OptItemList = optional_output_locations
-        # We should already have configured the lumiAlgs by now
-        writer.AcceptAlgs = ['LumiSeq', 'PhysFilter']
+        if self.getProp('Mode') == 'Online':
+            # We should already have configured the lumiAlgs by now
+            writer.AcceptAlgs += ['LumiSeq', 'PhysFilter']
         writer.RequireAlgs = [stream_seq]
         iohelper = IOHelper()
         iohelper.outStream(fname, writer, writeFSR=write_fsr)
-- 
GitLab