49c08858a556f32e3fd1eaa70797ad8b35af2dc2
[u/mrichter/AliRoot.git] / TPC / scripts / OCDBscan / makeCalibTree.sh
1 #!/bin/bash
2
3 # Aruments
4 # 1   -  run list
5 # 2   -  start run
6 # 3   -  end run
7
8 runList=$1
9 startRun=$2
10 endRun=$3
11 echo runList=$runList
12 echo startRun=$startRun
13 echo endRun=$endRun
14 #
15 workdir=${GUI_OUTDIR}/tmp/tmp${startRun}-${endRun}
16 backupdir=`pwd`/
17 mkdirhier $workdir
18 cp $runList $workdir
19 cd $workdir
20 source guiEnv.sh
21 source $ALICE_ROOT/TPC/scripts/halloWorld.sh
22 #
23 aliroot -q -b $SCRIPTDIR/ConfigOCDB.C  $SCRIPTDIR/CalibEnv.C+\(\"$runList\",$startRun,$endRun\)
24 echo End of job:
25 echo pwd=`pwd`
26 echo ls=
27 ls -alrt
28 echo cp dcsTime.root $GUI_OUTDIR/time/calibTreeTime_$startRun_$endRun.root
29 cp dcsTime.root $GUI_OUTDIR/time/calibTreeTime_$startRun_$endRun.root
30 cd $backupdir