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 [ "${COMPROOT}" ]; then
7 echo 'TFluka was compiled with TGeo -> Recompilation...'
10 echo 'TFluka was compiled with FLUGG -> OK'
14 echo 'Making sure that TFluka is up to date...'
17 # Remove the previous temporary directory
19 # Make a new temporary directory and move to it
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 .
31 # Copy the random seed
32 cp $FLUPRO/random.dat old.seed
34 # Give some meaningfull name to the output
35 ln -s fluka.out fort.11
37 # Link the pemf and input file for alice
38 ln -s $ALICE_ROOT/TFluka/input/alice.pemf .
39 #ln -s $ALICE_ROOT/TFluka/input/alice.inp .
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'