]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TPC/scripts/submitCalib.sh
resubmitMissing.sh - resubmit calibration jobns for missing 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
20 up=`cat $adir/esd.txt.Good | grep -c .root`
05e3ee70 21 if [ $up -gt 0 ] ; then
acd4c700 22 myvar=0;
23 cd $adir
24 echo SUBMITING DIRECTORY $adir
25 cp ../ConfigOCDB.C .
26 cp ../CalibrateTPC.C .
27 rm -rf *_*
28 rm *.log
29 rm -rf */V3/
30 while [ $myvar -le ${up} ] ; do
31 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;
32 myvar=$(( $myvar + $step )) ;
33 echo $myvar ;
34 done;
35fi;
36done;