IAP GITLAB

Skip to content
Snippets Groups Projects

Resolve "make friendly example scripts for the release"

Closed Alan Coleman requested to merge 626-make-friendly-example-scripts-for-the-release into master
Compare and Show latest version
12 files
+ 161
16
Compare changes
  • Side-by-side
  • Inline
Files
12
@@ -71,6 +71,10 @@ namespace corsika {
GrammageType const grammageStart = showerAxis_.getProjectedX(p0);
GrammageType const grammageEnd = showerAxis_.getProjectedX(p1);
// Avoid over counting in first bin when backscattered particle goes beyond the
// injection point.
if (grammageStart == grammageEnd) { return; }
// Note: particle may go also "upward", thus, grammageEnd<grammageStart
size_t const binStart = std::ceil(grammageStart / dX_);
size_t const binEnd = std::floor(grammageEnd / dX_);
Loading