]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TFluka/scripts/runflukaflugg.sh
Only with TGeo now.
[u/mrichter/AliRoot.git] / TFluka / scripts / runflukaflugg.sh
CommitLineData
05b81d7d 1#!/bin/bash
2CURDIR=`pwd`
3cd $ALICE_ROOT
4if [ -f $ALICE_ROOT/lib/tgt_$ALICE_TARGET/libTFluka.so ]; then
5 COMPROOT=`nm -s $ALICE_ROOT/lib/tgt_$ALICE_TARGET/libTFluka.so | grep gGeoManager`
6 if [ "${COMPROOT}" ]; then
7 echo 'TFluka was compiled with TGeo -> Recompilation...'
8 make clean-TFluka
9 else
10 echo 'TFluka was compiled with FLUGG -> OK'
11 fi
12fi
13unset WITH_ROOT
14echo 'Making sure that TFluka is up to date...'
15make all-TFluka
16cd $CURDIR
17# Remove the previous temporary directory
18rm -rf tmp
19# Make a new temporary directory and move to it
20mkdir tmp
21cd tmp
22
23# Link here some special Fluka files needed
24ln -s $FLUPRO/xnloan.dat .
25ln -s $FLUPRO/sigmapi.bin .
26ln -s $FLUPRO/nuclear.bin .
27ln -s $FLUPRO/neuxsc_72.bin neuxsc.bin
28ln -s $FLUPRO/fluodt.dat .
29ln -s $FLUPRO/elasct.bin .
30
31# Copy the random seed
32cp $FLUPRO/random.dat old.seed
33
34# Give some meaningfull name to the output
35ln -s fluka.out fort.11
36
37# Link the pemf and input file for alice
38ln -s $ALICE_ROOT/TFluka/input/alice.pemf .
8f8b4a96 39#ln -s $ALICE_ROOT/TFluka/input/alice.inp .
05b81d7d 40
41#Link FlukaConfig.C as Config.C
42ln -fs $ALICE_ROOT/TFluka/macro/FlukaConfig.C Config.C
43echo 'Execute: gAlice->Init() OR gAlice->RunMC() at the ROOT prompt'
44# Launch aliroot
45aliroot
46# Go back on exit
47cd ..