adding simple AliEVE startup script; minor update of environment scripts
[u/mrichter/AliRoot.git] / HLT / rec / startAliEVE-barrel-tracks.sh.in
CommitLineData
436c2d0c 1#!/bin/bash
2# $Id$
3# helper script to start the AliEVE and show barrel tracks
4#
5# usage: startAliEVE-barrel-tracks.sh <esd-file>
6#
7# NOTE: this script has been generated by the ALICE HLT stand-alone
8# build system. Commit changes to
9# HLT/exa/startAliEVE-barrel-tracks.sh.in
10#
11# bugs,questions: Matthias.Richter@ift.uib.no
12#
13# ####################################################################
14#
15# @AUTOGENERATED_WARNING@
16#
17# ####################################################################
18
19while test $# -gt 0 ; do
20 arg=`echo $1 | sed 's|--[-_a-zA-Z0-9]*=||'`
21 case $1 in
22 --help) do_help=1 ;;
23 --verbose) verbose=1 ;;
24
25 -*)
26 echo unknown argument $1;
27 do_help=1;
28 break;
29 ;;
30
31 *)
32 esd=$1 && break;;
33
34 esac
35 shift
36done
37
38if test "x$esd" != "x"; then
39 if ! [ -e $esd ]; then
40 echo can not find file $esd
41 exit -1
42 fi
43else
44 if ! [ -e AliESDs.root ]; then
45 echo can not find default ESD file AliESDs.root
46 echo
47 do_help=1
48 fi
49fi
50
51if [ "x$do_help" != "x" ] ; then
52
53cat <<EOF
54usage `basename $0` [OPTION] [esd file]
55
56Helper script to start AliEve and display the barrel tracks. An optional
57ESD file can be specified, by default AliESDs.root is taken.
58Options
59--help print this help
60--verbose be verbose
61
62send bug reports and suggestions to @PACKAGE_BUGREPORT@
63`basename $0` version @PACKAGE_STRING@
64EOF
65exit 0
66fi
67
68esd=\"$esd\"
69which aliroot 2> /dev/null || source `dirname $0`/setenv.sh
70
71test "x$verbose" != "x" && echo alieve $ALICE_ROOT/EVE/macros/alieve_init.C\'\(\"./\", 0, $esd\)\' $ALICE_ROOT/EVE/alice-macros/geom_simple.C $ALICE_ROOT/EVE/alice-macros/esd_tracks.C
72alieve $ALICE_ROOT/EVE/macros/alieve_init.C\(\"./\",\ 0,\ $esd\) $ALICE_ROOT/EVE/alice-macros/geom_simple.C $ALICE_ROOT/EVE/alice-macros/esd_tracks.C
73