Assume alice.inp in local directory.
[u/mrichter/AliRoot.git] / TFluka / scripts / runalifluka.csh
... / ...
CommitLineData
1#####################################################################
2# runalifluka.csh: Script File that sets up the needed input/output
3# files for TFluka
4# Author: I. Gonzalez
5# Date: 11/2002
6#####################################################################
7# Remove the previous temporary directory
8rm -rf tmp
9# Make a new temporary directory and move to it
10mkdir tmp
11cd tmp
12
13# Link here some special Fluka files needed
14ln -s $FLUPRO/xnloan.dat .
15ln -s $FLUPRO/sigmapi.bin .
16ln -s $FLUPRO/nuclear.bin .
17ln -s $FLUPRO/neuxsc_72.bin neuxsc.bin
18ln -s $FLUPRO/fluodt.dat .
19ln -s $FLUPRO/elasct.bin .
20
21# Copy the random seed
22cp $FLUPRO/random.dat old.seed
23
24# Give some meaningfull name to the output
25ln -s fluka.out fort.11
26
27# Link the pemf and input file for alice
28ln -s $ALICE_ROOT/TFluka/input/alice.pemf .
29#ln -s $ALICE_ROOT/TFluka/input/alice.inp .
30
31#Link FlukaConfig.C as Config.C
32ln -fs $ALICE_ROOT/TFluka/macro/FlukaConfig.C Config.C
33
34# Launch aliroot
35aliroot -b <<EOF > run.out
36gAlice->Init();
37gAlice->Run();
38EOF
39
40# Go back on exit
41cd ..