IAP GITLAB

Skip to content
Snippets Groups Projects
Commit c50a6ef8 authored by ralfulrich's avatar ralfulrich Committed by Felix Riehn
Browse files

style

parent d665fb29
No related branches found
No related tags found
No related merge requests found
......@@ -200,7 +200,8 @@ namespace corsika {
GrammageType const grammageStart = shower_axis_.getProjectedX(vTrack.getPosition(0));
GrammageType const grammageEnd = shower_axis_.getProjectedX(vTrack.getPosition(1));
GrammageType deltaX = grammageEnd - grammageStart;
if (deltaX < GrammageType::zero()) deltaX = -deltaX; // to catch upward-going particles
if (deltaX < GrammageType::zero())
deltaX = -deltaX; // to catch upward-going particles
if (deltaX < dX_threshold_) return;
// only register the range that is covered by the profile
......@@ -212,10 +213,8 @@ namespace corsika {
if (binEnd < 0) binEnd = 0;
if (binEnd > maxBin) binEnd = maxBin;
// in upward going showers binEnd may be smaller than binStart, but we don't care:
if (binStart>binEnd) {
std::swap(binStart, binEnd);
}
if (binStart > binEnd) { std::swap(binStart, binEnd); }
CORSIKA_LOG_DEBUG("energy deposit of -dE={} between {} and {}", -dE, grammageStart,
grammageEnd);
......
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