From f31374662ae5a25d20c8c1f849bf545418aadc46 Mon Sep 17 00:00:00 2001
From: Rosen Matev <rosen.matev@cern.ch>
Date: Thu, 6 Jul 2017 14:52:42 +0200
Subject: [PATCH] Make the SelReportsWriter use the TCK, needs lhcb/LHCb!767

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

diff --git a/Phys/Tesla/python/Tesla/Configuration.py b/Phys/Tesla/python/Tesla/Configuration.py
index bb19849b1..36cef3e52 100644
--- a/Phys/Tesla/python/Tesla/Configuration.py
+++ b/Phys/Tesla/python/Tesla/Configuration.py
@@ -1023,6 +1023,8 @@ class Tesla(LHCbConfigurableUser):
             from DAQSys.Decoders import DecoderDB
             selreports_decoder = DecoderDB['HltSelReportsDecoder/Hlt2SelReportsDecoder']
             selreports_loc = selreports_decoder.Outputs['OutputHltSelReportsLocation']
+            decreports_decoder = DecoderDB['HltDecReportsDecoder/Hlt2DecReportsDecoder']
+            decreports_loc = decreports_decoder.Outputs['OutputHltDecReportsLocation']
 
             # By the time the stripper runs Hlt2/SelReports should exist
             stripper = HltSelReportsStripper('Hlt2SelReportsStripper')
@@ -1038,6 +1040,9 @@ class Tesla(LHCbConfigurableUser):
             writer.SourceID = 2
             writer.InputHltSelReportsLocation = str(stripper.OutputHltSelReportsLocation)
             writer.OutputLevel = self.getProp('OutputLevel')
+            # By the time the stripper runs Hlt2/DecReports should exist
+            writer.UseTCK = True  # use the TCKANNSvc for converting names to numbers
+            writer.InputHltDecReportsLocation = decreports_loc
             kill_seq.Members.append(writer)
 
         return kill_seq
-- 
GitLab