From: hadaq Date: Wed, 6 Sep 2017 08:32:13 +0000 (+0200) Subject: update X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=c13a4467f92da1ec3a455da0ec85e7d8aa64eaad;p=daqtools.git update --- 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 +