]> git.uio.no Git - u/mrichter/AliRoot.git/blob - test/vmctest/ppbench/runMC.sh
RWGCF converted to native cmake
[u/mrichter/AliRoot.git] / test / vmctest / ppbench / runMC.sh
1 #!/bin/sh
2 # $Id$
3
4 # Before running this script, you should run rungen.sh first.
5
6 NEVENTS=1
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=0
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  simMC.C\($NEVENTS,\""$G3CONFIG"\"\)  2>&1 | tee sim.log
18   mv syswatch.log simwatch.log
19   rm -fr $G3OUTDIR
20   mkdir $G3OUTDIR
21   mv *.root *.log *.ps GRP $G3OUTDIR
22   cp g3Config.C $G3OUTDIR
23 fi
24
25 if [ "$RUNG4" = "1" ]; then 
26   rm -rf *.root *.dat *.log fort* hlt hough raw* recraw/*.root recraw/*.log
27   #cp geometry_zdc_only/geometry.root .
28   aliroot -b -q  simMC.C\($NEVENTS,\""$G4CONFIG"\"\)  2>&1 | tee sim.log
29   mv syswatch.log simwatch.log
30   rm -fr $G4OUTDIR
31   mkdir $G4OUTDIR
32   mv *.root *.log *.rndm *.ps *.gdml GRP $G4OUTDIR
33   cp g4Config.C $G4OUTDIR
34 fi