Changed rounding in the cluster finder to use lround to ensure the result is an integer
Some checks failed
Build on RHEL8 / build (push) Failing after 3m26s
Build on RHEL9 / build (push) Failing after 3m52s

This commit is contained in:
2026-01-20 16:48:11 +01:00
parent 7bee7db692
commit 10483393ee

View File

@@ -163,7 +163,7 @@ class ClusterFinder {
// If the cluster type is an integral type, then we need to round the value before storing it
if constexpr(std::is_integral<CT>::value) {
auto tmp = std::round(frame(iy + ir, ix + ic) - m_pedestal.mean(iy + ir, ix + ic));
auto tmp = std::lround(frame(iy + ir, ix + ic) - m_pedestal.mean(iy + ir, ix + ic));
cluster.data[i] = static_cast<CT>(tmp);
}
// On the other hand if it's a floating point type we can just static cast directly