]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TPC/scripts/submitCalib.sh
mergeCalibRun.sh - merge result of calibration - over several runs
[u/mrichter/AliRoot.git] / TPC / scripts / submitCalib.sh
CommitLineData
acd4c700 1#
2# Submit calibration in predefined workspace
3# argument 1 - runlist
4# argument 2 - batch queues
5# arument 3 - step
6# Assumptions:
7# 1. Workspace defined before using the script $ALICE_ROOT/TPC/scripts/makeWorkspace.sh
8# 2. The data were filtered before using the $ALICE_ROOT/TPC/scripts/filterCorrupted.sh
9
10runlist=$1
11bqueues=$2
12step=$3
13echo runlist" "$runlist
14echo queues" "$bqueues
15echo step" "$step
16echo
17mydir=`pwd`
18for adir in `cat $runlist`; do
19 cd $mydir
531ff1e0 20 #
21 #remove old data
1d980c30 22 rm -f *.log
23 rm -f core*
531ff1e0 24 rm -rf $mydir/$adir/core*
25 rm -rf $mydir/$adir/*/core*
26 rm -rf $mydir/$adir/*.root
27 rm -rf $mydir/$adir/*.log
28 rm -rf $mydir/$adir/*_*
29 #end of remove old data
30 #
acd4c700 31 up=`cat $adir/esd.txt.Good | grep -c .root`
05e3ee70 32 if [ $up -gt 0 ] ; then
acd4c700 33 myvar=0;
34 cd $adir
35 echo SUBMITING DIRECTORY $adir
36 cp ../ConfigOCDB.C .
37 cp ../CalibrateTPC.C .
acd4c700 38 while [ $myvar -le ${up} ] ; do
39 bsub -q $bqueues -oo out$myvar.log -eo err$myvar.log $ALICE_ROOT/TPC/scripts/submitCalibJob.sh $myvar $(($myvar+step)) `pwd`/esd.txt.Good $adir;
40 myvar=$(( $myvar + $step )) ;
41 echo $myvar ;
42 done;
43fi;
44done;