From 050ff78007085775ce72c2473a13768bf2a196ab Mon Sep 17 00:00:00 2001
From: Felix Weiglhofer <weiglhofer@fias.uni-frankfurt.de>
Date: Mon, 10 Jul 2023 14:00:27 +0000
Subject: [PATCH] Unpack: Unpack BMON 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 98543ee91f..4d7db0822b 100644
--- a/algo/unpack/Unpack.cxx
+++ b/algo/unpack/Unpack.cxx
@@ -35,6 +35,10 @@ namespace cbm::algo
       ParallelMsLoop(Subsystem::TOF, digiTs.fData.fTof.fDigis, monitor.fTof, *timeslice, fAlgoTof, 0x00);
     }
 
+    if (DetectorEnabled(Subsystem::BMON)) {
+      ParallelMsLoop(Subsystem::BMON, digiTs.fData.fT0.fDigis, monitor.fBmon, *timeslice, fAlgoBmon, 0x00);
+    }
+
     // ---  Component loop
     for (uint64_t comp = 0; comp < timeslice->num_components(); comp++) {
 
@@ -63,9 +67,9 @@ namespace cbm::algo
       // if (subsystem == Subsystem::TOF) {
       //   MsLoop(timeslice, fAlgoTof, comp, equipmentId, &digiTs.fData.fTof.fDigis, monitor, &monitor.fTof, 0x00);
       // }
-      if (subsystem == Subsystem::BMON) {
-        MsLoop(timeslice, fAlgoBmon, comp, equipmentId, &digiTs.fData.fT0.fDigis, monitor, &monitor.fBmon, 0x00);
-      }
+      // if (subsystem == Subsystem::BMON) {
+      //   MsLoop(timeslice, fAlgoBmon, comp, equipmentId, &digiTs.fData.fT0.fDigis, monitor, &monitor.fBmon, 0x00);
+      // }
       if (subsystem == Subsystem::TRD) {
         MsLoop(timeslice, fAlgoTrd, comp, equipmentId, &digiTs.fData.fTrd.fDigis, monitor, &monitor.fTrd, 0x01);
       }
-- 
GitLab