Skip to content

Commit a8ab4b0

Browse files
committed
GPU TPCFastTransformation: Do not use double
1 parent 287d018 commit a8ab4b0

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

GPU/TPCFastTransformation/Spline1DSpec.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ class Spline1DSpec<DataT, YdimT, 0> : public Spline1DContainer<DataT>
392392
dSdDr = v * a;
393393

394394
T dv = T(knotL.Li);
395-
dDdSr = 6. * v * (T(1.) - v) * dv;
395+
dDdSr = T(6.) * v * (T(1.) - v) * dv;
396396
dDdSl = -dDdSr;
397397
dDdDl = vm1 * (v + v + vm1);
398398
dDdDr = v * (v + vm1 + vm1);
@@ -567,7 +567,7 @@ class Spline1DSpec<DataT, 1, 3>
567567
/// Simplified interface for 1D: return the interpolated value
568568
GPUd() DataT interpolate(DataT x) const
569569
{
570-
DataT S = 0.;
570+
DataT S = 0;
571571
TBase::interpolate(x, &S);
572572
return S;
573573
}

GPU/TPCFastTransformation/Spline2DSpec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ class Spline2DSpec<DataT, 1, 3>
659659
/// Simplified interface for 1D: return the interpolated value
660660
GPUd() DataT interpolate(DataT x1, DataT x2) const
661661
{
662-
DataT S = 0.;
662+
DataT S = 0;
663663
TBase::interpolate(x1, x2, &S);
664664
return S;
665665
}

GPU/TPCFastTransformation/SplineSpec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ class SplineSpec<DataT, XdimT, 1, 3>
537537
/// Simplified interface for 1D: return the interpolated value
538538
GPUd() DataT interpolate(const DataT x[]) const
539539
{
540-
DataT S = 0.;
540+
DataT S = 0;
541541
TBase::interpolate(x, &S);
542542
return S;
543543
}

GPU/TPCFastTransformation/TPCFastSpaceChargeCorrection.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class TPCFastSpaceChargeCorrection : public FlatObject
6565
this->zScale = zScale_;
6666
this->zOut = zOut_;
6767
// no scaling when the distance to the readout is too small
68-
this->splineScalingWithZ = fabs(zReadout_ - zOut_) > 1. ? 1. / (zReadout_ - zOut_) : 0.;
68+
this->splineScalingWithZ = fabs(zReadout_ - zOut_) > 1.f ? 1.f / (zReadout_ - zOut_) : 0.f;
6969
}
7070

7171
float getY0() const { return y0; }

0 commit comments

Comments
 (0)