o adapt macro to set the rate
authorwiechula <wiechula@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 18 Jul 2013 01:38:45 +0000 (01:38 +0000)
committerwiechula <wiechula@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 18 Jul 2013 01:38:45 +0000 (01:38 +0000)
TPC/Upgrade/macros/runSimRec

index 5eb07fe..b86f074 100755 (executable)
@@ -6,6 +6,11 @@ simtype=$3
 SCtype=$4
 nevents=$5
 ntracks=$6
+rate=$7
+
+if [ "x$rate" == "x" ]; then
+  rate=50
+fi
 
 module use /cvmfs/alice.gsi.de/modules
 module purge
@@ -16,4 +21,4 @@ module load $mod
 test -d $outDir || mkdir -p $outDir
 cd $outDir
 
-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\)
+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\)