From b58c190088223d919078c93d4331ffe24ca0d25c Mon Sep 17 00:00:00 2001
From: Alexandre Laurier <alexandre.laurier@cern.ch>
Date: Tue, 20 Jul 2021 19:56:40 +0200
Subject: [PATCH] Correct sTGC SDO container name

---
 .../MuonRecExample/share/MuonRecOutputItemList_jobOptions.py  | 2 +-
 .../MuonTruthAlgs/src/DetailedMuonPatternTruthBuilder.cxx     | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/MuonSpectrometer/MuonReconstruction/MuonRecExample/share/MuonRecOutputItemList_jobOptions.py b/MuonSpectrometer/MuonReconstruction/MuonRecExample/share/MuonRecOutputItemList_jobOptions.py
index 20be4a64712d..ed50b6477aaf 100644
--- a/MuonSpectrometer/MuonReconstruction/MuonRecExample/share/MuonRecOutputItemList_jobOptions.py
+++ b/MuonSpectrometer/MuonReconstruction/MuonRecExample/share/MuonRecOutputItemList_jobOptions.py
@@ -107,7 +107,7 @@ if DetFlags.detdescr.Muon_on() and rec.doWriteESD():
          MuonESDList+=["MuonSimDataCollection#MDT_SDO"]
          MuonESDList+=["MuonSimDataCollection#RPC_SDO"]
          MuonESDList+=["MuonSimDataCollection#TGC_SDO"]
-         if MuonGeometryFlags.hasSTGC(): MuonESDList+=["MuonSimDataCollection#STGC_SDO"]
+         if MuonGeometryFlags.hasSTGC(): MuonESDList+=["MuonSimDataCollection#sTGC_SDO"]
          if MuonGeometryFlags.hasMM(): MuonESDList+=["MuonSimDataCollection#MM_SDO"]
 
    # commenting if-statement since mandatory for e.g. RPC calibration
diff --git a/MuonSpectrometer/MuonTruthAlgs/src/DetailedMuonPatternTruthBuilder.cxx b/MuonSpectrometer/MuonTruthAlgs/src/DetailedMuonPatternTruthBuilder.cxx
index 4993454fef51..c2804bd4cee2 100755
--- a/MuonSpectrometer/MuonTruthAlgs/src/DetailedMuonPatternTruthBuilder.cxx
+++ b/MuonSpectrometer/MuonTruthAlgs/src/DetailedMuonPatternTruthBuilder.cxx
@@ -504,10 +504,10 @@ namespace Trk {
                             << "MM_SDO");
             return Amg::Vector3D(0, 0, 0);
         }
-        const MuonSimDataCollection* stgcSimDataMap = retrieveTruthCollection("STGC_SDO");
+        const MuonSimDataCollection* stgcSimDataMap = retrieveTruthCollection("sTGC_SDO");
         if (!stgcSimDataMap) {
             ATH_MSG_WARNING(" failed to retrieve MuonSimDataCollection: "
-                            << "STGC_SDO");
+                            << "sTGC_SDO");
             return Amg::Vector3D(0, 0, 0);
         }
 
-- 
GitLab