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
No related merge requests found
......@@ -98,7 +98,7 @@ bool UrQMD::CanInteract(particles::Code vCode) const {
vCode) != std::cend(validProjectileCodes);
}
GrammageType UrQMD::GetInteractionLength(SetupParticle& vParticle) const {
GrammageType UrQMD::GetInteractionLength(SetupParticle const& vParticle) const {
if (!CanInteract(vParticle.GetPID())) {
// we could do the canInteract check in GetCrossSection, too but if
// we do it here we have the advantage of avoiding the loop
......
......@@ -27,7 +27,7 @@ namespace corsika::process::UrQMD {
UrQMD();
void Init() {}
corsika::units::si::GrammageType GetInteractionLength(
corsika::setup::Stack::StackIterator&) const;
corsika::setup::Stack::StackIterator const&) const;
template <typename TParticle>
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