From 7720760bcd14cc373b58361fab59c380b00d0006 Mon Sep 17 00:00:00 2001
From: Norbert Herrmann <n.herrmann@physi.uni-heidelberg.de>
Date: Fri, 14 Aug 2020 13:21:00 +0200
Subject: [PATCH] added forgotten STAR2 mapping option

---
 fles/mcbm2018/unpacker/CbmMcbm2018UnpackerAlgoTof.cxx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/fles/mcbm2018/unpacker/CbmMcbm2018UnpackerAlgoTof.cxx b/fles/mcbm2018/unpacker/CbmMcbm2018UnpackerAlgoTof.cxx
index 44e90571c4..19c2de577f 100644
--- a/fles/mcbm2018/unpacker/CbmMcbm2018UnpackerAlgoTof.cxx
+++ b/fles/mcbm2018/unpacker/CbmMcbm2018UnpackerAlgoTof.cxx
@@ -381,7 +381,9 @@ Bool_t CbmMcbm2018UnpackerAlgoTof::InitParameters() {
             if (iSideMap == 0) iStrMap = 31 - iStr;
             switch (fviRpcSide[iGbtx]) {
               case 0:; break;
-              case 1:; break;
+              case 1:;
+                iRpcMap = 1 - iRpcMap; // swap counters
+              	break;
               case 2:
                 switch (iFeet) {
                   case 1:
-- 
GitLab