From 85991fb157ca753bd93db8ef862e2eadf9af7faa Mon Sep 17 00:00:00 2001 From: Maximilian Reininghaus <maximilian.reininghaus@tu-dortmund.de> Date: Mon, 25 Jan 2021 15:39:59 +0100 Subject: [PATCH] fixed type --- corsika/detail/modules/energy_loss/BetheBlochPDG.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/corsika/detail/modules/energy_loss/BetheBlochPDG.inl b/corsika/detail/modules/energy_loss/BetheBlochPDG.inl index b6ed1a0d2..bfff9ffbb 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; -- GitLab