IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 6e66bb91 authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan: Committed by Maximilian Reininghaus
Browse files

improved const-correctness in UrQMD

parent fe278f67
No related branches found
No related tags found
1 merge request!206Shower axis
Pipeline #1397 failed
...@@ -98,7 +98,7 @@ bool UrQMD::CanInteract(particles::Code vCode) const { ...@@ -98,7 +98,7 @@ bool UrQMD::CanInteract(particles::Code vCode) const {
vCode) != std::cend(validProjectileCodes); vCode) != std::cend(validProjectileCodes);
} }
GrammageType UrQMD::GetInteractionLength(SetupParticle& vParticle) const { GrammageType UrQMD::GetInteractionLength(SetupParticle const& vParticle) const {
if (!CanInteract(vParticle.GetPID())) { if (!CanInteract(vParticle.GetPID())) {
// we could do the canInteract check in GetCrossSection, too but if // we could do the canInteract check in GetCrossSection, too but if
// we do it here we have the advantage of avoiding the loop // we do it here we have the advantage of avoiding the loop
......
...@@ -27,7 +27,7 @@ namespace corsika::process::UrQMD { ...@@ -27,7 +27,7 @@ namespace corsika::process::UrQMD {
UrQMD(); UrQMD();
void Init() {} void Init() {}
corsika::units::si::GrammageType GetInteractionLength( corsika::units::si::GrammageType GetInteractionLength(
corsika::setup::Stack::StackIterator&) const; corsika::setup::Stack::StackIterator const&) const;
template <typename TParticle> template <typename TParticle>
corsika::units::si::CrossSectionType GetCrossSection(TParticle const&, corsika::units::si::CrossSectionType GetCrossSection(TParticle const&,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment