]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
adding simple AliEVE startup script; minor update of environment scripts
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 27 Oct 2008 09:58:50 +0000 (09:58 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 27 Oct 2008 09:58:50 +0000 (09:58 +0000)
HLT/BASE/setenv.csh.in
HLT/BASE/setenv.sh.in
HLT/configure.ac
HLT/rec/Makefile.am
HLT/rec/startAliEVE-barrel-tracks.sh.in [new file with mode: 0644]

index 9dbe0775b9d5eab0fae7265314ca8abf1e6ca617..2bd9ce22925c7cac3b70e1338b59726642420cae 100644 (file)
@@ -5,6 +5,9 @@
 # NOTE: this script has been generated by the ALICE HLT stand-alone
 # build system. Commit changes to the setenv.*sh.in templates in BASE.
 #
+# bugs,questions: @PACKAGE_BUGREPORT@
+#                 @PACKAGE_STRING@
+#
 # ####################################################################
 #
 #             @AUTOGENERATED_WARNING@
index 6bf45a7671560285f8cb3f1f0f8986ce9fe09e5d..7bd629bc42c085718fc57e4ef2b2b37fa949da45 100644 (file)
@@ -5,6 +5,9 @@
 # NOTE: this script has been generated by the ALICE HLT stand-alone
 # build system. Commit changes to the setenv.*sh.in templates in BASE.
 #
+# bugs,questions: @PACKAGE_BUGREPORT@
+#                 @PACKAGE_STRING@
+#
 # ####################################################################
 #
 #             @AUTOGENERATED_WARNING@
index 9d03ca87f012436589cf3a652173a42687ecfb5f..a8f239ef21c80fae561cf96283a47bd0050c7080 100644 (file)
@@ -1124,6 +1124,7 @@ if test "x$have_aliroot" != "xno"; then
   AC_CONFIG_FILES([sim/Makefile         
                   rec/Makefile  
                   rec/test/Makefile     
+                  rec/startAliEVE-barrel-tracks.sh
                   shuttle/Makefile
                   pendolino/Makefile
                   ])
index 2db37f7b1fcd184dfe3b2a006d61d26c75325c18..b7dfbb799ebc321906f042c672cef0da0980fd7a 100644 (file)
@@ -7,6 +7,8 @@ SUBDIRS                         = . test
 
 EXTRA_DIST                     = 
 
+bin_SCRIPTS                    = startAliEVE-barrel-tracks.sh
+
 # library definition
 lib_LTLIBRARIES                        =  libHLTrec.la
 
diff --git a/HLT/rec/startAliEVE-barrel-tracks.sh.in b/HLT/rec/startAliEVE-barrel-tracks.sh.in
new file mode 100644 (file)
index 0000000..281ea6a
--- /dev/null
@@ -0,0 +1,73 @@
+#!/bin/bash
+# $Id$
+# helper script to start the AliEVE and show barrel tracks
+#
+# usage: startAliEVE-barrel-tracks.sh <esd-file>
+#
+# NOTE: this script has been generated by the ALICE HLT stand-alone
+# build system. Commit changes to
+# HLT/exa/startAliEVE-barrel-tracks.sh.in
+#
+# bugs,questions: Matthias.Richter@ift.uib.no
+#
+# ####################################################################
+#
+#             @AUTOGENERATED_WARNING@
+#
+# ####################################################################
+
+while test $# -gt 0 ; do
+    arg=`echo $1 | sed 's|--[-_a-zA-Z0-9]*=||'`
+    case $1 in 
+       --help)    do_help=1 ;;
+       --verbose) verbose=1 ;;
+       
+       -*)
+           echo unknown argument $1;
+           do_help=1;
+           break;
+           ;;
+
+       *)
+           esd=$1 && break;;
+           
+       esac
+    shift
+done
+
+if test "x$esd" != "x"; then
+  if ! [ -e $esd ]; then
+    echo can not find file $esd
+    exit -1
+  fi
+else
+  if ! [ -e AliESDs.root ]; then
+    echo can not find default ESD file AliESDs.root
+    echo
+    do_help=1
+  fi
+fi
+
+if [ "x$do_help" != "x" ] ; then
+
+cat <<EOF
+usage `basename $0` [OPTION] [esd file]
+
+Helper script to start AliEve and display the barrel tracks. An optional
+ESD file can be specified, by default AliESDs.root is taken.
+Options
+--help      print this help
+--verbose   be verbose
+
+send bug reports and suggestions to @PACKAGE_BUGREPORT@
+`basename $0` version @PACKAGE_STRING@
+EOF
+exit 0
+fi
+
+esd=\"$esd\"
+which aliroot 2> /dev/null || source `dirname $0`/setenv.sh
+
+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
+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
+