diff --git a/RecoTracker/LSTCore/src/LSTESData.cc b/RecoTracker/LSTCore/src/LSTESData.cc index 36c11ea59a711..9079d0d229216 100644 --- a/RecoTracker/LSTCore/src/LSTESData.cc +++ b/RecoTracker/LSTCore/src/LSTESData.cc @@ -91,10 +91,10 @@ std::unique_ptr> lst::loadAndFillESHost() EndcapGeometryBuffer(cms::alpakatools::host(), endcapGeometry.nEndCapMap); std::memcpy(alpaka::getPtrNative(endcapGeometryBuffers.geoMapDetId_buf), endcapGeometry.geoMapDetId_buf.data(), - endcapGeometry.nEndCapMap); + endcapGeometry.nEndCapMap * sizeof(unsigned int)); std::memcpy(alpaka::getPtrNative(endcapGeometryBuffers.geoMapPhi_buf), endcapGeometry.geoMapPhi_buf.data(), - endcapGeometry.nEndCapMap); + endcapGeometry.nEndCapMap * sizeof(float)); auto path = get_absolute_path_after_check_file_exists(trackLooperDir() + "/data/OT800_IT615_pt0.8/sensor_centroids.bin");