]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
New scripts (A. Gheata)
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 4 Feb 2004 13:51:18 +0000 (13:51 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 4 Feb 2004 13:51:18 +0000 (13:51 +0000)
TFluka/scripts/runflukaflugg.sh [new file with mode: 0755]
TFluka/scripts/runflukageo.sh [new file with mode: 0755]

diff --git a/TFluka/scripts/runflukaflugg.sh b/TFluka/scripts/runflukaflugg.sh
new file mode 100755 (executable)
index 0000000..3e4a04d
--- /dev/null
@@ -0,0 +1,47 @@
+#!/bin/bash
+CURDIR=`pwd`
+cd $ALICE_ROOT
+if [ -f $ALICE_ROOT/lib/tgt_$ALICE_TARGET/libTFluka.so ]; then
+   COMPROOT=`nm -s $ALICE_ROOT/lib/tgt_$ALICE_TARGET/libTFluka.so | grep gGeoManager`
+   if [ "${COMPROOT}" ]; then
+      echo 'TFluka was compiled with TGeo -> Recompilation...'
+      make clean-TFluka
+   else
+      echo 'TFluka was compiled with FLUGG -> OK'
+   fi      
+fi   
+unset WITH_ROOT
+echo 'Making sure that TFluka is up to date...'
+make all-TFluka
+cd $CURDIR
+# Remove the previous temporary directory
+rm -rf tmp
+# Make a new temporary directory and move to it
+mkdir tmp
+cd tmp
+
+# Link here some special Fluka files needed
+ln -s $FLUPRO/xnloan.dat .
+ln -s $FLUPRO/sigmapi.bin .
+ln -s $FLUPRO/nuclear.bin .
+ln -s $FLUPRO/neuxsc_72.bin neuxsc.bin
+ln -s $FLUPRO/fluodt.dat .
+ln -s $FLUPRO/elasct.bin .
+
+# Copy the random seed
+cp $FLUPRO/random.dat old.seed
+
+# Give some meaningfull name to the output
+ln -s fluka.out fort.11
+
+# Link the pemf and input file for alice
+ln -s $ALICE_ROOT/TFluka/input/alice.pemf .
+ln -s $ALICE_ROOT/TFluka/input/alice.inp .
+
+#Link FlukaConfig.C as Config.C
+ln -fs $ALICE_ROOT/TFluka/macro/FlukaConfig.C Config.C
+echo 'Execute: gAlice->Init() OR gAlice->RunMC() at the ROOT prompt'
+# Launch aliroot
+aliroot
+# Go back on exit
+cd ..
diff --git a/TFluka/scripts/runflukageo.sh b/TFluka/scripts/runflukageo.sh
new file mode 100755 (executable)
index 0000000..223ebbf
--- /dev/null
@@ -0,0 +1,47 @@
+#!/bin/bash
+CURDIR=`pwd`
+cd $ALICE_ROOT
+if [ -f $ALICE_ROOT/lib/tgt_$ALICE_TARGET/libTFluka.so ]; then
+   COMPROOT=`nm -s $ALICE_ROOT/lib/tgt_$ALICE_TARGET/libTFluka.so | grep gGeoManager`
+   if [ -z "${COMPROOT}" ]; then
+      echo 'TFluka was compiled with FLUGG -> Recompilation...'
+      make clean-TFluka
+   else
+      echo 'TFluka was compiled with TGeo -> OK'
+   fi      
+fi   
+export WITH_ROOT=1
+echo 'Making sure that TFluka is up to date...'
+make all-TFluka
+cd $CURDIR
+# Remove the previous temporary directory
+rm -rf tmp
+# Make a new temporary directory and move to it
+mkdir tmp
+cd tmp
+
+# Link here some special Fluka files needed
+ln -s $FLUPRO/xnloan.dat .
+ln -s $FLUPRO/sigmapi.bin .
+ln -s $FLUPRO/nuclear.bin .
+ln -s $FLUPRO/neuxsc_72.bin neuxsc.bin
+ln -s $FLUPRO/fluodt.dat .
+ln -s $FLUPRO/elasct.bin .
+
+# Copy the random seed
+cp $FLUPRO/random.dat old.seed
+
+# Give some meaningfull name to the output
+ln -s fluka.out fort.11
+
+# Link the pemf and input file for alice
+ln -s $ALICE_ROOT/TFluka/input/alice.pemf .
+ln -s $ALICE_ROOT/TFluka/input/alice.inp .
+
+#Link FlukaConfig.C as Config.C
+ln -fs $ALICE_ROOT/TFluka/macro/FlukaConfig.C Config.C
+echo 'Execute: gAlice->Init() OR gAlice->RunMC() at the ROOT prompt'
+# Launch aliroot
+aliroot
+# Go back on exit
+cd ..