Skip to content

Commit

Permalink
Fix int8/uint8 type in LinPad2Y for GPUTPCCompressionTrackModel
Browse files Browse the repository at this point in the history
  • Loading branch information
shahor02 committed Feb 6, 2025
1 parent 9a4e708 commit 98febec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GPU/GPUTracking/DataCompression/GPUTPCCompressionTrackModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@ class GPUTPCCompressionTrackModel
GPUd() void getClusterErrors2(int32_t iRow, float z, float sinPhi, float DzDs, float& ErrY2, float& ErrZ2) const;
GPUd() void resetCovariance();

GPUd() float LinearPad2Y(int32_t slice, float pad, float padWidth, int8_t npads) const
GPUd() float LinearPad2Y(int32_t slice, float pad, float padWidth, uint8_t npads) const
{
const float u = (pad - 0.5f * npads) * padWidth;
return (slice >= GPUCA_NSLICES / 2) ? -u : u;
}

GPUd() float LinearY2Pad(int32_t slice, float y, float padWidth, int8_t npads) const
GPUd() float LinearY2Pad(int32_t slice, float y, float padWidth, uint8_t npads) const
{
const float u = (slice >= GPUCA_NSLICES / 2) ? -y : y;
return u / padWidth + 0.5f * npads;
Expand Down

0 comments on commit 98febec

Please sign in to comment.