ROOTPWA
Macros | Functions | Variables
wavegenetics.sh File Reference

Go to the source code of this file.

Macros

#define additional   options to pass to qsub

Functions

fi for ((g=$STARTGEN;g< $NG;g++))
 for ((i=0;i< $NW;i++))

Variables

export DATAROOT
export ADD = 0
export DROP = 0
export VARY = 5
export PRESSURE = 1.7
export CROSS = 0.85
if!$ROOTPWA scripts
checkWavesForFit sh $WPOOL 
$DATAROOT
then echo Go and check your amplitudes
 exit
do echo
 GENDIR = $GENEROOT/gen$g
mkdir $GENDIR
cp $MOTHER $GENDIR ancestors dat
export MOTHER = $GENDIR/ancestors.dat
echo Generation $g
do SETDIR = $GENDIR/set$i
mkdir $SETDIR
 WLIST = wavelist
 MUTATION = 0
echo mutator S $i E $EXCH A
$ADD D $DROP V $VARY P $WPOOL
F $FIX p $PRESSURE c $CROSS
$MOTHER $SETDIR $WLIST if
mutator S $i E $EXCH A $ADD D
$DROP V $VARY P $WPOOL F $FIX
p $PRESSURE c $CROSS $MOTHER
$SETDIR 
$WLIST
then echo Starting pwafit in
directory $SETDIR with
wavelist $WLIST 
QMES
do qstat & $OUTFILE
cat $OUTFILE grep Eqw while read a
done if [$?=0]
then echo qstat Error
then echo no jobs running anymore
 break
 fi
then echo n
 sleep
 done

Macro Definition Documentation

#define additional   options to pass to qsub

Definition at line 54 of file wavegenetics.sh.

Function Documentation

fi for ( (g=$STARTGEN;g< $NG;g++)  )
for ( (i=0;i< $NW;i++)  )

Variable Documentation

if ! $ROOTPWA scripts checkWavesForFit sh $WPOOL $DATAROOT

Definition at line 60 of file wavegenetics.sh.

date echo n Generation $g

Definition at line 74 of file wavegenetics.sh.

mkdir $GENDIR

Definition at line 70 of file wavegenetics.sh.

else if!grep q fitgene $OUTFILE

Definition at line 104 of file wavegenetics.sh.

mkdir $SETDIR

Definition at line 81 of file wavegenetics.sh.

echo mutator S $i E $EXCH A $ADD D $DROP V $VARY P $WPOOL F $FIX p $PRESSURE c $CROSS $MOTHER $SETDIR $WLIST if mutator S $i E $EXCH A $ADD D $DROP V $VARY P $WPOOL F $FIX p $PRESSURE c $CROSS $MOTHER $SETDIR $WLIST

Definition at line 85 of file wavegenetics.sh.

cat $OUTFILE grep Eqw while read a
export ADD = 0

Definition at line 48 of file wavegenetics.sh.

then echo Go and check your amplitudes

Definition at line 61 of file wavegenetics.sh.

Referenced by Tgamp::Amp().

then echo no jobs running anymore

Definition at line 115 of file wavegenetics.sh.

break

Definition at line 116 of file wavegenetics.sh.

export CROSS = 0.85

Definition at line 52 of file wavegenetics.sh.

cp $MOTHER $GENDIR ancestors dat

Definition at line 71 of file wavegenetics.sh.

Referenced by plotAccu().

export DATAROOT
Initial value:
/afs/e18/compass/analysis/sneubert/5PiLTData3/
export GENEROOT=/nfs/nas/user/sneubert/PWAFITS/GENETICS/ltRUN30cont
export MOTHER=$GENEROOT/parents.list
export STARTGEN=50
export NANC=50 # number of ancestors per generation (top)
export WPOOL=$GENEROOT/wavepool
export NW=50 # number of wavesets in one generation
export NG=100 # number of generations
export FIX=1 # first N waves to be fixed
export EXCH=1

Definition at line 33 of file wavegenetics.sh.

done
export DROP = 0

Definition at line 49 of file wavegenetics.sh.

echo
then echo qstat Error

Definition at line 112 of file wavegenetics.sh.

exit

Definition at line 62 of file wavegenetics.sh.

fi
GENDIR = $GENEROOT/gen$g

Definition at line 69 of file wavegenetics.sh.

if[-n"$RES"]

Definition at line 107 of file wavegenetics.sh.

date selector $NANC $MOTHER $GENDIR set *$GENDIR results dat export MOTHER = $GENDIR/ancestors.dat

Definition at line 72 of file wavegenetics.sh.

MUTATION = 0

Definition at line 83 of file wavegenetics.sh.

then echo n
export PRESSURE = 1.7

Definition at line 51 of file wavegenetics.sh.

then echo Starting pwafit in directory $SETDIR with wavelist $WLIST QMES
Initial value:
"++++++ Mutator failed!"

Definition at line 89 of file wavegenetics.sh.

do SETDIR = $GENDIR/set$i

Definition at line 80 of file wavegenetics.sh.

sleep

Definition at line 123 of file wavegenetics.sh.

Referenced by waitForJobs().

export VARY = 5

Definition at line 50 of file wavegenetics.sh.

WLIST = wavelist

Definition at line 82 of file wavegenetics.sh.