o add options for other gases and Epsilons
[u/mrichter/AliRoot.git] / TPC / Upgrade / macros / runSimRec
1 #!/bin/bash
2
3 outDir=$1
4 mod=$2
5 simtype=$3
6 SCtype=$4
7 nevents=$5
8 ntracks=$6
9 rate=$7
10 gas=$8
11
12 if [ "x$rate" == "x" ]; then
13   rate=50
14 fi
15
16 if [ "x$gas" == "x" ]; then
17   gas=0
18 fi
19   
20 module use /cvmfs/alice.gsi.de/modules
21 module purge
22 #module load ALICE/${vers}
23 module use -a /hera/alice/wiechula/software/modules
24 module load $mod
25
26 test -d $outDir || mkdir -p $outDir
27 cd $outDir
28
29 root.exe -l -b -q $ALICE_ROOT/TPC/Upgrade/macros/{loadlibs.C,ConfigOCDB.C} $ALICE_ROOT/TPC/Upgrade/macros/runSimRec.C\($simtype,$SCtype,$nevents,$ntracks,$rate,$gas\)