From f4d552b09d96bdcc44fb231f52d528f34fc8f901 Mon Sep 17 00:00:00 2001
From: Felix Weiglhofer <weiglhofer@fias.uni-frankfurt.de>
Date: Mon, 5 Feb 2024 15:45:39 +0000
Subject: [PATCH] online: Fix copy in sts hitfinder.

---
 algo/detectors/sts/HitfinderChain.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/algo/detectors/sts/HitfinderChain.cxx b/algo/detectors/sts/HitfinderChain.cxx
index 03d63a8981..c96b3f2dca 100644
--- a/algo/detectors/sts/HitfinderChain.cxx
+++ b/algo/detectors/sts/HitfinderChain.cxx
@@ -292,7 +292,7 @@ void sts::HitfinderChain::AllocateStatic()
   fHitfinder.landauTableSize = nLandauTableEntries;
   fHitfinder.landauStepSize  = fPars->setup.landauTable.stepSize;
   fHitfinder.landauTable.reset(nLandauTableEntries, xpu::buf_io);
-  q.copy(fPars->setup.landauTable.values.data(), fHitfinder.landauTable.get(), nLandauTableEntries * sizeof(float));
+  q.copy(fPars->setup.landauTable.values.data(), fHitfinder.landauTable.get(), nLandauTableEntries);
 
   // Copy transformation matrix
   fHitfinder.localToGlobalRotationByModule.reset(9 * nModules, xpu::buf_io);
-- 
GitLab