]>
Commit | Line | Data |
---|---|---|
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 | ||
10 | runlist=$1 | |
11 | bqueues=$2 | |
12 | step=$3 | |
13 | echo runlist" "$runlist | |
14 | echo queues" "$bqueues | |
15 | echo step" "$step | |
16 | echo | |
17 | mydir=`pwd` | |
18 | for 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; | |
35 | fi; | |
36 | done; |