ROOTPWA
fitgene.sge
Go to the documentation of this file.
1 #!/bin/bash
2 #
3 #//
4 #// Copyright 2009 Sebastian Neubert
5 #//
6 #// This file is part of rootpwa
7 #//
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.
12 #//
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.
17 #//
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/>.
20 #//
21 #
22 # Select queue
23 #$ -l medium=TRUE,h_vmem=200M
24 # Divert output
25 #$ -o /nfs/nas/user/sneubert/LOGS
26 # Write error in same file
27 #$ -j y
28 
29 # this script is a copy of rootfitBatch.sge modified to be used by the
30 # genetic algorithm for waveset evolution
31 
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;
35 
36 export MYBATCH=1000.1360 # will be used of no array job is started
37 
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 )
40 
41 #BATCHARRAY=( 0000.0000 500.820 820.1020 1020.1180 1180.1300 1300.1420 1420.1540 1540.1660 1660.1820 1820.2020 2020.2500 )
42 
43 if [ -n "$SGE_TASK_ID" ]
44 then
45  export BATCH=${BATCHARRAY[$SGE_TASK_ID]};
46 else
47  export BATCH=$MYBATCH;
48 fi
49 
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
53 export RANK=1
54 export RENORM=-N
55 export NORM=norm.int
56 export ACC="-a accnorm.int"
57 export ACCEVENTS="-A 100000"
58 
59 cd ~/scratch/COMPASS/rootpwa/trunk/
60 source setup.sh
61 cd scripts/
62 
63 ./rootfitBatch.sh $BINS