From c13a4467f92da1ec3a455da0ec85e7d8aa64eaad Mon Sep 17 00:00:00 2001 From: hadaq Date: Wed, 6 Sep 2017 10:32:13 +0200 Subject: [PATCH] update --- users/gsi_dirc/check_tot2.sh | 48 ++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100755 users/gsi_dirc/check_tot2.sh diff --git a/users/gsi_dirc/check_tot2.sh b/users/gsi_dirc/check_tot2.sh new file mode 100755 index 0000000..be44ca5 --- /dev/null +++ b/users/gsi_dirc/check_tot2.sh @@ -0,0 +1,48 @@ + +if test -z "$1"; then + echo "usage: ./check_tot2.sh filename" + exit +fi + +NN=100 +#typeset -i events=0 +typeset -i minevt=1500000 +#while [ "$events" -lt "$minevt" ]; do +# echo "while" +daq_anal -x <& daq_anal.dat + +EOF + + + events1=$(cat daq_anal.dat | grep events | cut -c 13-32 | tr -d ' ') + echo "davor" +# events=$( awk '{print events1}' ) + echo "danach" +# events=$((0 + $events1)) + echo $events1 + echo "$(($events1))" + +#done + + + +# this is the famous Carsten programming style... + +# Trailing no TOT +hldprint < check_tot2.dat + +EOF + +# Trailing & TOT +hldprint <> check_tot2.dat + +EOF + +# Leading & TOT +hldprint <> check_tot2.dat + +EOF + + +# ~/trbsoft/daqtools/users/gsi_dirc/check_tot2 + -- 2.43.0