ROOTPWA
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
scripts
mcmcBatch.sh
Go to the documentation of this file.
1
#!/bin/bash
2
3
#export FITDIR=/afs/e18/compass/analysis/sneubert/PWAFITS/fit6
4
test -z $FITDIR &&
echo
"FITDIR not set!"
&&
exit
;
5
test -z
$OUTFILE
&&
echo
"OUTFILE not set!"
&&
exit
;
6
test -z $START &&
echo
"STARTFILE not set!"
;
7
test -z $1 &&
echo
"No bin dir given!"
&&
exit
;
8
9
echo
"FITDIR=$FITDIR"
10
11
test -s $FITDIR/
$OUTFILE
&& mv $FITDIR/
$OUTFILE
$FITDIR/
$OUTFILE
.previous
12
13
for
i
in $1;
14
do
15
export
BIN
=`
echo
$i
| gawk -
F
"/"
'{ print $(NF) }'
`;
16
echo
"---- Massbin: $BIN"
;
17
LOWER=`
echo
$BIN | gawk -
F
"."
'{ print $1 }'
`;
18
UPPER=`
echo
$BIN | gawk -
F
"."
'{ print $2 }'
`;
19
echo
"$LOWER...$UPPER"
20
cd
$i
/
AMPS
;
21
time
hamMCpwa -w $FITDIR/
$WLIST
-o $FITDIR/
$OUTFILE
-
q
-r 2 -l $LOWER -u $UPPER -S $START -s 0.001 -
i
10000
22
23
#cd -;
24
done
;
25
Generated by
1.8.1.2