From e5e8603c636c54631e960122c29f7f0576f69c7a Mon Sep 17 00:00:00 2001
From: Attila Krasznahorkay <Attila.Krasznahorkay@cern.ch>
Date: Mon, 3 Sep 2018 10:10:53 +0200
Subject: [PATCH] Fixed the jobO to use the correct tool names for
 RoIBResultToxAOD.

Turns out that the code was referring to invalid tool names since years.
It was just working because of another bug in the AnalysisTriggerAlgs python code.
---
 .../TrigTier0/share/BStoESD_Tier0_HLTConfig_jobOptions.py  | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/Trigger/TriggerCommon/TrigTier0/share/BStoESD_Tier0_HLTConfig_jobOptions.py b/Trigger/TriggerCommon/TrigTier0/share/BStoESD_Tier0_HLTConfig_jobOptions.py
index 06ff151fae2..86fd3414b3d 100644
--- a/Trigger/TriggerCommon/TrigTier0/share/BStoESD_Tier0_HLTConfig_jobOptions.py
+++ b/Trigger/TriggerCommon/TrigTier0/share/BStoESD_Tier0_HLTConfig_jobOptions.py
@@ -95,11 +95,8 @@ if rec.doTrigger():
         from AnalysisTriggerAlgs.AnalysisTriggerAlgsConfig import RoIBResultToAOD
         a2 = RoIBResultToAOD("RoIBResultToAOD")
         a2.LVL1ConfigSvc="TrigConf::TrigConfigSvc/TrigConfigSvc"
-        a2.L1JetTools.LVL1ConfigSvc="TrigConf::TrigConfigSvc/TrigConfigSvc"
-        a2.L1EmTauTools.LVL1ConfigSvc="TrigConf::TrigConfigSvc/TrigConfigSvc"
-        #L1JetTools exists after we've created RoIBResultToAOD
-        ToolSvc.L1JetTools.LVL1ConfigSvc="TrigConf::TrigConfigSvc/TrigConfigSvc"
-        ToolSvc.L1EmTauTools.LVL1ConfigSvc="TrigConf::TrigConfigSvc/TrigConfigSvc"
+        a2.L1JEMJetTools.LVL1ConfigSvc="TrigConf::TrigConfigSvc/TrigConfigSvc"
+        a2.L1CPMTools.LVL1ConfigSvc="TrigConf::TrigConfigSvc/TrigConfigSvc"
 
         from TrigT1CaloSim.TrigT1CaloSimConf import LVL1__TriggerTowerMaker
         a4 = LVL1__TriggerTowerMaker("TriggerTowerMaker")
-- 
GitLab