From e4cbd0fafa90eb6396f1d4b5e618d68fe29c7982 Mon Sep 17 00:00:00 2001
From: "s.zharko@gsi.de" <s.zharko@gsi.de>
Date: Sun, 9 Feb 2025 15:48:30 +0100
Subject: [PATCH] online: BMON hitfinder

---
 algo/global/Reco.cxx | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/algo/global/Reco.cxx b/algo/global/Reco.cxx
index 8460ea28b..087fbe575 100644
--- a/algo/global/Reco.cxx
+++ b/algo/global/Reco.cxx
@@ -396,6 +396,8 @@ RecoResults Reco::Run(const fles::Timeslice& ts)
     // ***** DEBUG: BEGIN
     if constexpr (0) {
       int nEvents = events.size();
+      size_t nBmonHitsOneChannel{0};
+      size_t nBmonHitsTwoChannels{0};
       for (int iE = 0; iE < nEvents; ++iE) {
         const auto& event = events[iE];
         // Calibrate TOF digis:
@@ -408,6 +410,8 @@ RecoResults Reco::Run(const fles::Timeslice& ts)
           fBmonHitFinderQa->Exec();
         }
       }
+      L_(info) << "!!!! BMON hits with two channels: " << nBmonHitsTwoChannels << " / "
+               << (nBmonHitsTwoChannels + nBmonHitsOneChannel);
     }
     // ***** DEBUG: END
 
-- 
GitLab