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