ROOTPWA
rootfitBatch.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 long=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 requires BINS to be set to the directory containing the massbins!
30 # and FITDIR to the directory of the fit
31 
32 #export FITDIR=/lustre/e18/user/sneubert/Q3PiData/FITS/fit11
33 #export FITDIR=/afs/e18/compass/analysis/sneubert/PWAFITS/3Pi/fit8re
34 #export FITDIR=/afs/e18/compass/analysis/sneubert/PWAFITS/
35 #export FITDIR=/afs/e18/compass/analysis/sneubert/PWAFITS/2008/fit1
36 #export FITDIR=/afs/e18/compass/analysis/sneubert/PWAFITS/LOWT/NEWACC/fit34RhoP2
37 #export FITDIR=/afs/e18/compass/analysis/sneubert/PWAFITS/MODELS/Model4/fit2
38 export FITDIR=/nfs/nas/user/sneubert/PWAFITS/FINAL/fitF64mp/
39 #IsoBinEta1Peak2m100
40 export MYBATCH=1780.1960 # will be used of no array job is started
41 
42 # batches for array job
43 BATCHARRAY=( 0000.0000 1000.1360 1360.1600 1600.1840 1840.2080 2080.2320 2320.2560 2560.3040 3040.3520 3520.4000 )
44 
45 #BATCHARRAY=( 0000.0000 1960.2200 )
46 
47 #BATCHARRAY=( 0000.0000 500.820 820.1020 1020.1180 1180.1300 1300.1420 1420.1540 1540.1660 1660.1820 1820.2020 2020.2500 )
48 
49 # BATCHARRAY=( 0000.0000 1000.1350 1350.1600 1600.1850 1850.2050 2050.2300 2300.2550 2550.3000 3000.3500 3500.4000 )
50 
51 #BATCHARRAY=( 0000.0000 1480.1720 1720.1960 1960.2200 2200.2440 )
52 
53 
54 if [ -n "$SGE_TASK_ID" ]
55 then
56  export BATCH=${BATCHARRAY[$SGE_TASK_ID]};
57 else
58  export BATCH=$MYBATCH;
59 fi
60 
61 echo "BATCH=$BATCH"
62 
63 export BINS=/nfs/hicran/project/compass/analysis/sneubert/5PiLTBatches3/$BATCH
64 #export BINS=/nfs/nas/user/sneubert/2004/5PiLTData3/
65 
66 export OUTFILE=$BATCH.result.root
67 export WLIST=wavelist
68 export RANK=1
69 export RENORM=-N
70 export NORM=norm.int
71 export ACC="-a accnorm.int"
72 export ACCEVENTS="-A 100000"
73 
74 cd /nfs/nas/user/sneubert/scratch/COMPASS/rootpwa/trunk/
75 source setup.sh
76 cd scripts/
77 
78 echo "BINS=$BINS"
79 
80 ./rootfitBatch.sh $BINS