From 033fc8c22a7495a3ec6d9348b97d853cb832669e Mon Sep 17 00:00:00 2001
From: Vakho Tsulaia <vakhtang.tsulaia@cern.ch>
Date: Mon, 5 Dec 2022 23:32:37 +0100
Subject: [PATCH] emulateSC_Cfg(): add configuration of the
 CaloSuperCellAlignCondAlg

This function is used for emulating supercells, so, logically, we should
also make sure it configures the CaloSuperCellAlignCondAlg
---
 .../L1CaloFEX/L1CaloFEXSim/share/L1CaloFEXSimCfg_R2data.ref    | 1 +
 Trigger/TrigT1/TrigT1CaloFexPerf/python/EmulationConfig.py     | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/Trigger/TrigT1/L1CaloFEX/L1CaloFEXSim/share/L1CaloFEXSimCfg_R2data.ref b/Trigger/TrigT1/L1CaloFEX/L1CaloFEXSim/share/L1CaloFEXSimCfg_R2data.ref
index d2abcddba8d0..c6f71ea8f239 100644
--- a/Trigger/TrigT1/L1CaloFEX/L1CaloFEXSim/share/L1CaloFEXSimCfg_R2data.ref
+++ b/Trigger/TrigT1/L1CaloFEX/L1CaloFEXSim/share/L1CaloFEXSimCfg_R2data.ref
@@ -44,6 +44,7 @@ ApplicationMgr                                               0 SUCCESS
 ApplicationMgr                                               0 SUCCESS                     CaloBCIDLumiCondAlg/CaloBCIDLumiCondAlg
 ApplicationMgr                                               0 SUCCESS                     CaloNoiseCondAlg/Calo_electronicNoiseAlg
 ApplicationMgr                                               0 SUCCESS                     CaloNoiseSigmaDiffCondAlg/CaloNoiseSigmaDiffCondAlg
+ApplicationMgr                                               0 SUCCESS                     CaloSuperCellAlignCondAlg/CaloSuperCellAlignCondAlg
 ApplicationMgr                                               0 SUCCESS           AthSequencer/AthEndSeq
 ApplicationMgr                                               0 SUCCESS                AthIncFirerAlg/EndIncFiringAlg
 ApplicationMgr                                               0 SUCCESS                IncidentProcAlg/IncidentProcAlg2
diff --git a/Trigger/TrigT1/TrigT1CaloFexPerf/python/EmulationConfig.py b/Trigger/TrigT1/TrigT1CaloFexPerf/python/EmulationConfig.py
index b768905deea7..c45f6fa05d76 100644
--- a/Trigger/TrigT1/TrigT1CaloFexPerf/python/EmulationConfig.py
+++ b/Trigger/TrigT1/TrigT1CaloFexPerf/python/EmulationConfig.py
@@ -84,4 +84,7 @@ def emulateSC_Cfg(flags, CellsIn="SeedLessFS", SCOut="EmulatedSCell"):
     #The default input to LARSuperCellBCIDEmAlg (which applies the BCID correction) is the same: SCellContainer
         acc.merge(LArSuperCellBCIDEmAlgCfg(flags, **larSCargs))
 
+    # Given this function emulates supercells, we should also configure the supercell alignment Cond alg
+    acc.addCondAlgo(CompFactory.CaloSuperCellAlignCondAlg())
+
     return acc
-- 
GitLab