git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda/cospi/host@7149 bc5caf13-1734-44f8-af43-603852e9ee25
18 lines
364 B
Awk
Executable file
18 lines
364 B
Awk
Executable file
#! /usr/bin/gawk -f
|
|
|
|
# read the output of multiplicities.py and produce the good or
|
|
# bad events
|
|
# ./tanos-cut.awk BAD=1 data/tanos-jr-flight.EIDT
|
|
|
|
BEGIN {
|
|
BAD = 0
|
|
}
|
|
|
|
/^EIDT/ {
|
|
D2 = 65536
|
|
D3 = 65536
|
|
if (NF>=18) D2 = $18
|
|
if (NF>=19) D3 = $19
|
|
good = D2>100 && D3>1000 && (D2<1610 || D2>=1640)
|
|
if (!BAD && good || BAD && !good) print
|
|
}
|