From 9381cf5bdb42247e53ba1ef447ca2fbea09c005f Mon Sep 17 00:00:00 2001 From: swenzel Date: Thu, 16 Jul 2026 12:58:10 +0200 Subject: [PATCH] TPC addHits: remove short type limitation Change type from short to float to remove possible overflow errors There is no deep reason for this to be short in any case. The underlaying storage was already of type float. Fixes a problem observed in monopole simulations inside TPC --- Detectors/TPC/simulation/include/TPCSimulation/Point.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Detectors/TPC/simulation/include/TPCSimulation/Point.h b/Detectors/TPC/simulation/include/TPCSimulation/Point.h index dd477d1d20c33..1ce7fdc9f1a35 100644 --- a/Detectors/TPC/simulation/include/TPCSimulation/Point.h +++ b/Detectors/TPC/simulation/include/TPCSimulation/Point.h @@ -117,7 +117,7 @@ class HitGroup : public o2::BaseHit ~HitGroup() = default; - void addHit(float x, float y, float z, float time, short e) + void addHit(float x, float y, float z, float time, float e) { #ifdef HIT_AOS mHits.emplace_back(x, y, z, time, e);