]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
cleanup 6-feb-2019 cs
authorhadaq <M.Traxler@gsi.de>
Wed, 6 Feb 2019 13:18:31 +0000 (14:18 +0100)
committerhadaq <M.Traxler@gsi.de>
Wed, 6 Feb 2019 13:18:31 +0000 (14:18 +0100)
users/gsi_dirc/check_tot.sh

index 9a2420be35cc7a38bf8362fc1ff5e7c21892a941..5cb1b5fa9f73399e62e5db77dcc06bafb1d2c076 100755 (executable)
@@ -4,234 +4,236 @@ if test -z "$1"; then
     exit
 fi
 
-NN=5000
-echo 'analysing first'
+NN=1000
+SK=1000
+echo 'analyzing first'
 echo ${NN}
-echo 'events...' 
+echo 'events...'
+echo skipping ${SK} events
 echo ' '
-echo 'fraction of trailing edges preceeding the leading edges'
+echo 'fraction of trailing edges without ToT info'
 echo ' '
 
 
 
 # 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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -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
+hldprint <<EOF $1  -raw -num $NN -skip $SK -onlytdc 0x201d | grep 'sing:0' | grep   'tot' | wc -l >> check_tot.dat
 
 EOF