From 284f07de96584b37c06c15861bfe5574a254c118 Mon Sep 17 00:00:00 2001
From: Felix Weiglhofer <weiglhofer@fias.uni-frankfurt.de>
Date: Mon, 10 Jul 2023 14:19:32 +0000
Subject: [PATCH] algo::Unpack: Unpack MUCH in parallel.

---
 algo/unpack/Unpack.cxx | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/algo/unpack/Unpack.cxx b/algo/unpack/Unpack.cxx
index 4d7db0822b..f3d4a6f5d3 100644
--- a/algo/unpack/Unpack.cxx
+++ b/algo/unpack/Unpack.cxx
@@ -39,6 +39,10 @@ namespace cbm::algo
       ParallelMsLoop(Subsystem::BMON, digiTs.fData.fT0.fDigis, monitor.fBmon, *timeslice, fAlgoBmon, 0x00);
     }
 
+    if (DetectorEnabled(Subsystem::MUCH)) {
+      ParallelMsLoop(Subsystem::MUCH, digiTs.fData.fMuch.fDigis, monitor.fMuch, *timeslice, fAlgoMuch, 0x20);
+    }
+
     // ---  Component loop
     for (uint64_t comp = 0; comp < timeslice->num_components(); comp++) {
 
@@ -61,9 +65,9 @@ namespace cbm::algo
       // if (subsystem == Subsystem::STS) {
       //   MsLoop(timeslice, fAlgoSts, comp, equipmentId, &digiTs.fData.fSts.fDigis, monitor, &monitor.fSts, 0x20);
       // }
-      if (subsystem == Subsystem::MUCH) {
-        MsLoop(timeslice, fAlgoMuch, comp, equipmentId, &digiTs.fData.fMuch.fDigis, monitor, &monitor.fMuch, 0x20);
-      }
+      // if (subsystem == Subsystem::MUCH) {
+      //   MsLoop(timeslice, fAlgoMuch, comp, equipmentId, &digiTs.fData.fMuch.fDigis, monitor, &monitor.fMuch, 0x20);
+      // }
       // if (subsystem == Subsystem::TOF) {
       //   MsLoop(timeslice, fAlgoTof, comp, equipmentId, &digiTs.fData.fTof.fDigis, monitor, &monitor.fTof, 0x00);
       // }
-- 
GitLab