]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
tool for checking rising and trailing edges
authorhadaq <M.Traxler@gsi.de>
Mon, 28 Aug 2017 15:54:45 +0000 (17:54 +0200)
committerhadaq <M.Traxler@gsi.de>
Mon, 28 Aug 2017 15:54:45 +0000 (17:54 +0200)
users/gsi_dirc/check_tot.sh [new file with mode: 0755]

diff --git a/users/gsi_dirc/check_tot.sh b/users/gsi_dirc/check_tot.sh
new file mode 100755 (executable)
index 0000000..a711c79
--- /dev/null
@@ -0,0 +1,236 @@
+
+if test -z "$1"; then
+    echo "usage: ./check_tot.sh filename"
+    exit
+fi
+
+NN=5000
+echo 'analysing first'
+echo ${NN}
+echo 'events...' 
+
+# this is the famous Carsten programming style...
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x2000 | grep 'sing:0' | grep  -v 'tot' | wc -l > check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x2000 | grep 'sing:0' | grep   'tot' | wc -l >> check_tot.dat
+
+EOF
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x2001 | grep 'sing:0' | grep  -v 'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x2001 | grep 'sing:0' | grep   'tot' | wc -l >> check_tot.dat
+
+EOF
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x2002 | grep 'sing:0' | grep  -v 'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x2002 | grep 'sing:0' | grep   'tot' | wc -l >> check_tot.dat
+
+EOF
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x2003 | grep 'sing:0' | grep  -v 'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x2003 | grep 'sing:0' | grep   'tot' | wc -l >> check_tot.dat
+
+EOF
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x2004 | grep 'sing:0' | grep  -v 'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x2004 | grep 'sing:0' | grep   'tot' | wc -l >> check_tot.dat
+
+EOF
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x2005 | grep 'sing:0' | grep  -v 'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x2005 | grep 'sing:0' | grep   'tot' | wc -l >> check_tot.dat
+
+EOF
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x2006 | grep 'sing:0' | grep  -v 'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x2006 | grep 'sing:0' | grep   'tot' | wc -l >> check_tot.dat
+
+EOF
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x2007 | grep 'sing:0' | grep  -v 'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x2007 | grep 'sing:0' | grep   'tot' | wc -l >> check_tot.dat
+
+EOF
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x2008 | grep 'sing:0' | grep  -v 'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x2008 | grep 'sing:0' | grep   'tot' | wc -l >> check_tot.dat
+
+EOF
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x2009 | grep 'sing:0' | grep  -v 'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x2009 | grep 'sing:0' | grep   'tot' | wc -l >> check_tot.dat
+
+EOF
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x200a | grep 'sing:0' | grep  -v 'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x200a | grep 'sing:0' | grep   'tot' | wc -l >> check_tot.dat
+
+EOF
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x200b | grep 'sing:0' | grep  -v 'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x200b | grep 'sing:0' | grep   'tot' | wc -l >> check_tot.dat
+
+EOF
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x200c | grep 'sing:0' | grep  -v 'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x200c | grep 'sing:0' | grep   'tot' | wc -l >> check_tot.dat
+
+EOF
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x200d | grep 'sing:0' | grep  -v 'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x200d | grep 'sing:0' | grep   'tot' | wc -l >> check_tot.dat
+
+EOF
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x200e | grep 'sing:0' | grep  -v 'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x200e | grep 'sing:0' | grep   'tot' | wc -l >> check_tot.dat
+
+EOF
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x200f | grep 'sing:0' | grep  -v 'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x200f | grep 'sing:0' | grep   'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x2014 | grep 'sing:0' | grep  -v 'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x2014 | grep 'sing:0' | grep   'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x2015 | grep 'sing:0' | grep  -v 'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x2015 | grep 'sing:0' | grep   'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x2016 | grep 'sing:0' | grep  -v 'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x2016 | grep 'sing:0' | grep   'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x2017 | grep 'sing:0' | grep  -v 'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x2017 | grep 'sing:0' | grep   'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x2018 | grep 'sing:0' | grep  -v 'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x2018 | grep 'sing:0' | grep   'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x2019 | grep 'sing:0' | grep  -v 'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x2019 | grep 'sing:0' | grep   'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x201a | grep 'sing:0' | grep  -v 'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x201a | grep 'sing:0' | grep   'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x201b | grep 'sing:0' | grep  -v 'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x201b | grep 'sing:0' | grep   'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x201c | grep 'sing:0' | grep  -v 'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x201c  | grep 'sing:0' | grep   'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x201d | grep 'sing:0' | grep  -v 'tot' | wc -l >> check_tot.dat
+
+EOF
+
+hldprint <<EOF $1  -raw -num $NN -onlytdc 0x201d | grep 'sing:0' | grep   'tot' | wc -l >> check_tot.dat
+
+EOF
+
+
+
+./check_tot
+