diff --git a/algo/detectors/sts/Hitfinder.h b/algo/detectors/sts/Hitfinder.h index 69d8828ec9ef05d58b5600134ab03ddac03e5b80..b7ef99499e7a39b5567d30b9648b866b7a048488 100644 --- a/algo/detectors/sts/Hitfinder.h +++ b/algo/detectors/sts/Hitfinder.h @@ -114,8 +114,6 @@ namespace cbm::algo::sts struct HitfinderMonDevice { i32 nClusterBucketOverflow; i32 nHitBucketOverflow; - u64 nClusterTotal; - u64 nHitsTotal; bool HasErrors() const { return nClusterBucketOverflow > 0 || nHitBucketOverflow > 0; } }; diff --git a/algo/detectors/sts/HitfinderChain.cxx b/algo/detectors/sts/HitfinderChain.cxx index 41aa192ddea4727afc71bc923341f28b25c471db..27b6930658c6b9241fe9083eb90a670ad1fe688b 100644 --- a/algo/detectors/sts/HitfinderChain.cxx +++ b/algo/detectors/sts/HitfinderChain.cxx @@ -179,7 +179,6 @@ sts::HitfinderChain::Result sts::HitfinderChain::operator()(gsl::span<const CbmS size_t nClustersTotal = std::accumulate(nClusters.begin(), nClusters.end(), 0); xpu::k_add_bytes<SortClusters>(nClustersTotal * sizeof(ClusterIdx)); - size_t nClustersFront = std::accumulate(nClusters.begin(), nClusters.begin() + nModules, 0); // FindHits supports to modes of parallelization: One thread per cluster or one block per module @@ -252,6 +251,8 @@ sts::HitfinderChain::Result sts::HitfinderChain::operator()(gsl::span<const CbmS result.hits = std::move(hits); result.clusters = std::move(clusters); + result.monitor.nClusterTotal = nClustersTotal; + result.monitor.nHitsTotal = result.hits.NElements(); result.monitor.SetDeviceMon(monitor[0]); return result; } diff --git a/algo/detectors/sts/HitfinderChain.h b/algo/detectors/sts/HitfinderChain.h index d63a8ca57122c93c56efa7c9321cfc7e7dc8dda2..de9c80a8752bdf389b121c21bd56e514040c539d 100644 --- a/algo/detectors/sts/HitfinderChain.h +++ b/algo/detectors/sts/HitfinderChain.h @@ -26,6 +26,8 @@ namespace cbm::algo::sts { struct HitfinderMon : HitfinderMonDevice { + u64 nClusterTotal; + u64 nHitsTotal; xpu::timings time; void SetDeviceMon(const HitfinderMonDevice& devMon) { HitfinderMonDevice::operator=(devMon); }