defines WORK if not already defined
[u/mrichter/AliRoot.git] / test / QA / simrun.sh
CommitLineData
950807f7 1#!/bin/csh
2if ($#argv < 1) then
3 echo "usage simrun.sh RunNumber"
4 exit()
69c4e539 5endif
e399288d 6if ( ! -e $WORK ) then
7 setenv $WORK ./
8endif
9cd $WORK
10if ( ! -e QATest ) then
11 mkdir QATest
12endif
13cd QATest
14rm -Rf DB* *.root *.C *.log data/*
a6fbea2b 15ln -si $ALICE_ROOT/test/QA/Config.C Config.C
69c4e539 16ln -si $ALICE_ROOT/test/QA/sim.C sim.C
17ln -si $ALICE_ROOT/test/QA/simqa.C simqa.C
18ln -si $ALICE_ROOT/test/QA/rec.C rec.C
19ln -si $ALICE_ROOT/test/QA/recqa.C recqa.C
ab6f1faf 20ln -si $ALICE_ROOT/test/QA/DB.tgz DB.tgz
69c4e539 21root -b -q $ALICE_ROOT/test/QA/simrun.C --run $1
a6fbea2b 22cd $WORK/QATest/data
ce340a5a 23#ln -s ../geometry.root
7f84ca30 24ln -s ../raw.root
8eb1ea12 25ln -s ../DB
7f84ca30 26ln -si $ALICE_ROOT/test/QA/recraw.C recraw.C
2985b84d 27aliroot -b -q recraw.C > recraw.log
d0992318 28cp $ALICE_ROOT/test/QA/rawqa.C .
2985b84d 29alienaliroot -b > rawqa.log << EOF
a6fbea2b 30.x $ALICE_ROOT/test/QA/rootlogon.C
d0992318 31.L rawqa.C++
72628718 32rawqa(21950, 10)
a6fbea2b 33EOF
d0992318 34rm -f rawqa.C
72628718 35exit