]> git.uio.no Git - u/mrichter/AliRoot.git/blob - test/QA/simrun.sh
more on dir creation
[u/mrichter/AliRoot.git] / test / QA / simrun.sh
1 #!/bin/csh
2 if ($#argv < 1) then
3  echo "usage simrun.sh RunNumber"
4  exit()
5 endif
6 echo $WORK $VERSION
7 if ( ! -e $WORK ) then 
8  setenv WORK ./
9 endif
10 cd $WORK
11 if ( $VERSION == "" ) then 
12  setenv VERSION "UNKNOWN"
13 endif
14 if ( ! -e QATest/$VERSION ) then 
15  mkdir QATest/$VERSION
16 endif    
17 cd QATest
18 rm -Rf DB* *.root *.C *.log data/*
19 ln -si $ALICE_ROOT/test/QA/Config.C Config.C
20 ln -si $ALICE_ROOT/test/QA/sim.C sim.C
21 ln -si $ALICE_ROOT/test/QA/simqa.C simqa.C
22 ln -si $ALICE_ROOT/test/QA/rec.C rec.C
23 ln -si $ALICE_ROOT/test/QA/recqa.C recqa.C
24 ln -si $ALICE_ROOT/test/QA/DB.tgz DB.tgz
25 root -b -q $ALICE_ROOT/test/QA/simrun.C --run $1
26 if ( ! -e data ) then 
27  mkdir data
28 endif
29 cd data
30 #ln -s ../geometry.root
31 ln -s ../raw.root
32 ln -s ../DB 
33 ln -si $ALICE_ROOT/test/QA/recraw.C recraw.C
34 aliroot -b -q recraw.C  > recraw.log 
35 cp  $ALICE_ROOT/test/QA/rawqa.C .
36 alienaliroot -b > rawqa.log << EOF
37 .x  $ALICE_ROOT/test/QA/rootlogon.C
38 .L rawqa.C++
39 rawqa(21950, 10)
40 EOF
41 rm -f rawqa.C
42 exit