From 82e97c739a70ff873977111f54918c60f2e0d978 Mon Sep 17 00:00:00 2001
From: Dominik Smith <smith@th.physik.uni-frankfurt.de>
Date: Mon, 26 Jun 2023 15:09:50 +0200
Subject: [PATCH] Updated STS parameters for 2022 runs in cbm::algo.

---
 algo/detectors/sts/StsReadoutConfigLegacy.cxx | 6 +++---
 algo/params/StsReadout.yaml                   | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/algo/detectors/sts/StsReadoutConfigLegacy.cxx b/algo/detectors/sts/StsReadoutConfigLegacy.cxx
index 1cd4078a5f..6be81684e2 100644
--- a/algo/detectors/sts/StsReadoutConfigLegacy.cxx
+++ b/algo/detectors/sts/StsReadoutConfigLegacy.cxx
@@ -64,8 +64,8 @@ namespace cbm::algo
   void StsReadoutConfigLegacy::Init()
   {
 
-    // This here refers to the mCBM 2021 setup.
-    // Taken from CbmMcbm2018StsPar in combination with macro/beamtime/mcbm2021/mSts.par
+    // This here refers to the mCBM 2022 setup.
+    // Taken from CbmMcbm2018StsPar in combination with macro/beamtime/mcbm2022/mSts.par
 
     // The readout hierarchy is: component - CROB - FEB - ASIC (elink). Each elink
     // connects one ASIC. One FEB comprises 8 ASICs and reads out one side of a module (sensor).
@@ -84,7 +84,7 @@ namespace cbm::algo
 
     // Equipment IDs for each component
     // This number is written to the data stream (MicrosliceDescriptor).
-    uint16_t eqId[numComp] = {0x1003, 0x1002, 0x1006, 0x1005, 0x1004};
+    uint16_t eqId[numComp] = {0x1003, 0x1002, 0x1006, 0x1004, 0x1005};
 
     // Mapping of eLink to FEB number within CROB. If -1, elink not used.
     // This mapping is the same for each component.
diff --git a/algo/params/StsReadout.yaml b/algo/params/StsReadout.yaml
index 0e5dc63e60..edfb545ecb 100644
--- a/algo/params/StsReadout.yaml
+++ b/algo/params/StsReadout.yaml
@@ -18,8 +18,8 @@ components:
   - {equipmentId: 0x1003, feb2module: [[-1, 1, 1, 0, 0]], feb2moduleSide: [[-1, 1, 0, 1, 0]], febIsPulser: [[n, n, n, n, n]]}
   - {equipmentId: 0x1002, feb2module: [[4, 3, 3, 2, 2]], feb2moduleSide: [[1, 1, 0, 1, 0]], febIsPulser: [[y, n, n, n, n]]}
   - {equipmentId: 0x1006, feb2module: [[7, 6, 6, 5, 5]], feb2moduleSide: [[1, 1, 0, 1, 0]], febIsPulser: [[y, n, n, n, n]]}
-  - {equipmentId: 0x1005, feb2module: [[10, 9, 9, 8, 8]], feb2moduleSide: [[0, 1, 0, 1, 0]], febIsPulser: [[n, n, n, n, n]]}
-  - {equipmentId: 0x1004, feb2module: [[12, 12, 11, 11, 10]], feb2moduleSide: [[1, 0, 1, 0, 1]], febIsPulser: [[n, n, n, n, n]]}
+  - {equipmentId: 0x1004, feb2module: [[10, 9, 9, 8, 8]], feb2moduleSide: [[0, 1, 0, 1, 0]], febIsPulser: [[n, n, n, n, n]]}
+  - {equipmentId: 0x1005, feb2module: [[12, 12, 11, 11, 10]], feb2moduleSide: [[1, 0, 1, 0, 1]], febIsPulser: [[n, n, n, n, n]]}
 elinks:
   - {toFeb: 4, toAsicFebA: 0x21, toAsicFebB: 0x27}
   - {toFeb: 4, toAsicFebA: 0x23, toAsicFebB: 0x25}
-- 
GitLab