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