]> git.uio.no Git - u/mrichter/AliRoot.git/blob - test/vmctest/ppbench/runtest.sh
Separate syswatch for sim. and rec.
[u/mrichter/AliRoot.git] / test / vmctest / ppbench / runtest.sh
1 #!/bin/sh
2 # $Id$
3
4 # Before running this script, you should run rungen.sh first.
5
6 NEVENTS=10
7 G3CONFIG="$ALICE_ROOT/test/vmctest/ppbench/g3Config.C" 
8 G4CONFIG="$ALICE_ROOT/test/vmctest/ppbench/g4Config.C" 
9 G3OUTDIR=g3
10 G4OUTDIR=g4
11
12 RUNG3=1
13 RUNG4=1
14
15 if [ "$RUNG3" = "1" ]; then 
16   rm -rf *.root *.dat *.log fort* hlt hough raw* recraw/*.root recraw/*.log
17   aliroot -b -q  sim.C\($NEVENTS,\""$G3CONFIG"\"\)  2>&1 | tee sim.log
18   mv syswatch.log simwatch.log
19   aliroot -b -q rec.C      2>&1 | tee rec.log
20   mv syswatch.log recwatch.log
21   aliroot -b -q ${ALICE_ROOT}/STEER/CheckESD.C 2>&1 | tee check.log
22   aliroot -b -q ${ALICE_ROOT}/STEER/CreateAODfromESD.C 2>&1 | tee aod.log
23   rm -fr $G3OUTDIR
24   mkdir $G3OUTDIR
25   mv *.root *.log *.ps $G3OUTDIR
26   cp g3Config.C $G3OUTDIR
27 fi
28
29 if [ "$RUNG4" = "1" ]; then 
30   rm -rf *.root *.dat *.log fort* hlt hough raw* recraw/*.root recraw/*.log
31   cp g3/geometry.root .
32   aliroot -b -q  sim.C\($NEVENTS,\""$G4CONFIG"\"\)  2>&1 | tee sim.log
33   mv syswatch.log simwatch.log
34   aliroot -b -q rec.C      2>&1 | tee rec.log
35   mv syswatch.log recwatch.log
36   aliroot -b -q ${ALICE_ROOT}/STEER/CheckESD.C 2>&1 | tee check.log
37   aliroot -b -q ${ALICE_ROOT}/STEER/CreateAODfromESD.C 2>&1 | tee aod.log
38   rm -fr $G4OUTDIR
39   mkdir $G4OUTDIR
40   mv *.root *.log *.ps $G4OUTDIR
41   cp g4Config.C $G4OUTDIR
42 fi