]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/rec/startAliEVE-barrel-tracks.sh.in
provide OCDB URI as macro argument
[u/mrichter/AliRoot.git] / HLT / rec / startAliEVE-barrel-tracks.sh.in
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
19 while 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
36 done
37
38 if test "x$esd" != "x"; then
39   if ! [ -e $esd ]; then
40     echo can not find file $esd
41     exit -1
42   fi
43 else
44   if ! [ -e AliESDs.root ]; then
45     echo can not find default ESD file AliESDs.root
46     echo
47     do_help=1
48   fi
49 fi
50
51 if [ "x$do_help" != "x" ] ; then
52
53 cat <<EOF
54 usage `basename $0` [OPTION] [esd file]
55
56 Helper script to start AliEve and display the barrel tracks. An optional
57 ESD file can be specified, by default AliESDs.root is taken.
58 Options
59 --help      print this help
60 --verbose   be verbose
61
62 send bug reports and suggestions to @PACKAGE_BUGREPORT@
63 `basename $0` version @PACKAGE_STRING@
64 EOF
65 exit 0
66 fi
67
68 esd=\"$esd\"
69 which aliroot 2> /dev/null || source `dirname $0`/setenv.sh
70
71 test "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
72 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
73