bug
[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
65aa1f4d 6echo $WORK $VERSION
e399288d 7if ( ! -e $WORK ) then
65aa1f4d 8 setenv WORK ./
e399288d 9endif
10cd $WORK
65aa1f4d 11if ( $VERSION == "" ) then
12 setenv VERSION "UNKNOWN"
13endif
14if ( ! -e QATest/$VERSION ) then
15 mkdir QATest/$VERSION
e399288d 16endif
1a78269d 17cd QATest/$VERSION
e399288d 18rm -Rf DB* *.root *.C *.log data/*
a6fbea2b 19ln -si $ALICE_ROOT/test/QA/Config.C Config.C
69c4e539 20ln -si $ALICE_ROOT/test/QA/sim.C sim.C
21ln -si $ALICE_ROOT/test/QA/simqa.C simqa.C
22ln -si $ALICE_ROOT/test/QA/rec.C rec.C
23ln -si $ALICE_ROOT/test/QA/recqa.C recqa.C
ab6f1faf 24ln -si $ALICE_ROOT/test/QA/DB.tgz DB.tgz
69c4e539 25root -b -q $ALICE_ROOT/test/QA/simrun.C --run $1
65aa1f4d 26if ( ! -e data ) then
27 mkdir data
28endif
29cd data
ce340a5a 30#ln -s ../geometry.root
7f84ca30 31ln -s ../raw.root
8eb1ea12 32ln -s ../DB
7f84ca30 33ln -si $ALICE_ROOT/test/QA/recraw.C recraw.C
2985b84d 34aliroot -b -q recraw.C > recraw.log
d0992318 35cp $ALICE_ROOT/test/QA/rawqa.C .
2985b84d 36alienaliroot -b > rawqa.log << EOF
a6fbea2b 37.x $ALICE_ROOT/test/QA/rootlogon.C
d0992318 38.L rawqa.C++
72628718 39rawqa(21950, 10)
a6fbea2b 40EOF
d0992318 41rm -f rawqa.C
72628718 42exit