]> git.uio.no Git - u/mrichter/AliRoot.git/blame - test/QA/simrun.sh
not needed anymore
[u/mrichter/AliRoot.git] / test / QA / simrun.sh
CommitLineData
f21e66a8 1#!/bin/csh -f
950807f7 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
9b93d3f6 18rm -Rf *.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
69c4e539 24root -b -q $ALICE_ROOT/test/QA/simrun.C --run $1
65aa1f4d 25if ( ! -e data ) then
26 mkdir data
27endif
28cd data
ce340a5a 29#ln -s ../geometry.root
7f84ca30 30ln -s ../raw.root
31ln -si $ALICE_ROOT/test/QA/recraw.C recraw.C
2985b84d 32aliroot -b -q recraw.C > recraw.log
d0992318 33cp $ALICE_ROOT/test/QA/rawqa.C .
55420306 34aliroot -b > rawqa.log << EOF
a6fbea2b 35.x $ALICE_ROOT/test/QA/rootlogon.C
d0992318 36.L rawqa.C++
fd8c26f1 37rawqa($1, 10)
a6fbea2b 38EOF
d0992318 39rm -f rawqa.C
72628718 40exit