ROOTPWA
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
scripts
checkSet.sh
Go to the documentation of this file.
1
#!/bin/bash
2
3
# script to check if all waves from a given set have been calculated
4
# takes as a parameter the data directory and the waveset directory
5
6
DATA=$1
7
SET
=$2
8
9
# build list
10
cd $SET
11
echo
$PWD
12
13
rm -f $DATA/amplist
14
ls -1 $DATA
/*.amp > $DATA/amplist
15
ls -1 $DATA/OLD/*.amp >> $DATA/amplist
16
17
for j in F2BINS ; do
18
cd $j;
19
echo "Checking Set $j"
20
FOUND=0;
21
for i in *.key ; do
22
THISFOUND=0;
23
grep -q ${i/key/amp} $DATA/amplist || THISFOUND=1;
24
if [ $THISFOUND -gt 0 ]; then
25
FOUND=1;
26
echo "$i missing from $j"
27
fi
28
done
29
if [ $FOUND -gt 0 ]; then echo "+++ Waveset $j incomplete!";
30
else echo "Waveset $j fine!";
31
fi
32
cd -
33
done
34
cat $DATA/amplist | wc
Generated by
1.8.1.2