4 #// Copyright 2009 Sebastian Neubert
6 #// This file is part of rootpwa
8 #// rootpwa is free software: you can redistribute it and/or modify
9 #// it under the terms of the GNU General Public License as published by
10 #// the Free Software Foundation, either version 3 of the License, or
11 #// (at your option) any later version.
13 #// rootpwa is distributed in the hope that it will be useful,
14 #// but WITHOUT ANY WARRANTY; without even the implied warranty of
15 #// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 #// GNU General Public License for more details.
18 #// You should have received a copy of the GNU General Public License
19 #// along with rootpwa. If not, see <http://www.gnu.org/licenses/>.
23 #$ -l medium=TRUE,h_vmem=200M
25 #$ -o /nfs/nas/user/sneubert/LOGS
26 # Write error in same file
29 # this script is a copy of rootfitBatch.sge modified to be used by the
30 # genetic algorithm for waveset evolution
32 # WLIST and FITDIR have to be set before this script can be run
33 test -z $FITDIR &&
echo "fitgene.sh :: FITDIR not set! Aborting" &&
exit;
34 test -z
$WLIST &&
echo "fitgene.sh :: WLIST not set! Aborting" &&
exit;
36 export
MYBATCH=1000.1360 # will be used of no array job is started
38 # batches for array job
39 BATCHARRAY=( 0000.0000 1000.1360 1360.1600 1600.1840 1840.2080 2080.2320 2320.2560 2560.3040 3040.3520 3520.4000 )
41 #BATCHARRAY=( 0000.0000 500.820 820.1020 1020.1180 1180.1300 1300.1420 1420.1540 1540.1660 1660.1820 1820.2020 2020.2500 )
43 if [ -
n "$SGE_TASK_ID" ]
45 export
BATCH=${BATCHARRAY[$SGE_TASK_ID]};
47 export BATCH=$MYBATCH;
50 #export BINS=/lustre/e18/user/sneubert/Q3PiData/BATCHES/$BATCH
51 export BINS=/afs/e18/compass/analysis/sneubert/5PiLTBatches3/$BATCH
52 export OUTFILE=$BATCH.result.root
56 export ACC=
"-a accnorm.int"
57 export ACCEVENTS=
"-A 100000"
59 cd ~/scratch/COMPASS/rootpwa/trunk/
63 ./rootfitBatch.sh $BINS