diff --git a/Core/include/Acts/Seeding/detail/CylindricalSpacePointGrid.hpp b/Core/include/Acts/Seeding/detail/CylindricalSpacePointGrid.hpp index abff62e53f4..b94defef772 100644 --- a/Core/include/Acts/Seeding/detail/CylindricalSpacePointGrid.hpp +++ b/Core/include/Acts/Seeding/detail/CylindricalSpacePointGrid.hpp @@ -37,25 +37,25 @@ using CylindricalBinnedGroupIterator = Acts::BinnedGroupIterator< struct CylindricalSpacePointGridConfig { // minimum pT to be found by seedFinder - double minPt = 0 * Acts::UnitConstants::MeV; + float minPt = 0 * Acts::UnitConstants::MeV; // maximum extension of sensitive detector layer relevant for seeding as // distance from x=y=0 (i.e. in r) - double rMax = 320 * Acts::UnitConstants::mm; + float rMax = 320 * Acts::UnitConstants::mm; // maximum extension of sensitive detector layer relevant for seeding as // distance from x=y=0 (i.e. in r) - double rMin = 0 * Acts::UnitConstants::mm; + float rMin = 0 * Acts::UnitConstants::mm; // maximum extension of sensitive detector layer relevant for seeding in // positive direction in z - double zMax = 0 * Acts::UnitConstants::mm; + float zMax = 0 * Acts::UnitConstants::mm; // maximum extension of sensitive detector layer relevant for seeding in // negative direction in z - double zMin = 0 * Acts::UnitConstants::mm; + float zMin = 0 * Acts::UnitConstants::mm; // maximum distance in r from middle space point to bottom or top spacepoint - double deltaRMax = 0 * Acts::UnitConstants::mm; + float deltaRMax = 0 * Acts::UnitConstants::mm; // maximum forward direction expressed as cot(theta) - double cotThetaMax = 0; + float cotThetaMax = 0; // maximum impact parameter in mm - double impactMax = 0 * Acts::UnitConstants::mm; + float impactMax = 0 * Acts::UnitConstants::mm; // minimum phi value for phiAxis construction double phiMin = -std::numbers::pi; // maximum phi value for phiAxis construction @@ -118,7 +118,7 @@ struct CylindricalSpacePointGridConfig { struct CylindricalSpacePointGridOptions { // magnetic field - double bFieldInZ = 0.; + float bFieldInZ = 0.; bool isInInternalUnits = false; CylindricalSpacePointGridOptions toInternalUnits() const { if (isInInternalUnits) { diff --git a/Core/include/Acts/Seeding/detail/CylindricalSpacePointGrid.ipp b/Core/include/Acts/Seeding/detail/CylindricalSpacePointGrid.ipp index 87b1d1d712e..a21c08abd63 100644 --- a/Core/include/Acts/Seeding/detail/CylindricalSpacePointGrid.ipp +++ b/Core/include/Acts/Seeding/detail/CylindricalSpacePointGrid.ipp @@ -113,7 +113,7 @@ Acts::CylindricalSpacePointGridCreator::createGrid( // FIXME: zBinSize must include scattering float zBinSize = config.cotThetaMax * config.deltaRMax; float zBins = - std::max(1., std::floor((config.zMax - config.zMin) / zBinSize)); + std::max(1.f, std::floor((config.zMax - config.zMin) / zBinSize)); zValues.reserve(static_cast(zBins)); for (int bin = 0; bin <= static_cast(zBins); bin++) {