diff --git a/corsika/detail/modules/energy_loss/BetheBlochPDG.inl b/corsika/detail/modules/energy_loss/BetheBlochPDG.inl index b6ed1a0d22d2d74a1cf28ca17bd6833ec25fdec6..bfff9ffbb477d694de2b6c9b2742f5a90fb947e4 100644 --- a/corsika/detail/modules/energy_loss/BetheBlochPDG.inl +++ b/corsika/detail/modules/energy_loss/BetheBlochPDG.inl @@ -220,7 +220,7 @@ namespace corsika { auto energyCount = HEPEnergyType::zero(); auto const factor = -dE / deltaX; - auto fill = [&](int const bin, double const weight) { + auto fill = [&](int const bin, GrammageType const weight) { auto const increment = factor * weight; profile_[bin] += increment; energyCount += increment;