]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGLF/FORWARD/analysis2/sim/test.sh
Files for simulation jobs
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / sim / test.sh
CommitLineData
f8b7a926 1#!/bin/bash
2# --- Check AliEn token ----------------------------------------------
3uid=`id -u`
4genv_file=/tmp/gclient_env_${uid}
5
6if test ! -f ${genv_file} ; then
7 echo "No such file: ${genv_file}, please do alien-token-init" \
8 >/dev/stderr
9 exit 1
10fi
11. ${genv_file}
12alien-token-info | grep -q "Token is still valid"
13if test $? -ne 0 ; then
14 echo "Token not valid, please re-new" > /dev/stderr
15 exit 1
16fi
17
18run=118506
19nev=1
20if test x$1 != x ; then run=$1 ; fi
21files="AOD.C \
22 AODConfig.C \
23 Check.C \
24 Config.C \
25 GRP.C \
26 QA.C \
27 QAConfig.C \
28 Reconstruct.C \
29 Simulate.C \
30 Tag.C \
31 simrun.sh \
32 $ALICE_ROOT/OADB/PWGLF/FORWARD/CORRECTIONS/data/fmd_corrections.root"
33
34rm -rf test
35mkdir -p test
36for i in $files ; do
37 cp -v $i test/`basename $i`
38done
39
40(cd test && ../run.sh --run $run --event $nev --qa --aod $@)