IAP GITLAB

Skip to content
Snippets Groups Projects
Commit b57cdb55 authored by Jean-Marco Alameddine's avatar Jean-Marco Alameddine Committed by Ralf Ulrich
Browse files

do-clang-format

parent eac2cb73
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,8 @@ namespace corsika::proposal {
auto deflection = (c->second).scatter->CalculateMultipleScattering(
grammage / 1_g * square(1_cm), vP.getEnergy() / 1_MeV, E_f / 1_MeV, rnd);
[[maybe_unused]] auto [unused1, final_direction] = PROPOSAL::multiple_scattering::ScatterInitialDirection(direction, deflection);
[[maybe_unused]] auto [unused1, final_direction] =
PROPOSAL::multiple_scattering::ScatterInitialDirection(direction, deflection);
// update particle direction after continuous loss caused by multiple
// scattering
......@@ -111,7 +112,8 @@ namespace corsika::proposal {
// if the particle has a charge take multiple scattering into account
if (vP.getChargeNumber() != 0) scatter(vP, dE, dX);
vP.setEnergy(final_energy);
auto new_momentum = sqrt(vP.getEnergy() * vP.getEnergy() - vP.getMass() * vP.getMass());
auto new_momentum =
sqrt(vP.getEnergy() * vP.getEnergy() - vP.getMass() * vP.getMass());
vP.setMomentum(vP.getMomentum() * new_momentum / vP.getMomentum().getNorm());
return ProcessReturn::Ok;
}
......
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