]> git.uio.no Git - u/mrichter/AliRoot.git/blob - test/QA/simrun.sh
Fix for report #58884: TRD sector 10 missing in the geometry in the OCDB on alien.
[u/mrichter/AliRoot.git] / test / QA / simrun.sh
1 #!/bin/sh -f 
2 if ! [ "$1" ]
3 then
4  echo "Usage: simrun.sh RunNumber";
5  exit;
6 fi
7
8 # Working directory
9 if [ ${WORK}"x" == "x" ]
10 then 
11  export WORK=./;
12 fi
13 cd ${WORK};
14
15 # Version
16 if [ ${VERSION}"x" == "x" ]
17 then 
18  export VERSION=UNKNOWN;
19 fi
20 echo $WORK $VERSION
21
22 # Test directory
23 if ! [ -e QATest/$VERSION ]
24 then 
25  mkdir -p QATest/$VERSION;
26 fi
27 cd QATest/$VERSION;
28
29 # Cleanup and (re)link
30 rm -rf *.root *.C *.log data;
31 ln -sf $ALICE_ROOT/test/QA/Config.C Config.C;
32 ln -sf $ALICE_ROOT/test/QA/sim.C sim.C;
33 ln -sf $ALICE_ROOT/test/QA/simqa.C simqa.C;
34 ln -sf $ALICE_ROOT/test/QA/rec.C rec.C;
35 ln -sf $ALICE_ROOT/test/QA/recqa.C recqa.C;
36
37 # Process MC
38 root -b -q $ALICE_ROOT/test/QA/simrun.C --run $1;
39
40 # Directory for RAW data 
41 if [ ! -e data ]
42 then 
43  mkdir data;
44 fi
45 cd data;
46
47 # Cleanup and (re)link
48 rm -rf *.root *.C *.log;
49 ln -sf ../raw.root;
50 ln -sf $ALICE_ROOT/test/QA/recraw.C recraw.C;
51 cp -f $ALICE_ROOT/test/QA/rawqa.C .;
52
53 # Process RAW
54 aliroot -b -q recraw.C  > recraw.log ;
55 if ! [ ${GSHELL_ROOT}"x" == "x" ] # Check that the AliEn API is available
56 then
57 aliroot -b > rawqa.log << EOF
58 .x  $ALICE_ROOT/test/QA/rootlogon.C
59 .L rawqa.C++
60 rawqa($1, 10)
61 EOF
62 fi
63 exit;