diff --git a/corsika/detail/modules/energy_loss/BetheBlochPDG.inl b/corsika/detail/modules/energy_loss/BetheBlochPDG.inl index ccacc0ddc595a01cef9f3880c0469febc8bb2b33..fed757cd46b9c2e60b1ed64c3078a41ce27c9999 100644 --- a/corsika/detail/modules/energy_loss/BetheBlochPDG.inl +++ b/corsika/detail/modules/energy_loss/BetheBlochPDG.inl @@ -163,7 +163,7 @@ namespace corsika { // if (dE > HEPEnergyType::zero()) // dE = -dE; CORSIKA_LOG_TRACE("EnergyLoss dE={} MeV, Ekin={} GeV, EkinNew={} GeV", dE / 1_MeV, - step.getEkinPre() / 1_GeV, step.getEkinPre() + dE / 1_GeV); + step.getEkinPre() / 1_GeV, (step.getEkinPre() + dE) / 1_GeV); step.add_dEkin(dE); // also send to output diff --git a/corsika/modules/writers/EnergyLossWriter.hpp b/corsika/modules/writers/EnergyLossWriter.hpp index b516ab6260be34af1a4109c38f51be195d69a76d..c247b424ec150b78d81f23d8d78e82cc94229df5 100644 --- a/corsika/modules/writers/EnergyLossWriter.hpp +++ b/corsika/modules/writers/EnergyLossWriter.hpp @@ -156,7 +156,7 @@ namespace corsika { /** * Return the configuration of this output. */ - YAML::Node getConfig() const; + YAML::Node getConfig() const override; private: ShowerAxis const& showerAxis_; ///< conversion between geometry and grammage diff --git a/corsika/modules/writers/LongitudinalWriter.hpp b/corsika/modules/writers/LongitudinalWriter.hpp index caa49f9af587ec6595872dacb59f16e0a2b74497..0d6eb282284a733788223bcde3d7608c6fc02358 100644 --- a/corsika/modules/writers/LongitudinalWriter.hpp +++ b/corsika/modules/writers/LongitudinalWriter.hpp @@ -122,12 +122,12 @@ namespace corsika { /** * Return a summary. */ - YAML::Node getSummary() const; + YAML::Node getSummary() const override; /** * Return the configuration of this output. */ - YAML::Node getConfig() const; + YAML::Node getConfig() const override; number_profile::ProfileData const& getProfile( number_profile::ProfileIndex index) const { diff --git a/corsika/modules/writers/WriterOff.hpp b/corsika/modules/writers/WriterOff.hpp index 3d752cc9a80de7a85b0705c3d6dac9dac9d8722d..da418d54dd3abc6ba3f70b2f0bc8d247cd4857c7 100644 --- a/corsika/modules/writers/WriterOff.hpp +++ b/corsika/modules/writers/WriterOff.hpp @@ -43,7 +43,7 @@ namespace corsika { template <typename... TArgs> void write(TArgs&&...) {} - virtual YAML::Node getConfig() const { return YAML::Node(); } + virtual YAML::Node getConfig() const override { return YAML::Node(); } }; // class WriterOff