From e0fd360d103124ec11905919a37011a0fdc05414 Mon Sep 17 00:00:00 2001
From: Maximilian Reininghaus <maximilian.reininghaus@kit.edu>
Date: Thu, 8 Oct 2020 12:24:47 +0200
Subject: [PATCH 1/2] more checks and fix in plot_tracks.sh

---
 Tools/plot_tracks.sh | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/Tools/plot_tracks.sh b/Tools/plot_tracks.sh
index 4d0844650..c8e7fbcd4 100755
--- a/Tools/plot_tracks.sh
+++ b/Tools/plot_tracks.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 # (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu
 #
@@ -20,7 +20,12 @@ directory=$(dirname "$tracks_dat")
 hadrons_dat="$directory/hadrons.dat"
 muons_dat="$directory/muons.dat"
 
-if [ "$muons_dat" -ot "$tracks_dat" -o "$hadrons_dat" -ot "$muons_dat" ]; then
+if [ ! -e "$tracks_dat" ]; then
+  echo "$tracks_dat does not exist" >&2
+  exit 2
+fi
+
+if [ "$muons_dat" -ot "$tracks_dat" ] || [ "$hadrons_dat" -ot "$tracks_dat" ]; then
   echo "splitting $tracks_dat into $muons_dat and $hadrons_dat."
   cat "$tracks_dat" | egrep '^\s+-*13\s' > "$muons_dat"
   cat "$tracks_dat" | egrep -v '^\s+-*13\s' > "$hadrons_dat"
-- 
GitLab


From bcf764cb274dd1e4032fa6b94b2953f94a9f94d6 Mon Sep 17 00:00:00 2001
From: Maximilian Reininghaus <maximilian.reininghaus@kit.edu>
Date: Thu, 8 Oct 2020 13:34:03 +0200
Subject: [PATCH 2/2] clang-format

---
 Stack/History/HistoryObservationPlane.cpp | 1 -
 1 file changed, 1 deletion(-)

diff --git a/Stack/History/HistoryObservationPlane.cpp b/Stack/History/HistoryObservationPlane.cpp
index 1109b0fce..b1425f18b 100644
--- a/Stack/History/HistoryObservationPlane.cpp
+++ b/Stack/History/HistoryObservationPlane.cpp
@@ -82,4 +82,3 @@ void HistoryObservationPlane::fillHistoryHistogram(
     event = event->parentEvent().get(); // projectile.GetEvent().get();
   }
 }
-
-- 
GitLab