IAP GITLAB

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

avoid copy

parent 76bb33de
No related branches found
No related tags found
2 merge requests!96Delete DiscreteProcess.h,!93Improvements in Cascade and FlatExponential
...@@ -171,7 +171,7 @@ namespace corsika::process::sibyll { ...@@ -171,7 +171,7 @@ namespace corsika::process::sibyll {
int i = -1; int i = -1;
si::CrossSectionType weightedProdCrossSection = 0_mbarn; si::CrossSectionType weightedProdCrossSection = 0_mbarn;
// get weights of components from environment/medium // get weights of components from environment/medium
const auto w = mediumComposition.GetFractions(); const auto& w = mediumComposition.GetFractions();
// loop over components in medium // loop over components in medium
for (auto const targetId : mediumComposition.GetComponents()) { for (auto const targetId : mediumComposition.GetComponents()) {
i++; i++;
......
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