Skip to content

Commit 56f1193

Browse files
committed
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
1 parent 19d24d5 commit 56f1193

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • Detectors/TPC/simulation/include/TPCSimulation

Detectors/TPC/simulation/include/TPCSimulation/Point.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class HitGroup : public o2::BaseHit
117117

118118
~HitGroup() = default;
119119

120-
void addHit(float x, float y, float z, float time, short e)
120+
void addHit(float x, float y, float z, float time, float e)
121121
{
122122
#ifdef HIT_AOS
123123
mHits.emplace_back(x, y, z, time, e);

0 commit comments

Comments
 (0)