]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGLF/FORWARD/analysis2/sim/merge.sh
Files for simulation jobs
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / sim / merge.sh
CommitLineData
f8b7a926 1#!/bin/bash
2
3export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH
4cat <<EOF
5=========================================
6PATH=$PATH
7LD_LIBRARY_PATH=$LD_LIBRARY_PATH
8ROOTSYS=$ROOTSYS
9`which root`
10ALICE_ROOT=$ALICE_ROOT
11`which aliroot`
12`ulimit -a`
13`free -m`
14=========================================
15EOF
16
17which=$1
18run=$2
19dir=$3
20stage=$4
21counter=$5
22
23cat <<EOF
24Merge $which Stage $stage sub-job $counter
25 Directory: $dir
26 Run: $run
27EOF
28
29if test ! -f ${which}.C ; then
30 echo "No ${which}.C found in current directory" \
31 > validation_error.message
32 exit 1
33fi
34ARG="${which}.C($run,\"$dir\",$stage)"
35time aliroot -b -q -x $ARG
36exitcode=$?
37
38echo "======== $ARG finished with exit code: $exitcode ========"
39echo "############## memory after: ##############"
40free -m
41if [ $exitcode -ne 0 ]; then
42 echo "$ARG exited with code $exitcode" > validation_error.message
43fi
44
45exit $exitcode
46#
47# EOF
48#