Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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