In vmctest/gun:
[u/mrichter/AliRoot.git] / test / vmctest / gun / runtest.sh
CommitLineData
267e5cd8 1#!/bin/sh
2# $Id$
3
4# Before running this script, you should run rungen.sh first.
5
6NEVENTS=20
7G3CONFIG="$ALICE_ROOT/test/vmctest/gun/g3Config.C"
8G4CONFIG="$ALICE_ROOT/test/vmctest/gun/g4Config.C"
9G3OUTDIR=g3
10G4OUTDIR=g4
11
878f3d54 12RUNG3=1
267e5cd8 13RUNG4=1
14
15if [ "$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
878f3d54 18 aliroot -b -q rec.C 2>&1 | tee rec.log
267e5cd8 19 rm -fr $G3OUTDIR
20 mkdir $G3OUTDIR
21 mv *.root *.log $G3OUTDIR
22 cp g3Config.C $G3OUTDIR
23fi
24
25if [ "$RUNG4" = "1" ]; then
26 rm -rf *.root *.dat *.log fort* hlt hough raw* recraw/*.root recraw/*.log
27 cp g3/geometry.root .
28 aliroot -b -q sim.C\($NEVENTS,\""$G4CONFIG"\"\) 2>&1 | tee sim.log
878f3d54 29 aliroot -b -q rec.C 2>&1 | tee rec.log
267e5cd8 30 rm -fr $G4OUTDIR
31 mkdir $G4OUTDIR
32 mv *.root *.log $G4OUTDIR
878f3d54 33 cp g4Config.C $G4OUTDIR
267e5cd8 34fi